Skip to content

Commit

Permalink
More websites/rules
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Aug 24, 2024
1 parent 55354f2 commit b2f5a3e
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
2024.8.1 (in-dev)

Special thanks to nimbuz for their contributions and reports for this release
Special thanks to nimbuz, remlap for their contributions and reports for this release

---

Expand Down
27 changes: 27 additions & 0 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116380,6 +116380,33 @@ var $$IMU_EXPORT$$;
return src.replace(/\/product-thumbs\/+[a-z]_/, "/products/");
}

if (domain_nowww === "arts-crafts.ca") {
// thanks to anonymous for reporting:
// https://arts-crafts.ca/filesthumbs500//files/covers/b9dde17c46593bc29d54a904b885277a6326.jpg
// https://arts-crafts.ca/files/covers/b9dde17c46593bc29d54a904b885277a6326.jpg
return src.replace(/(:\/\/[^/]+\/+)filesthumbs[0-9]+\/+files\//, "$1files/");
}

if (domain_nowww === "quto.ru") {
// thanks to anonymous for reporting:
// https://quto.ru/thumb/0x88/filters:quality(75):no_upscale()/imgs/2024/08/23/10/6571279/3fb09a3ad148105104943ce7bc3f438b99571ea0.jpg
// https://quto.ru/imgs/2024/08/23/10/6571279/3fb09a3ad148105104943ce7bc3f438b99571ea0.jpg
newsrc = src.replace(/^[a-z]+:\/\/[^/]+\/+thumb\/+/, "/");
if (newsrc !== src)
return "https://" + domain + "/" + common_functions["get_thumbor_url"](newsrc);
}

if (domain_nowww === "thespiderawards.com") {
// thanks to remlap for reporting:
// https://www.thespiderawards.com/gallery//magicimage.php?img=/home/thespiderawards/public_html/uploads/1679466/20/1679466_Paul_06041666431_Grayscale.jpg&img_size=580
// https://www.thespiderawards.com/uploads/1679466/20/1679466_Paul_06041666431_Grayscale.jpg
// https://www.thespiderawards.com/gallery/scripts/optimize_image.php?img=/home/thespiderawards/public_html/uploads/571691/16/571691_senior_jeremy_cathedralcove.jpg&img_size=400
// https://www.thespiderawards.com/uploads/571691/16/571691_senior_jeremy_cathedralcove.jpg
match = src.match(/\/gallery\/.*[?&]img=\/home\/+thespiderawards\/+public_html\/+(uploads\/.*?)(?:[&#].*)?$/);
if (match)
return "https://" + domain + "/" + decodeURIComponent(match[1]);
}




Expand Down
24 changes: 24 additions & 0 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -104582,6 +104582,30 @@ var $$IMU_EXPORT$$;
// https://img.edilportale.com/products/FLETCHER-Laskasas-570394-rel672028f4.jpg
return src.replace(/\/product-thumbs\/+[a-z]_/, "/products/");
}
if (domain_nowww === "arts-crafts.ca") {
// thanks to anonymous for reporting:
// https://arts-crafts.ca/filesthumbs500//files/covers/b9dde17c46593bc29d54a904b885277a6326.jpg
// https://arts-crafts.ca/files/covers/b9dde17c46593bc29d54a904b885277a6326.jpg
return src.replace(/(:\/\/[^/]+\/+)filesthumbs[0-9]+\/+files\//, "$1files/");
}
if (domain_nowww === "quto.ru") {
// thanks to anonymous for reporting:
// https://quto.ru/thumb/0x88/filters:quality(75):no_upscale()/imgs/2024/08/23/10/6571279/3fb09a3ad148105104943ce7bc3f438b99571ea0.jpg
// https://quto.ru/imgs/2024/08/23/10/6571279/3fb09a3ad148105104943ce7bc3f438b99571ea0.jpg
newsrc = src.replace(/^[a-z]+:\/\/[^/]+\/+thumb\/+/, "/");
if (newsrc !== src)
return "https://" + domain + "/" + common_functions["get_thumbor_url"](newsrc);
}
if (domain_nowww === "thespiderawards.com") {
// thanks to remlap for reporting:
// https://www.thespiderawards.com/gallery//magicimage.php?img=/home/thespiderawards/public_html/uploads/1679466/20/1679466_Paul_06041666431_Grayscale.jpg&img_size=580
// https://www.thespiderawards.com/uploads/1679466/20/1679466_Paul_06041666431_Grayscale.jpg
// https://www.thespiderawards.com/gallery/scripts/optimize_image.php?img=/home/thespiderawards/public_html/uploads/571691/16/571691_senior_jeremy_cathedralcove.jpg&img_size=400
// https://www.thespiderawards.com/uploads/571691/16/571691_senior_jeremy_cathedralcove.jpg
match = src.match(/\/gallery\/.*[?&]img=\/home\/+thespiderawards\/+public_html\/+(uploads\/.*?)(?:[&#].*)?$/);
if (match)
return "https://" + domain + "/" + decodeURIComponent(match[1]);
}
// -- 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 b2f5a3e

Please sign in to comment.