diff --git a/src/userscript.ts b/src/userscript.ts index 7dbb742e..e9ef7c98 100644 --- a/src/userscript.ts +++ b/src/userscript.ts @@ -29021,6 +29021,10 @@ var $$IMU_EXPORT$$; // http://user-images.strikinglycdn.com/res/hrscywv4p/image/upload/c_limit,fl_lossy,h_9000,w_1200,f_auto,q_auto/1515559/534889_633117.jpg // http://user-images.strikinglycdn.com/res/hrscywv4p/image/upload/1515559/534889_633117.jpg domain === "user-images.strikinglycdn.com" || + // thanks to fireattack on discord: + // https://custom-images.strikinglycdn.com/res/hrscywv4p/image/upload/c_limit,fl_lossy,h_1440,w_720,f_auto,q_auto/242805/218348_394202.jpeg + // https://custom-images.strikinglycdn.com/res/hrscywv4p/image/upload/242805/218348_394202.jpeg + domain === "custom-images.strikinglycdn.com" || // https://novel-img.prepics-cdn.com/image/upload/c_fill,w_156,h_222/p/c75f2ea15a148139b76ebdee2064737f8a4523c1/cover/ne7yeah9k1dsmwxmyuvn.jpg // https://novel-img.prepics-cdn.com/image/upload/p/c75f2ea15a148139b76ebdee2064737f8a4523c1/cover/ne7yeah9k1dsmwxmyuvn.jpg domain === "novel-img.prepics-cdn.com" || @@ -37419,6 +37423,16 @@ var $$IMU_EXPORT$$; }; } + if (domain === "resize.elle.fr") { + // thanks to remlap: + // https://resize.elle.fr/article/var/plain_site/storage/images/people/la-vie-des-people/news/ariana-grande-omar-sy-charlene-de-monaco-les-stars-illuminent-le-tapis-rouge-de-la-ceremonie-d-ouverture-des-jo-2024/102503276-1-fre-FR/Ariana-Grande-Omar-Sy-Charlene-de-Monaco-Les-stars-illuminent-le-tapis-rouge-de-la-ceremonie-d-ouverture-des-JO-2024.jpg + // https://resize.elle.fr/original/var/plain_site/storage/images/people/la-vie-des-people/news/ariana-grande-omar-sy-charlene-de-monaco-les-stars-illuminent-le-tapis-rouge-de-la-ceremonie-d-ouverture-des-jo-2024/102503276-1-fre-FR/Ariana-Grande-Omar-Sy-Charlene-de-Monaco-Les-stars-illuminent-le-tapis-rouge-de-la-ceremonie-d-ouverture-des-JO-2024.jpg + // https://cdn-elle.ladmedia.fr/var/plain_site/storage/images/people/la-vie-des-people/news/ariana-grande-omar-sy-charlene-de-monaco-les-stars-illuminent-le-tapis-rouge-de-la-ceremonie-d-ouverture-des-jo-2024/102503276-1-fre-FR/Ariana-Grande-Omar-Sy-Charlene-de-Monaco-Les-stars-illuminent-le-tapis-rouge-de-la-ceremonie-d-ouverture-des-JO-2024.jpg + return src + .replace(/:\/\/[^/]+\/+original\/+(var\/.*)$/, "://cdn-elle.ladmedia.fr/$1") + .replace(/(:\/\/[^/]+\/+)[^/]+\/+var\/+/, "$1original/var/"); + } + if (domain_nosub === "imgbox.com" && (domain.match(/^thumbs[0-9]*\./) || domain.match(/images[0-9]*\./))) { @@ -42578,6 +42592,10 @@ var $$IMU_EXPORT$$; // https://www.svensktnaringsliv.se/bilder_och_dokument/medarbetare-bilder/johan-britz-3jpg_637088.html/ALTERNATES/LANDSCAPE_1200/Johan%20Britz%203.jpg // https://www.svensktnaringsliv.se/bilder_och_dokument/medarbetare-bilder/johan-britz-3jpg_637088.html/BINARY/Johan%20Britz%203.jpg domain_nowww === "svensktnaringsliv.se" || + // thanks to anonymous for reporting: + // https://billeder.jyllands-posten.dk/pictures/image/3101765/u2bg6m/ALTERNATES/master-social/skadestuen-erer + // https://billeder.jyllands-posten.dk/pictures/image/3101765/u2bg6m/BINARY/skadestuen-erer + (domain_nosub === "jyllands-posten.dk" && /\/pictures\/+image\/+[0-9]+\//.test(src)) || src.match(/\/(?:article[0-9]+\.(?:ece|svt)|[0-9a-z]+\/+picture[0-9]{4,})\/+(?:[^/]*\/)?alternates\//i) || src.match(/:\/\/i[0-9]*(?:-prod)?\..*\/article[^/]*\.(?:ece|svt)\//i) // https://www.independent.ie/world-news/article37114917.ece/ALTERNATES/h342/ipanews_2350b658-06c1-4a29-b747-cbfdcd1b624c_1 @@ -115144,6 +115162,20 @@ var $$IMU_EXPORT$$; return src.replace(/(\/dev_cdn\/+[0-9]+\/+)thumbs\/+/, "$1"); } + if (domain === "assets.playbill.com") { + // thanks to anonymous for reporting: + // https://assets.playbill.com/editorial/_enhancementPortrait/91161ff7e0c3a7d3eeb709e828246c72-kiss-me-kate-broadway-kelli-ohara-amanda-green-feature-shoot-2018-08-hr.jpg + // https://assets.playbill.com/editorial/91161ff7e0c3a7d3eeb709e828246c72-kiss-me-kate-broadway-kelli-ohara-amanda-green-feature-shoot-2018-08-hr.jpg + return src.replace(/(\/editorial\/+)_enhancementPortrait\/+/, "$1"); + } + + if (domain === "cdn.s-cloud.fi") { + // thanks to anonymous for reporting: + // https://cdn.s-cloud.fi/v1/w384_h384_q75/assets/dam-id/9HD-GtG6a4N8Lgp_kDMq2J.jpg + // https://cdn.s-cloud.fi/v1/assets/dam-id/9HD-GtG6a4N8Lgp_kDMq2J.jpg + return src.replace(/(\/v1\/+)[^/]+\/+assets\/+/, "$1assets/"); + } + diff --git a/userscript.user.js b/userscript.user.js index 5cb71f9b..c13f9a43 100644 --- a/userscript.user.js +++ b/userscript.user.js @@ -26472,6 +26472,10 @@ var $$IMU_EXPORT$$; // http://user-images.strikinglycdn.com/res/hrscywv4p/image/upload/c_limit,fl_lossy,h_9000,w_1200,f_auto,q_auto/1515559/534889_633117.jpg // http://user-images.strikinglycdn.com/res/hrscywv4p/image/upload/1515559/534889_633117.jpg domain === "user-images.strikinglycdn.com" || + // thanks to fireattack on discord: + // https://custom-images.strikinglycdn.com/res/hrscywv4p/image/upload/c_limit,fl_lossy,h_1440,w_720,f_auto,q_auto/242805/218348_394202.jpeg + // https://custom-images.strikinglycdn.com/res/hrscywv4p/image/upload/242805/218348_394202.jpeg + domain === "custom-images.strikinglycdn.com" || // https://novel-img.prepics-cdn.com/image/upload/c_fill,w_156,h_222/p/c75f2ea15a148139b76ebdee2064737f8a4523c1/cover/ne7yeah9k1dsmwxmyuvn.jpg // https://novel-img.prepics-cdn.com/image/upload/p/c75f2ea15a148139b76ebdee2064737f8a4523c1/cover/ne7yeah9k1dsmwxmyuvn.jpg domain === "novel-img.prepics-cdn.com" || @@ -34233,6 +34237,15 @@ var $$IMU_EXPORT$$; can_head: true }; } + if (domain === "resize.elle.fr") { + // thanks to remlap: + // https://resize.elle.fr/article/var/plain_site/storage/images/people/la-vie-des-people/news/ariana-grande-omar-sy-charlene-de-monaco-les-stars-illuminent-le-tapis-rouge-de-la-ceremonie-d-ouverture-des-jo-2024/102503276-1-fre-FR/Ariana-Grande-Omar-Sy-Charlene-de-Monaco-Les-stars-illuminent-le-tapis-rouge-de-la-ceremonie-d-ouverture-des-JO-2024.jpg + // https://resize.elle.fr/original/var/plain_site/storage/images/people/la-vie-des-people/news/ariana-grande-omar-sy-charlene-de-monaco-les-stars-illuminent-le-tapis-rouge-de-la-ceremonie-d-ouverture-des-jo-2024/102503276-1-fre-FR/Ariana-Grande-Omar-Sy-Charlene-de-Monaco-Les-stars-illuminent-le-tapis-rouge-de-la-ceremonie-d-ouverture-des-JO-2024.jpg + // https://cdn-elle.ladmedia.fr/var/plain_site/storage/images/people/la-vie-des-people/news/ariana-grande-omar-sy-charlene-de-monaco-les-stars-illuminent-le-tapis-rouge-de-la-ceremonie-d-ouverture-des-jo-2024/102503276-1-fre-FR/Ariana-Grande-Omar-Sy-Charlene-de-Monaco-Les-stars-illuminent-le-tapis-rouge-de-la-ceremonie-d-ouverture-des-JO-2024.jpg + return src + .replace(/:\/\/[^/]+\/+original\/+(var\/.*)$/, "://cdn-elle.ladmedia.fr/$1") + .replace(/(:\/\/[^/]+\/+)[^/]+\/+var\/+/, "$1original/var/"); + } if (domain_nosub === "imgbox.com" && (domain.match(/^thumbs[0-9]*\./) || domain.match(/images[0-9]*\./))) { @@ -38956,6 +38969,10 @@ var $$IMU_EXPORT$$; // https://www.svensktnaringsliv.se/bilder_och_dokument/medarbetare-bilder/johan-britz-3jpg_637088.html/ALTERNATES/LANDSCAPE_1200/Johan%20Britz%203.jpg // https://www.svensktnaringsliv.se/bilder_och_dokument/medarbetare-bilder/johan-britz-3jpg_637088.html/BINARY/Johan%20Britz%203.jpg domain_nowww === "svensktnaringsliv.se" || + // thanks to anonymous for reporting: + // https://billeder.jyllands-posten.dk/pictures/image/3101765/u2bg6m/ALTERNATES/master-social/skadestuen-erer + // https://billeder.jyllands-posten.dk/pictures/image/3101765/u2bg6m/BINARY/skadestuen-erer + (domain_nosub === "jyllands-posten.dk" && /\/pictures\/+image\/+[0-9]+\//.test(src)) || src.match(/\/(?:article[0-9]+\.(?:ece|svt)|[0-9a-z]+\/+picture[0-9]{4,})\/+(?:[^/]*\/)?alternates\//i) || src.match(/:\/\/i[0-9]*(?:-prod)?\..*\/article[^/]*\.(?:ece|svt)\//i) // https://www.independent.ie/world-news/article37114917.ece/ALTERNATES/h342/ipanews_2350b658-06c1-4a29-b747-cbfdcd1b624c_1 @@ -103395,6 +103412,18 @@ var $$IMU_EXPORT$$; // 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"); } + if (domain === "assets.playbill.com") { + // thanks to anonymous for reporting: + // https://assets.playbill.com/editorial/_enhancementPortrait/91161ff7e0c3a7d3eeb709e828246c72-kiss-me-kate-broadway-kelli-ohara-amanda-green-feature-shoot-2018-08-hr.jpg + // https://assets.playbill.com/editorial/91161ff7e0c3a7d3eeb709e828246c72-kiss-me-kate-broadway-kelli-ohara-amanda-green-feature-shoot-2018-08-hr.jpg + return src.replace(/(\/editorial\/+)_enhancementPortrait\/+/, "$1"); + } + if (domain === "cdn.s-cloud.fi") { + // thanks to anonymous for reporting: + // https://cdn.s-cloud.fi/v1/w384_h384_q75/assets/dam-id/9HD-GtG6a4N8Lgp_kDMq2J.jpg + // https://cdn.s-cloud.fi/v1/assets/dam-id/9HD-GtG6a4N8Lgp_kDMq2J.jpg + return src.replace(/(\/v1\/+)[^/]+\/+assets\/+/, "$1assets/"); + } // -- 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