diff --git a/CHANGELOG.txt b/CHANGELOG.txt index d309046f..7500df35 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -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 --- diff --git a/src/userscript.ts b/src/userscript.ts index e52e16f2..4b3c56b9 100644 --- a/src/userscript.ts +++ b/src/userscript.ts @@ -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"); + } + diff --git a/userscript.user.js b/userscript.user.js index af95e031..6cb0adb3 100644 --- a/userscript.user.js +++ b/userscript.user.js @@ -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