diff --git a/src/userscript.ts b/src/userscript.ts index a28a3dfe..c0cb9e44 100644 --- a/src/userscript.ts +++ b/src/userscript.ts @@ -34111,8 +34111,6 @@ var $$IMU_EXPORT$$; // thanks to fedesk on discord // https://media.hotpress.com/uploads/2019/11/25101541/IMGL8113-copy-200x300.jpg (domain === "media.hotpress.com" && string_indexof(src, "/uploads/") >= 0) || - // https://yocto.scrolller.com/doug-at-sunset-9cy1fpzekr-1626x1080.jpg - (domain_nosub === "scrolller.com" && /-[0-9a-z]{5,}-[0-9]+x[0-9]+\./.test(src)) || // https://images.thedigitalfix.com/img/6/2021/04/tfatws-105-truth-1-330x185.jpeg domain === "images.thedigitalfix.com" || // thanks to dym-sh on github: https://github.com/qsniyg/maxurl/issues/806 @@ -115099,6 +115097,37 @@ var $$IMU_EXPORT$$; return src.replace(/(\/uploads\/+[^/]+\/+[0-9]+\/+)(?:med)?thumb\/+/, "$1"); } + if (domain_nosub === "scrolller.com") { + // https://yocto.scrolller.com/doug-at-sunset-9cy1fpzekr-1626x1080.jpg + // https://images.scrolller.com/yocto/doug-at-sunset-9cy1fpzekr.webp + // https://images.scrolller.com/yocto/doug-at-sunset-9cy1fpzekr.jpg + if (/-[0-9a-z]{5,}-[0-9]+x[0-9]+\./.test(src)) { + newsrc = src.replace(/-[0-9]+x[0-9]+(\.[a-z]+)(?:[?#].*)?$/, "$1"); + if (newsrc !== src) + return newsrc; + } + + newsrc = src.replace(/\.webp(?:[?#].*)?$/, ".jpg"); + if (newsrc !== src) + return newsrc; + + newsrc = src.replace(/-(?:poster|mobile)\.[a-z0-9]+(?:[?#].*)?$/, ".mp4"); + if (newsrc === src) + newsrc = src.replace(/:\/\/images\.scrolller\.com\/+yocto\/+([^/]+-[a-z0-9]{5,})\.jpg$/, "://zepto.scrolller.com/$1.mp4"); + if (newsrc !== src) + return { + url: newsrc.replace(/:\/\/images\.scrolller\.com\/+([^/]+)\/+/, "://$1.scrolller.com/"), + video: true + }; + } + + if (domain === "cdn.rockislandauction.com") { + // thanks to anonymous for reporting: + // https://cdn.rockislandauction.com/dev_cdn/88/thumbs/1220.jpg?cachebust=2023-04-05T19:36:32.000Z + // https://cdn.rockislandauction.com/dev_cdn/88/1220.jpg?cachebust=2023-04-05T19:36:32.000Z + return src.replace(/(\/dev_cdn\/+[0-9]+\/+)thumbs\/+/, "$1"); + } + diff --git a/userscript.user.js b/userscript.user.js index c8733918..d35bc286 100644 --- a/userscript.user.js +++ b/userscript.user.js @@ -31250,8 +31250,6 @@ var $$IMU_EXPORT$$; // thanks to fedesk on discord // https://media.hotpress.com/uploads/2019/11/25101541/IMGL8113-copy-200x300.jpg (domain === "media.hotpress.com" && string_indexof(src, "/uploads/") >= 0) || - // https://yocto.scrolller.com/doug-at-sunset-9cy1fpzekr-1626x1080.jpg - (domain_nosub === "scrolller.com" && /-[0-9a-z]{5,}-[0-9]+x[0-9]+\./.test(src)) || // https://images.thedigitalfix.com/img/6/2021/04/tfatws-105-truth-1-330x185.jpeg domain === "images.thedigitalfix.com" || // thanks to dym-sh on github: https://github.com/qsniyg/maxurl/issues/806 @@ -103354,6 +103352,33 @@ var $$IMU_EXPORT$$; // https://renginiai.kasvyksta.lt/uploads/events/131382/448174230_899653408842705_7479100982827670299_n_1.jpg return src.replace(/(\/uploads\/+[^/]+\/+[0-9]+\/+)(?:med)?thumb\/+/, "$1"); } + if (domain_nosub === "scrolller.com") { + // https://yocto.scrolller.com/doug-at-sunset-9cy1fpzekr-1626x1080.jpg + // https://images.scrolller.com/yocto/doug-at-sunset-9cy1fpzekr.webp + // https://images.scrolller.com/yocto/doug-at-sunset-9cy1fpzekr.jpg + if (/-[0-9a-z]{5,}-[0-9]+x[0-9]+\./.test(src)) { + newsrc = src.replace(/-[0-9]+x[0-9]+(\.[a-z]+)(?:[?#].*)?$/, "$1"); + if (newsrc !== src) + return newsrc; + } + newsrc = src.replace(/\.webp(?:[?#].*)?$/, ".jpg"); + if (newsrc !== src) + return newsrc; + newsrc = src.replace(/-(?:poster|mobile)\.[a-z0-9]+(?:[?#].*)?$/, ".mp4"); + if (newsrc === src) + newsrc = src.replace(/:\/\/images\.scrolller\.com\/+yocto\/+([^/]+-[a-z0-9]{5,})\.jpg$/, "://zepto.scrolller.com/$1.mp4"); + if (newsrc !== src) + return { + url: newsrc.replace(/:\/\/images\.scrolller\.com\/+([^/]+)\/+/, "://$1.scrolller.com/"), + video: true + }; + } + if (domain === "cdn.rockislandauction.com") { + // thanks to anonymous for reporting: + // https://cdn.rockislandauction.com/dev_cdn/88/thumbs/1220.jpg?cachebust=2023-04-05T19:36:32.000Z + // https://cdn.rockislandauction.com/dev_cdn/88/1220.jpg?cachebust=2023-04-05T19:36:32.000Z + return src.replace(/(\/dev_cdn\/+[0-9]+\/+)thumbs\/+/, "$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