Skip to content

Commit

Permalink
More websites/rules (#1304)
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Mar 27, 2024
1 parent fe80c24 commit 15cbbf6
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 2 deletions.
26 changes: 25 additions & 1 deletion src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81847,7 +81847,11 @@ var $$IMU_EXPORT$$;
}
}

if (domain_nowww === "gaminglives.com") {
if (domain_nowww === "gaminglives.com" ||
// thanks to SakalliTavernaci on github: https://github.com/qsniyg/maxurl/issues/1304
// https://www.dipsahaf.com/wp-content/plugins/dynpicwatermark/DynPicWaterMark_ImageViewer.php?path=2020/07/Untitled-7i.jpg
// https://www.dipsahaf.com/wp-content/uploads/2020/07/Untitled-7i.jpg
domain_nowww === "dipsahaf.com") {
// https://wordpress.org/plugins/dynpicwatermark/
//
// http://www.gaminglives.com/wp-content/plugins/dynpicwatermark/DynPicWaterMark_ImageViewer.php?path=mankind_01_enlrg.jpg
Expand Down Expand Up @@ -113325,6 +113329,26 @@ var $$IMU_EXPORT$$;
return src.replace(/(\/assets\/+media\/+[0-9a-f]+\/+elements\/+[0-9a-f]+\/+)[a-z]+\/+([-0-9a-f]+)(?:_[0-9]+x)?\./, "$1$2.");
}

if (domain === "media.kijiji.ca") {
// thanks to anonymous for reporting:
// https://media.kijiji.ca/api/v1/autos-prod-ads/images/a1/a10f4f69-7049-4019-a728-7d1d032d7dbc?rule=kijijica-640-jpg
// https://media.kijiji.ca/api/v1/autos-prod-ads/images/a1/a10f4f69-7049-4019-a728-7d1d032d7dbc?rule=kijijica-1600-jpg
// https://media.kijiji.ca/api/v1/autos-prod-ads/images/a1/a10f4f69-7049-4019-a728-7d1d032d7dbc?rule=kijijica-1600-webp -- lower quality
// https://media.kijiji.ca/api/v1/autos-prod-ads/images/a1/a10f4f69-7049-4019-a728-7d1d032d7dbc?rule=kijijica-1600-jpg
// other:
// // https://media.kijiji.ca/api/v1/autos-prod-ads/images/a1/a10f4f69-7049-4019-a728-7d1d032d7dbc?rule=kijijica-1600-png -- same quality as jpg
return src.replace(/(\/api\/+v1\/+[^/]+\/+images\/+[0-9a-f]{2}\/+[-0-9a-f]{10,})\?rule=kijijica-(?:[0-9]{2,3}|1024|1200|1600)-[a-z]+$/, "$1?rule=kijijica-1600-jpg");
}

if (domain_nowww === "vogue.com.tr") {
// thanks to SakalliTavernaci on github: https://github.com/qsniyg/maxurl/issues/1304
// https://vogue.com.tr/static/img/content/24-03/08/mceu_13134132821709899008762.jpg
// https://vogue.com.tr/static/original/24-03/08/mceu_13134132821709899008762.jpg
// https://vogue.com.tr/static/img/article_detail/22-02/14/cdior-12_v_5apr12_rex_b.jpg
// https://vogue.com.tr/static/original/22-02/14/cdior-12_v_5apr12_rex_b.jpg
return src.replace(/(\/static\/+)img\/+[^/]+\/+/, "$1original/");
}




Expand Down
24 changes: 23 additions & 1 deletion userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -73782,7 +73782,11 @@ var $$IMU_EXPORT$$;
return keep_queries(src, ["portalid", "moduleid", "mediaid"], { required: ["portalid", "mediaid"] });
}
}
if (domain_nowww === "gaminglives.com") {
if (domain_nowww === "gaminglives.com" ||
// thanks to SakalliTavernaci on github: https://github.com/qsniyg/maxurl/issues/1304
// https://www.dipsahaf.com/wp-content/plugins/dynpicwatermark/DynPicWaterMark_ImageViewer.php?path=2020/07/Untitled-7i.jpg
// https://www.dipsahaf.com/wp-content/uploads/2020/07/Untitled-7i.jpg
domain_nowww === "dipsahaf.com") {
// https://wordpress.org/plugins/dynpicwatermark/
//
// http://www.gaminglives.com/wp-content/plugins/dynpicwatermark/DynPicWaterMark_ImageViewer.php?path=mankind_01_enlrg.jpg
Expand Down Expand Up @@ -101735,6 +101739,24 @@ var $$IMU_EXPORT$$;
// https://cdn.viewing.nyc/assets/media/e9ddb205f5e1cda2b59e0ab5051f027a/elements/d2133844dada56490a0ec62ad98cb04b/1f2c8d5c-f3f7-4617-b76a-a2149426d2fa.jpg -- 6000x4000
return src.replace(/(\/assets\/+media\/+[0-9a-f]+\/+elements\/+[0-9a-f]+\/+)[a-z]+\/+([-0-9a-f]+)(?:_[0-9]+x)?\./, "$1$2.");
}
if (domain === "media.kijiji.ca") {
// thanks to anonymous for reporting:
// https://media.kijiji.ca/api/v1/autos-prod-ads/images/a1/a10f4f69-7049-4019-a728-7d1d032d7dbc?rule=kijijica-640-jpg
// https://media.kijiji.ca/api/v1/autos-prod-ads/images/a1/a10f4f69-7049-4019-a728-7d1d032d7dbc?rule=kijijica-1600-jpg
// https://media.kijiji.ca/api/v1/autos-prod-ads/images/a1/a10f4f69-7049-4019-a728-7d1d032d7dbc?rule=kijijica-1600-webp -- lower quality
// https://media.kijiji.ca/api/v1/autos-prod-ads/images/a1/a10f4f69-7049-4019-a728-7d1d032d7dbc?rule=kijijica-1600-jpg
// other:
// // https://media.kijiji.ca/api/v1/autos-prod-ads/images/a1/a10f4f69-7049-4019-a728-7d1d032d7dbc?rule=kijijica-1600-png -- same quality as jpg
return src.replace(/(\/api\/+v1\/+[^/]+\/+images\/+[0-9a-f]{2}\/+[-0-9a-f]{10,})\?rule=kijijica-(?:[0-9]{2,3}|1024|1200|1600)-[a-z]+$/, "$1?rule=kijijica-1600-jpg");
}
if (domain_nowww === "vogue.com.tr") {
// thanks to SakalliTavernaci on github: https://github.com/qsniyg/maxurl/issues/1304
// https://vogue.com.tr/static/img/content/24-03/08/mceu_13134132821709899008762.jpg
// https://vogue.com.tr/static/original/24-03/08/mceu_13134132821709899008762.jpg
// https://vogue.com.tr/static/img/article_detail/22-02/14/cdior-12_v_5apr12_rex_b.jpg
// https://vogue.com.tr/static/original/22-02/14/cdior-12_v_5apr12_rex_b.jpg
return src.replace(/(\/static\/+)img\/+[^/]+\/+/, "$1original/");
}
// -- general rules --
if (src.match(/\/ImageGen\.ashx\?/)) {
// http://www.lookalikes.info/umbraco/ImageGen.ashx?image=/media/97522/nick%20hewer%20-%20mark%20brown.jpeg&width=250&constrain=true
Expand Down

0 comments on commit 15cbbf6

Please sign in to comment.