Skip to content

Commit

Permalink
Support images.gamebanana.com
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Sep 18, 2023
1 parent 054ef63 commit b6798cc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Bugfixes:
* Fix subtitles for HLS/DASH streams
* Fix iframes crashing when the userscript is enabled on some websites (#1213, thanks to fireattack on discord for reporting)

Special thanks to Flame, TheOne, fyhtma, Tenome, Freso, IZeeLikeEyeZee, TristanWasTaken, sn3akyb3ar, remlap, fireattack, ValiumBear, sn3akyb3ar, desdesifre, karpuzikov for their contributions and reports for this release
Special thanks to Flame, TheOne, fyhtma, Tenome, Freso, IZeeLikeEyeZee, TristanWasTaken, sn3akyb3ar, remlap, fireattack, ValiumBear, sn3akyb3ar, desdesifre, karpuzikov, jonestly for their contributions and reports for this release

---

Expand Down
7 changes: 7 additions & 0 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107773,6 +107773,13 @@ var $$IMU_EXPORT$$;
return src.replace(/(\/i\/+)[sm](\/+[0-9]+\/+)/, "$1l$2");
}

if (domain === "images.gamebanana.com") {
// thanks to jonestly on discord:
// https://images.gamebanana.com/img/ss/mods/530-90_65038aaa0770c.jpg
// https://images.gamebanana.com/img/ss/mods/65038aaa0770c.jpg
return src.replace(/(\/img\/+ss\/+[^/]+\/+)[0-9]+-[0-9]+_([0-9a-f]+\.)/, "$1$2");
}




Expand Down
6 changes: 6 additions & 0 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -96648,6 +96648,12 @@ var $$IMU_EXPORT$$;
// https://qpzgjzffeg4d.merlincdn.net/i/l/007/0073111.jpeg
return src.replace(/(\/i\/+)[sm](\/+[0-9]+\/+)/, "$1l$2");
}
if (domain === "images.gamebanana.com") {
// thanks to jonestly on discord:
// https://images.gamebanana.com/img/ss/mods/530-90_65038aaa0770c.jpg
// https://images.gamebanana.com/img/ss/mods/65038aaa0770c.jpg
return src.replace(/(\/img\/+ss\/+[^/]+\/+)[0-9]+-[0-9]+_([0-9a-f]+\.)/, "$1$2");
}
// -- 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 b6798cc

Please sign in to comment.