Skip to content

Commit

Permalink
More websites/rules
Browse files Browse the repository at this point in the history
Fixes #1361
  • Loading branch information
qsniyg committed Sep 9, 2024
1 parent d507002 commit 90d1a2b
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 10 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
2024.8.1 (in-dev)
2024.9.0 (in-dev)

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

---

Expand Down
40 changes: 36 additions & 4 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60340,10 +60340,22 @@ var $$IMU_EXPORT$$;
.replace(/(\/resources\/.*\/)[auto0-9]+x[auto0-9]+-([^/]+)(?:[?#].*)?$/, "$1$2");
}

if (domain_nosub === "nintendo-europe.com" && /^cdn[0-9]*\./.test(domain)) {
if ((domain_nosub === "nintendo-europe.com" && /^cdn[0-9]*\./.test(domain)) ||
// thanks to immewnity on github: https://github.com/qsniyg/maxurl/issues/1361
// https://www.nintendo.com/eu/media/images/08_content_images/games_6/gamecube_11/gcn_pokemoncolosseum/CI16_GCN_PokemonColosseum_image950w.png
// https://www.nintendo.com/eu/media/images/08_content_images/games_6/gamecube_11/gcn_pokemoncolosseum/CI16_GCN_PokemonColosseum.png
// https://www.nintendo.com/eu/media/images/11_square_images/games_18/smart_device_6/SQ_SmartDevice_AnimalCrossingPocketCamp_image500w.jpg
// https://www.nintendo.com/eu/media/images/11_square_images/games_18/smart_device_6/SQ_SmartDevice_AnimalCrossingPocketCamp.jpg
// https://www.nintendo.com/eu/media/images/10_share_images/portals_3/2x1_SuperMarioHub_banner66LG.jpg
// https://www.nintendo.com/eu/media/images/10_share_images/portals_3/2x1_SuperMarioHub.jpg
// https://www.nintendo.com/eu/media/images/08_content_images/games_6/gameboy_color/CI_GBC_PokemonGoldAndSilver_CharaPikachu_CMM_big.jpg
// https://www.nintendo.com/eu/media/images/08_content_images/games_6/gameboy_color/CI_GBC_PokemonGoldAndSilver_CharaPikachu.jpg
// https://www.nintendo.com/eu/media/images/06_screenshots/games_5/game_boy_color_2/gbc_pokemonsilverversion/GBC_PokemonSilverVersion_02_TM_Standard.jpg
// https://www.nintendo.com/eu/media/images/06_screenshots/games_5/game_boy_color_2/gbc_pokemonsilverversion/GBC_PokemonSilverVersion_02.jpg
(domain_nowww === "nintendo.com" && /:\/\/[^/]+\/+eu\//.test(src))) {
// https://cdn02.nintendo-europe.com/media/images/10_share_images/portals_3/H2x1_SuperMario_Hub_image1600w.jpg
// https://cdn02.nintendo-europe.com/media/images/10_share_images/portals_3/H2x1_SuperMario_Hub.jpg
return src.replace(/_image[0-9]*[wh](\.[^/.]*)$/, "$1");
return src.replace(/(\/media\/+images\/.*?)_(?:image[0-9]*[wh]|banner[0-9]+LG|CMM_big|TM_Standard)(\.[^/.]*)$/, "$1$2");
}

if (domain_nosub === "15min.lt" && /^s[0-9]*\./.test(domain)) {
Expand Down Expand Up @@ -91276,10 +91288,12 @@ var $$IMU_EXPORT$$;
}

if (domain_nowww === "suruga-ya.jp" ||
domain_nowww === "suruga-ya.com" ||
// thanks to anonymous for reporting:
// https://cdn.suruga-ya.jp/pics/boxart_m/211019151m.jpg
// https://cdn.suruga-ya.jp/database/pics/game/211019151.jpg
domain === "cdn.suruga-ya.jp") {
domain === "cdn.suruga-ya.jp" ||
domain === "cdn.suruga-ya.com") {
// https://www.suruga-ya.jp/pics/boxart_m/211019151m.jpg
// https://www.suruga-ya.jp/database/pics/game/211019151.jpg
// thanks to anonymous for reporting:
Expand Down Expand Up @@ -108746,7 +108760,10 @@ var $$IMU_EXPORT$$;
// https://i.pcmag.com/imagery/reviews/01LG7X66NKFgNRZSIDI1qsc-3.jpg
// https://i.pcmag.com/imagery/reviews/03J6CWwKPjxtSTrbEzXWvz8-1.fit_scale.size_760x427.v1620319451.png
// https://i.pcmag.com/imagery/reviews/03J6CWwKPjxtSTrbEzXWvz8-1.png
return src.replace(/(\/imagery\/+reviews\/+[^/.]+)\.+(?:(?:(?:fit|size)_[^/.]+|v?[0-9]{10})\.+)+([^/.]+)(?:[?#].*)?$/, "$1.$2");
// thanks to anonymous for reporting:
// https://i.pcmag.com/imagery/articles/01RFCmjWG934ohNRfD3Kewt-1.fit_lim.size_900x600.v1692284730.jpg
// https://i.pcmag.com/imagery/articles/01RFCmjWG934ohNRfD3Kewt-1.jpg
return src.replace(/(\/imagery\/+[^/]+\/+[^/.]+)\.+(?:(?:(?:fit|size)_[^/.]+|v?[0-9]{10})\.+)+([^/.]+)(?:[?#].*)?$/, "$1.$2");
}

if (domain_nowww === "geoguessr.com") {
Expand Down Expand Up @@ -116415,6 +116432,21 @@ var $$IMU_EXPORT$$;
return "https://" + domain + "/" + decodeURIComponent(match[1]);
}

if (domain === "d34okl4jnxrvy2.cloudfront.net") {
// thanks to anonymous for reporting:
// https://medina-gazette.com/news/348855/commentary-year-away-from-the-game-might-have-given-ravens-wr-odell-beckham-jr-a-new-perspective/
// https://d34okl4jnxrvy2.cloudfront.net/MTS_Beta_Elyria/0/0/0/0/292/868/292868_1
// https://d34okl4jnxrvy2.cloudfront.net/MTS_Beta_Elyria/0/0/0/0/292/868/292868
return src.replace(/(\/(?:[0-9]+\/+){6}[0-9]+)(?:_[01])(?:[?#].*)?$/, "$1");
}

if (domain_nowww === "ffish.asia") {
// thanks to anonymous for reporting:
// https://ffish.asia/_file/small/72/OYK176-W03_080309_n061_NEF.jpg
// https://ffish.asia/_file/large/72/OYK176-W03_080309_n061_NEF.jpg
return src.replace(/(\/_file\/+)small\/+/, "$1large/");
}




Expand Down
38 changes: 34 additions & 4 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -54924,10 +54924,22 @@ var $$IMU_EXPORT$$;
.replace(/\/t\/+([^/]*\.[^/.]*)(?:[?#].*)?$/, "/$1")
.replace(/(\/resources\/.*\/)[auto0-9]+x[auto0-9]+-([^/]+)(?:[?#].*)?$/, "$1$2");
}
if (domain_nosub === "nintendo-europe.com" && /^cdn[0-9]*\./.test(domain)) {
if ((domain_nosub === "nintendo-europe.com" && /^cdn[0-9]*\./.test(domain)) ||
// thanks to immewnity on github: https://github.com/qsniyg/maxurl/issues/1361
// https://www.nintendo.com/eu/media/images/08_content_images/games_6/gamecube_11/gcn_pokemoncolosseum/CI16_GCN_PokemonColosseum_image950w.png
// https://www.nintendo.com/eu/media/images/08_content_images/games_6/gamecube_11/gcn_pokemoncolosseum/CI16_GCN_PokemonColosseum.png
// https://www.nintendo.com/eu/media/images/11_square_images/games_18/smart_device_6/SQ_SmartDevice_AnimalCrossingPocketCamp_image500w.jpg
// https://www.nintendo.com/eu/media/images/11_square_images/games_18/smart_device_6/SQ_SmartDevice_AnimalCrossingPocketCamp.jpg
// https://www.nintendo.com/eu/media/images/10_share_images/portals_3/2x1_SuperMarioHub_banner66LG.jpg
// https://www.nintendo.com/eu/media/images/10_share_images/portals_3/2x1_SuperMarioHub.jpg
// https://www.nintendo.com/eu/media/images/08_content_images/games_6/gameboy_color/CI_GBC_PokemonGoldAndSilver_CharaPikachu_CMM_big.jpg
// https://www.nintendo.com/eu/media/images/08_content_images/games_6/gameboy_color/CI_GBC_PokemonGoldAndSilver_CharaPikachu.jpg
// https://www.nintendo.com/eu/media/images/06_screenshots/games_5/game_boy_color_2/gbc_pokemonsilverversion/GBC_PokemonSilverVersion_02_TM_Standard.jpg
// https://www.nintendo.com/eu/media/images/06_screenshots/games_5/game_boy_color_2/gbc_pokemonsilverversion/GBC_PokemonSilverVersion_02.jpg
(domain_nowww === "nintendo.com" && /:\/\/[^/]+\/+eu\//.test(src))) {
// https://cdn02.nintendo-europe.com/media/images/10_share_images/portals_3/H2x1_SuperMario_Hub_image1600w.jpg
// https://cdn02.nintendo-europe.com/media/images/10_share_images/portals_3/H2x1_SuperMario_Hub.jpg
return src.replace(/_image[0-9]*[wh](\.[^/.]*)$/, "$1");
return src.replace(/(\/media\/+images\/.*?)_(?:image[0-9]*[wh]|banner[0-9]+LG|CMM_big|TM_Standard)(\.[^/.]*)$/, "$1$2");
}
if (domain_nosub === "15min.lt" && /^s[0-9]*\./.test(domain)) {
// https://s1.15min.lt/images/photos/2017/05/19/big/olivia-rodrigo-591e9d3a8f81d.jpg
Expand Down Expand Up @@ -82245,10 +82257,12 @@ var $$IMU_EXPORT$$;
return src.replace(/(\/photo\/+[0-9]+)_[SML](\.[^/.]*)(?:[?#].*)?$/, "$1$2");
}
if (domain_nowww === "suruga-ya.jp" ||
domain_nowww === "suruga-ya.com" ||
// thanks to anonymous for reporting:
// https://cdn.suruga-ya.jp/pics/boxart_m/211019151m.jpg
// https://cdn.suruga-ya.jp/database/pics/game/211019151.jpg
domain === "cdn.suruga-ya.jp") {
domain === "cdn.suruga-ya.jp" ||
domain === "cdn.suruga-ya.com") {
// https://www.suruga-ya.jp/pics/boxart_m/211019151m.jpg
// https://www.suruga-ya.jp/database/pics/game/211019151.jpg
// thanks to anonymous for reporting:
Expand Down Expand Up @@ -97755,7 +97769,10 @@ var $$IMU_EXPORT$$;
// https://i.pcmag.com/imagery/reviews/01LG7X66NKFgNRZSIDI1qsc-3.jpg
// https://i.pcmag.com/imagery/reviews/03J6CWwKPjxtSTrbEzXWvz8-1.fit_scale.size_760x427.v1620319451.png
// https://i.pcmag.com/imagery/reviews/03J6CWwKPjxtSTrbEzXWvz8-1.png
return src.replace(/(\/imagery\/+reviews\/+[^/.]+)\.+(?:(?:(?:fit|size)_[^/.]+|v?[0-9]{10})\.+)+([^/.]+)(?:[?#].*)?$/, "$1.$2");
// thanks to anonymous for reporting:
// https://i.pcmag.com/imagery/articles/01RFCmjWG934ohNRfD3Kewt-1.fit_lim.size_900x600.v1692284730.jpg
// https://i.pcmag.com/imagery/articles/01RFCmjWG934ohNRfD3Kewt-1.jpg
return src.replace(/(\/imagery\/+[^/]+\/+[^/.]+)\.+(?:(?:(?:fit|size)_[^/.]+|v?[0-9]{10})\.+)+([^/.]+)(?:[?#].*)?$/, "$1.$2");
}
if (domain_nowww === "geoguessr.com") {
// thanks to DevWannabe-dot: https://github.com/qsniyg/maxurl/issues/929
Expand Down Expand Up @@ -104613,6 +104630,19 @@ var $$IMU_EXPORT$$;
if (match)
return "https://" + domain + "/" + decodeURIComponent(match[1]);
}
if (domain === "d34okl4jnxrvy2.cloudfront.net") {
// thanks to anonymous for reporting:
// https://medina-gazette.com/news/348855/commentary-year-away-from-the-game-might-have-given-ravens-wr-odell-beckham-jr-a-new-perspective/
// https://d34okl4jnxrvy2.cloudfront.net/MTS_Beta_Elyria/0/0/0/0/292/868/292868_1
// https://d34okl4jnxrvy2.cloudfront.net/MTS_Beta_Elyria/0/0/0/0/292/868/292868
return src.replace(/(\/(?:[0-9]+\/+){6}[0-9]+)(?:_[01])(?:[?#].*)?$/, "$1");
}
if (domain_nowww === "ffish.asia") {
// thanks to anonymous for reporting:
// https://ffish.asia/_file/small/72/OYK176-W03_080309_n061_NEF.jpg
// https://ffish.asia/_file/large/72/OYK176-W03_080309_n061_NEF.jpg
return src.replace(/(\/_file\/+)small\/+/, "$1large/");
}
// -- 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 90d1a2b

Please sign in to comment.