Skip to content

Commit

Permalink
Support LDDB (fixes #1320)
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed May 5, 2024
1 parent e102ba8 commit a6c50fd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
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 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 for their contributions and reports for this release

---

Expand Down
8 changes: 8 additions & 0 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113886,6 +113886,14 @@ var $$IMU_EXPORT$$;
.replace(/(\/uploads\/+[0-9]{4}\/+(?:[0-9]{2}\/+){2}[0-9a-f]{5,}\.)[^/?#]+\.([a-z]+)(?:[?#].*)?$/, "$1$2");
}

if (domain_nowww === "lddb.com") {
// thanks to CetaceanNation on github: https://github.com/qsniyg/maxurl/issues/1320
// https://www.lddb.com/laserdisc/37544/SF098-1168/Back-to-the-Future
// https://www.lddb.com/cover/ld/37501-37600/thumb/37544.jpg
// https://www.lddb.com/cover/ld/37501-37600/37544.jpg
return src.replace(/(\/cover\/+ld\/+[0-9]+-[0-9]+\/+)thumb\/+/, "$1");
}




Expand Down
7 changes: 7 additions & 0 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -102247,6 +102247,13 @@ var $$IMU_EXPORT$$;
.replace(/:\/\/[^/]+\/+.*?\/(uploads\/+[0-9]{4}\/+(?:[0-9]{2}\/+){2}[0-9a-f]{5,}\.[a-z]+)(?:[?#].*)?/, "://imagenes.cronica.com.mx/$1")
.replace(/(\/uploads\/+[0-9]{4}\/+(?:[0-9]{2}\/+){2}[0-9a-f]{5,}\.)[^/?#]+\.([a-z]+)(?:[?#].*)?$/, "$1$2");
}
if (domain_nowww === "lddb.com") {
// thanks to CetaceanNation on github: https://github.com/qsniyg/maxurl/issues/1320
// https://www.lddb.com/laserdisc/37544/SF098-1168/Back-to-the-Future
// https://www.lddb.com/cover/ld/37501-37600/thumb/37544.jpg
// https://www.lddb.com/cover/ld/37501-37600/37544.jpg
return src.replace(/(\/cover\/+ld\/+[0-9]+-[0-9]+\/+)thumb\/+/, "$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 a6c50fd

Please sign in to comment.