Skip to content

Commit

Permalink
More websites/rules
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Apr 16, 2024
1 parent 44e69a9 commit 320b873
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33922,6 +33922,10 @@ var $$IMU_EXPORT$$;
// thanks to anonymous for reporting:
// https://cdn.anime-planet.com/characters/primary/shinku-1-190x263.jpg?t=1625965389
domain === "cdn.anime-planet.com" ||
// thanks to anonymous for reporting:
// https://inglam.club/img/2024/04/Joey-King-30th-Annual-Screen-Actors-Guild-Awards-2024-3FD47855-133x200.jpg
// https://inglam.club/img/2024/04/Joey-King-30th-Annual-Screen-Actors-Guild-Awards-2024-3FD47855.jpg
(domain_nowww === "inglam.club" && /\/img\//.test(src)) ||
// https://wp-assets.futurism.com/2024/01/Screenshot-2024-01-12-at-10.19.15%E2%80%AFAM-1200x865.png
// https://wp-assets.futurism.com/2024/01/Screenshot-2024-01-12-at-10.19.15%E2%80%AFAM.png
domain === "wp-assets.futurism.com"
Expand Down Expand Up @@ -113566,6 +113570,13 @@ var $$IMU_EXPORT$$;
return src.replace(/(\/files\/+[0-9]{4}\/+[0-9]+\/+)[0-9]+x[0-9]+\/+([0-9]+)_[0-9]+x[0-9]+\./, "$1$2.");
}

if (googlestorage_container === "image-ichiba2") {
// thanks to nimbuz on discord:
// https://storage.googleapis.com/image-ichiba2/prod/froala/projects/710/ubgoe/ncpdUqbSBMtLLwnE6h-xWA_w900.jpg
// https://storage.googleapis.com/image-ichiba2/prod/froala/projects/710/ubgoe/ncpdUqbSBMtLLwnE6h-xWA.jpg
return src.replace(/(\/prod\/+[^/]+\/+projects\/+[0-9]+\/+[^/]+\/+[^/]+)_w[0-9]+\./, "$1.");
}




Expand Down
10 changes: 10 additions & 0 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -31075,6 +31075,10 @@ var $$IMU_EXPORT$$;
// thanks to anonymous for reporting:
// https://cdn.anime-planet.com/characters/primary/shinku-1-190x263.jpg?t=1625965389
domain === "cdn.anime-planet.com" ||
// thanks to anonymous for reporting:
// https://inglam.club/img/2024/04/Joey-King-30th-Annual-Screen-Actors-Guild-Awards-2024-3FD47855-133x200.jpg
// https://inglam.club/img/2024/04/Joey-King-30th-Annual-Screen-Actors-Guild-Awards-2024-3FD47855.jpg
(domain_nowww === "inglam.club" && /\/img\//.test(src)) ||
// https://wp-assets.futurism.com/2024/01/Screenshot-2024-01-12-at-10.19.15%E2%80%AFAM-1200x865.png
// https://wp-assets.futurism.com/2024/01/Screenshot-2024-01-12-at-10.19.15%E2%80%AFAM.png
domain === "wp-assets.futurism.com") {
Expand Down Expand Up @@ -101954,6 +101958,12 @@ var $$IMU_EXPORT$$;
// https://azertag.az/files/2022/1/1648649183590816801.jpg
return src.replace(/(\/files\/+[0-9]{4}\/+[0-9]+\/+)[0-9]+x[0-9]+\/+([0-9]+)_[0-9]+x[0-9]+\./, "$1$2.");
}
if (googlestorage_container === "image-ichiba2") {
// thanks to nimbuz on discord:
// https://storage.googleapis.com/image-ichiba2/prod/froala/projects/710/ubgoe/ncpdUqbSBMtLLwnE6h-xWA_w900.jpg
// https://storage.googleapis.com/image-ichiba2/prod/froala/projects/710/ubgoe/ncpdUqbSBMtLLwnE6h-xWA.jpg
return src.replace(/(\/prod\/+[^/]+\/+projects\/+[0-9]+\/+[^/]+\/+[^/]+)_w[0-9]+\./, "$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 320b873

Please sign in to comment.