Skip to content

Commit

Permalink
More websites/rules
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Jun 23, 2024
1 parent d2fb52f commit cc9a4f5
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 13 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Bugfixes:
* Fix browser download replacing current page on non-same-origin URLs
* Fix GM_download headers for Tampermonkey and Violentmonkey

Special thanks to fireattack, nimbuz, Froktime, fyhtma, SakalliTavernaci, TheLastZombie, oifj34f34f, Solus, sn3akyb3ar, n0stal6ic, nyahgust, vscum, TristanWasTaken, BlindWanda, SUPER7X, n0099, remlap, CetaceanNation, bsydow, tathastu871, roi for their contributions and reports for this release
Special thanks to fireattack, nimbuz, Froktime, fyhtma, SakalliTavernaci, TheLastZombie, oifj34f34f, Solus, sn3akyb3ar, n0stal6ic, nyahgust, vscum, TristanWasTaken, BlindWanda, SUPER7X, n0099, remlap, CetaceanNation, bsydow, tathastu871, roi, ItsProyal, lazybookwyrm, James Joint for their contributions and reports for this release

---

Expand Down
32 changes: 26 additions & 6 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33060,6 +33060,12 @@ var $$IMU_EXPORT$$;
// thanks to roi:
// https://www.usnews.com/object/image/0000018d-cd8c-d59b-ad8d-eddecde50001/feb21-ukraine-01.jpg?update-time=1708550742040&size=responsiveGallery
(domain_nowww === "usnews.com" && /\/object\/+image\//.test(src)) ||
// thanks to Liz on discord:
// https://assetsio.gnwcdn.com/painted_world1.jpg?width=1200&height=1200&fit=bounds&quality=70&format=jpg&auto=webp
domain === "assetsio.gnwcdn.com" ||
// thanks to Liz on discord:
// https://www.azcentral.com/gcdn/presto/2023/06/05/PPHX/d14cdd74-f08e-4aeb-8698-d8a1d856cba4-20230604161124_-_FFusion.jpg?width=1320&height=880&fit=crop&format=pjpg&auto=webp
(domain_nowww === "azcentral.com" && /\/gcdn\//.test(src)) ||
// http://us.jimmychoo.com/dw/image/v2/AAWE_PRD/on/demandware.static/-/Sites-jch-master-product-catalog/default/dw70b1ebd2/images/rollover/LIZ100MPY_120004_MODEL.jpg?sw=245&sh=245&sm=fit
// https://www.aritzia.com/on/demandware.static/-/Library-Sites-Aritzia_Shared/default/dw3a7fef87/seasonal/ss18/ss18-springsummercampaign/ss18-springsummercampaign-homepage/hptiles/tile-wilfred-lrg.jpg
src.match(/\/demandware\.static\//) ||
Expand Down Expand Up @@ -51479,7 +51485,8 @@ var $$IMU_EXPORT$$;
// thanks to anonymous for reporting:
// https://combo.staticflickr.com/ap/build/images/photo-fuzzy-t.png
// https://combo.staticflickr.com/ap/build/images/photo-fuzzy.png
if (/\/build\/+images\/+photo-fuzzy(?:-t)?\./.test(src)) {
// https://combo.staticflickr.com/pw/images/fuzzy/photo-fuzzy-t.png.v[date].75
if (/\/images\/+(?:fuzzy\/+)?photo-fuzzy(?:-t)?\./.test(src)) {
if (options.element.tagName === "IMG" && options.element.parentElement && options.element.parentElement.tagName === "A") {
return options.element.parentElement.href;
}
Expand Down Expand Up @@ -77989,6 +77996,9 @@ var $$IMU_EXPORT$$;
// https://i.scdn.co/image/ab67616d00004851df16d539f508603bfb1efe02
// https://i.scdn.co/image/ab67616d00001e02df16d539f508603bfb1efe02
// https://i.scdn.co/image/ab67616d0000b273df16d539f508603bfb1efe02
// thanks to ItsProyal and lazybookwyrm on github: https://github.com/qsniyg/maxurl/issues/1329#issuecomment-2161072870
// https://i.scdn.co/image/ab67616d0000b273f0e911d0e5aadefc431bf34a
// https://i.scdn.co/image/ab67616d000082c1f0e911d0e5aadefc431bf34a -- 1425x1425
// other:
// https://artists.spotify.com/songwriter/7arD6PuSiBoEdX0wDowElH
// https://i.scdn.co/image/ab677762000056b8a4c0d4fbf52ab78e8db7db58 -- 1280x1280
Expand All @@ -77999,8 +78009,9 @@ var $$IMU_EXPORT$$;
// https://i.scdn.co/image/af22b1ed38d1b21b28ef1f1610ef0a51a38a5028 -- 1000x953
// https://i.scdn.co/image/5970f51046d76cbaba5a7de984e23ec24fbee9c2 -- 940x1000, upscaled
return src
.replace(/(\/image\/+ab67616d0000)(?:1e02|4851)/, "$1b273")
.replace(/(\/image\/+ab6761610000)5174/, "$1e5eb")
.replace(/(\/image\/+ab67616d0000)(?:b273|d452)/, "$182c1")
.replace(/(\/image\/+ab67616d0000)(?:1e02|f848|4851|745c|aa54|75a0|a426|e1a3|ab87|2d53|11eb|90d5|54be)/, "$1b273")
.replace(/(\/image\/+ab6761610000)(?:5174|8ef1|86f7|939b|918b|101f|102f)/, "$1e5eb")
.replace(/(\/image\/+ab6761610000)f178/, "$15174");
}

Expand Down Expand Up @@ -90152,14 +90163,20 @@ var $$IMU_EXPORT$$;
// https://www.suruga-ya.jp/database/pics/game/211019151.jpg
// thanks to anonymous for reporting:
// https://www.suruga-ya.jp/pics_light/boxart_m/251010927_1m.jpg
// https://www.suruga-ya.jp/database/pics/game/251010927.jpg
// https://www.suruga-ya.jp/database/pics/game/251010927.jpg -- incorrect
// https://www.suruga-ya.jp/database/pics/game/251010927_1.jpg
// https://www.suruga-ya.jp/pics_light/boxart_m/220146867m.jpg
// https://www.suruga-ya.jp/database/pics/game/220146867.jpg
// https://www.suruga-ya.jp/pics_light/boxart_ss/220290525ss.gif
// https://www.suruga-ya.jp/database/pics/game/220290525.jpg
// https://www.suruga-ya.jp/database/pics_light/game/220146867.jpg
// https://www.suruga-ya.jp/database/pics/game/220146867.jpg
return src.replace(/\/(?:database\/+)?pics(?:_light)\/+(?:boxart_[a-z]+|game)\/+([0-9]+)(?:_[0-9]+)?[a-z]*\.[a-z]+(?:[?#].*)?$/, "/database/pics/game/$1.jpg");
// https://www.suruga-ya.jp/pics_webp/boxart_m/602236211m.jpg.webp
// https://www.suruga-ya.jp/database/pics/game/602236211.jpg
// thanks to fireattack on discord:
// https://www.suruga-ya.jp/pics_light/boxart_a/508922053_1.jpg?v=49a0a1c22aaae3834f5d
// https://www.suruga-ya.jp/database/pics/game/508922053_1.jpg
return src.replace(/\/(?:database\/+)?pics(?:_(?:light|webp))\/+(?:boxart_[a-z]+|game)\/+([0-9]+(?:_[0-9]+)?)[a-z]*\.[a-z]+(?:\.[a-z]+)?(?:[?#].*)?$/, "/database/pics/game/$1.jpg");
}

if (domain_nowww === "itsfun.com.tw") {
Expand Down Expand Up @@ -109131,7 +109148,10 @@ var $$IMU_EXPORT$$;
// thanks to Broly on discord
// https://fashionsnap-assets.com/asset/format=auto,width=1680/article/images/2023/04/gap-popup-230417-006.jpg
// https://fashionsnap-assets.com/article/images/2023/04/gap-popup-230417-006.jpg
return src.replace(/\/asset\/+[^/]+\/+article\//, "/article/");
// thanks to James Joint on discord:
// https://fashionsnap-assets.com/asset/format=auto,width=1088/streetstyle/images/2019/11/11-26-19-40-01-004.jpg
// https://fashionsnap-assets.com/streetstyle/images/2019/11/11-26-19-40-01-004.jpg
return src.replace(/(:\/\/[^/]+\/+)asset\/+[^/]+=[^/]+\/+/, "$1");
}

if (domain_nowww === "streamin.me" ||
Expand Down
32 changes: 26 additions & 6 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -30216,6 +30216,12 @@ var $$IMU_EXPORT$$;
// thanks to roi:
// https://www.usnews.com/object/image/0000018d-cd8c-d59b-ad8d-eddecde50001/feb21-ukraine-01.jpg?update-time=1708550742040&size=responsiveGallery
(domain_nowww === "usnews.com" && /\/object\/+image\//.test(src)) ||
// thanks to Liz on discord:
// https://assetsio.gnwcdn.com/painted_world1.jpg?width=1200&height=1200&fit=bounds&quality=70&format=jpg&auto=webp
domain === "assetsio.gnwcdn.com" ||
// thanks to Liz on discord:
// https://www.azcentral.com/gcdn/presto/2023/06/05/PPHX/d14cdd74-f08e-4aeb-8698-d8a1d856cba4-20230604161124_-_FFusion.jpg?width=1320&height=880&fit=crop&format=pjpg&auto=webp
(domain_nowww === "azcentral.com" && /\/gcdn\//.test(src)) ||
// http://us.jimmychoo.com/dw/image/v2/AAWE_PRD/on/demandware.static/-/Sites-jch-master-product-catalog/default/dw70b1ebd2/images/rollover/LIZ100MPY_120004_MODEL.jpg?sw=245&sh=245&sm=fit
// https://www.aritzia.com/on/demandware.static/-/Library-Sites-Aritzia_Shared/default/dw3a7fef87/seasonal/ss18/ss18-springsummercampaign/ss18-springsummercampaign-homepage/hptiles/tile-wilfred-lrg.jpg
src.match(/\/demandware\.static\//) ||
Expand Down Expand Up @@ -46979,7 +46985,8 @@ var $$IMU_EXPORT$$;
// thanks to anonymous for reporting:
// https://combo.staticflickr.com/ap/build/images/photo-fuzzy-t.png
// https://combo.staticflickr.com/ap/build/images/photo-fuzzy.png
if (/\/build\/+images\/+photo-fuzzy(?:-t)?\./.test(src)) {
// https://combo.staticflickr.com/pw/images/fuzzy/photo-fuzzy-t.png.v[date].75
if (/\/images\/+(?:fuzzy\/+)?photo-fuzzy(?:-t)?\./.test(src)) {
if (options.element.tagName === "IMG" && options.element.parentElement && options.element.parentElement.tagName === "A") {
return options.element.parentElement.href;
}
Expand Down Expand Up @@ -70460,6 +70467,9 @@ var $$IMU_EXPORT$$;
// https://i.scdn.co/image/ab67616d00004851df16d539f508603bfb1efe02
// https://i.scdn.co/image/ab67616d00001e02df16d539f508603bfb1efe02
// https://i.scdn.co/image/ab67616d0000b273df16d539f508603bfb1efe02
// thanks to ItsProyal and lazybookwyrm on github: https://github.com/qsniyg/maxurl/issues/1329#issuecomment-2161072870
// https://i.scdn.co/image/ab67616d0000b273f0e911d0e5aadefc431bf34a
// https://i.scdn.co/image/ab67616d000082c1f0e911d0e5aadefc431bf34a -- 1425x1425
// other:
// https://artists.spotify.com/songwriter/7arD6PuSiBoEdX0wDowElH
// https://i.scdn.co/image/ab677762000056b8a4c0d4fbf52ab78e8db7db58 -- 1280x1280
Expand All @@ -70470,8 +70480,9 @@ var $$IMU_EXPORT$$;
// https://i.scdn.co/image/af22b1ed38d1b21b28ef1f1610ef0a51a38a5028 -- 1000x953
// https://i.scdn.co/image/5970f51046d76cbaba5a7de984e23ec24fbee9c2 -- 940x1000, upscaled
return src
.replace(/(\/image\/+ab67616d0000)(?:1e02|4851)/, "$1b273")
.replace(/(\/image\/+ab6761610000)5174/, "$1e5eb")
.replace(/(\/image\/+ab67616d0000)(?:b273|d452)/, "$182c1")
.replace(/(\/image\/+ab67616d0000)(?:1e02|f848|4851|745c|aa54|75a0|a426|e1a3|ab87|2d53|11eb|90d5|54be)/, "$1b273")
.replace(/(\/image\/+ab6761610000)(?:5174|8ef1|86f7|939b|918b|101f|102f)/, "$1e5eb")
.replace(/(\/image\/+ab6761610000)f178/, "$15174");
}
if (domain === "mosaic.scdn.co") {
Expand Down Expand Up @@ -81138,14 +81149,20 @@ var $$IMU_EXPORT$$;
// https://www.suruga-ya.jp/database/pics/game/211019151.jpg
// thanks to anonymous for reporting:
// https://www.suruga-ya.jp/pics_light/boxart_m/251010927_1m.jpg
// https://www.suruga-ya.jp/database/pics/game/251010927.jpg
// https://www.suruga-ya.jp/database/pics/game/251010927.jpg -- incorrect
// https://www.suruga-ya.jp/database/pics/game/251010927_1.jpg
// https://www.suruga-ya.jp/pics_light/boxart_m/220146867m.jpg
// https://www.suruga-ya.jp/database/pics/game/220146867.jpg
// https://www.suruga-ya.jp/pics_light/boxart_ss/220290525ss.gif
// https://www.suruga-ya.jp/database/pics/game/220290525.jpg
// https://www.suruga-ya.jp/database/pics_light/game/220146867.jpg
// https://www.suruga-ya.jp/database/pics/game/220146867.jpg
return src.replace(/\/(?:database\/+)?pics(?:_light)\/+(?:boxart_[a-z]+|game)\/+([0-9]+)(?:_[0-9]+)?[a-z]*\.[a-z]+(?:[?#].*)?$/, "/database/pics/game/$1.jpg");
// https://www.suruga-ya.jp/pics_webp/boxart_m/602236211m.jpg.webp
// https://www.suruga-ya.jp/database/pics/game/602236211.jpg
// thanks to fireattack on discord:
// https://www.suruga-ya.jp/pics_light/boxart_a/508922053_1.jpg?v=49a0a1c22aaae3834f5d
// https://www.suruga-ya.jp/database/pics/game/508922053_1.jpg
return src.replace(/\/(?:database\/+)?pics(?:_(?:light|webp))\/+(?:boxart_[a-z]+|game)\/+([0-9]+(?:_[0-9]+)?)[a-z]*\.[a-z]+(?:\.[a-z]+)?(?:[?#].*)?$/, "/database/pics/game/$1.jpg");
}
if (domain_nowww === "itsfun.com.tw") {
// https://www.itsfun.com.tw/images/ef/b2/==wZwpmL2kzMkNGMmhDZ2kjZjFGMyEDM09yX4YjMfhjNy8CZmRXbk9SbvNmLnNXboFnL4A3LvoDc0RHa.jpg
Expand Down Expand Up @@ -98013,7 +98030,10 @@ var $$IMU_EXPORT$$;
// thanks to Broly on discord
// https://fashionsnap-assets.com/asset/format=auto,width=1680/article/images/2023/04/gap-popup-230417-006.jpg
// https://fashionsnap-assets.com/article/images/2023/04/gap-popup-230417-006.jpg
return src.replace(/\/asset\/+[^/]+\/+article\//, "/article/");
// thanks to James Joint on discord:
// https://fashionsnap-assets.com/asset/format=auto,width=1088/streetstyle/images/2019/11/11-26-19-40-01-004.jpg
// https://fashionsnap-assets.com/streetstyle/images/2019/11/11-26-19-40-01-004.jpg
return src.replace(/(:\/\/[^/]+\/+)asset\/+[^/]+=[^/]+\/+/, "$1");
}
if (domain_nowww === "streamin.me" ||
// https://streamin.one/v/dcc5ffa9
Expand Down

0 comments on commit cc9a4f5

Please sign in to comment.