From 4110480a417322e5a9a3c94e29c7f3aa9718dd17 Mon Sep 17 00:00:00 2001 From: qsniyg Date: Sun, 11 Feb 2024 16:09:44 +0000 Subject: [PATCH] More websites/rules --- CHANGELOG.txt | 2 +- src/userscript.ts | 176 ++++++++++++++++++++++++++++++++++++++++----- userscript.user.js | 164 +++++++++++++++++++++++++++++++++++++----- 3 files changed, 308 insertions(+), 34 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 827c033c..b7816ad8 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,6 +1,6 @@ 2024.2.1 (in-dev) -Special thanks to rEnr3n, beeznutsonly, f2005 for their contributions and reports for this release +Special thanks to roi, rEnr3n, beeznutsonly, f2005 for their contributions and reports for this release --- diff --git a/src/userscript.ts b/src/userscript.ts index 2aca9409..fca6968a 100644 --- a/src/userscript.ts +++ b/src/userscript.ts @@ -28975,6 +28975,10 @@ var $$IMU_EXPORT$$; // thanks to Viper33 for reporting: // https://puls-img.chanel.com/c_limit/1696595583929-jennyportrait1jpg_7056x5760.jpg domain === "puls-img.chanel.com" || + // thanks to roi: + // https://resources.finalsite.net/images/t_image_size_4/v1548952592/finalsite/iheofywrk6vnds3lqcae/ResourcesBlogHeader.png + // https://resources.finalsite.net/images/finalsite/iheofywrk6vnds3lqcae/ResourcesBlogHeader.png + domain === "resources.finalsite.net" || // thanks to karpuzikov on github: https://github.com/qsniyg/maxurl/issues/1066 // https://resource.logitechg.com/w_677,ar_1:1,c_limit,b_rgb:2f3132,q_auto,f_auto,dpr_auto/d_transparent.gif/content/dam/gaming/en/homepage/product-swatch-carousel/home-product-swatch-4.png?v=1 // https://resource.logitechg.com/content/dam/gaming/en/homepage/product-swatch-carousel/home-product-swatch-4.png?v=1 @@ -28986,6 +28990,7 @@ var $$IMU_EXPORT$$; .replace(/\/fl_keep_iptc[^/]*\//, "/") .replace("/t_mp_quality/", "/") .replace(/\/t_PDP_[0-9]+_v1\//, "/") // static.nike.com, number seems to be the width + .replace(/\/t_image_size_[^/]+\//, "/") // resources.finalsite.net .replace(/\/private\/+t_[-0-9_]+\//, "/private/f_png/") // img.olympicchannel.com .replace(/\/v[0-9]{10}\//, "/") .replace(/\/image\/+upload\/+t_[^/]*\//, "/image/upload/"); @@ -29051,11 +29056,15 @@ var $$IMU_EXPORT$$; "https://images.bridestory.com/image/upload/assets/$1.jpg"); } - if (domain_nowww === "chanel.com") { + if (domain_nowww === "chanel.com" || + // thanks to roi: + // https://img.olympics.com/images/image/private/t_original_760/f_auto/primary/d3mlgzrzc3vdbt936jxk + // https://img.olympics.com/images/image/private/c_limit/primary/d3mlgzrzc3vdbt936jxk - 8000x4500 + domain === "img.olympics.com") { // thanks to rEnr3n on github: https://github.com/qsniyg/maxurl/issues/917 // https://www.chanel.com/images/q_auto,f_auto,fl_lossy,dpr_auto/w_1920/FSH-1632391810548-coconeige2021slideshowcampagnedesktop1.jpg // https://www.chanel.com/images/c_limit/FSH-1632391810548-coconeige2021slideshowcampagnedesktop1.jpg - return src.replace(/(\/images\/+)(?:(?:q|fl?|dpr|w|h)_[^/]+\/+)+/, "$1c_limit/"); + return src.replace(/(\/images\/+(?:image\/+private\/+)?)(?:(?:q|fl?|dpr|w|h|t)_[^/]+\/+)+/, "$1c_limit/"); } if (domain === "cloudinary-cdn.ffm.to") { @@ -29667,6 +29676,10 @@ var $$IMU_EXPORT$$; // https://sportkp.ru/sites/default/files/styles/post_list_thumb_347x271/public/text-images/2022-10/ria_6481437.mr_.1000._1666712142_1666712172.webp // https://sportkp.ru/sites/default/files/text-images/2022-10/ria_6481437.mr_.1000._1666712142_1666712172.jpg domain_nosub === "sportkp.ru" || + // thanks to roi: + // https://cdn-live.foreignaffairs.com/sites/default/files/styles/_webp_large_2x/public/images/2023/09/05/RTSNCEK8.JPG.webp?itok=yfCfahRC + // https://cdn-live.foreignaffairs.com/sites/default/files/images/2023/09/05/RTSNCEK8.JPG + domain === "cdn-live.foreignaffairs.com" || // http://cdn.whodoyouthinkyouaremagazine.com/sites/default/files/imagecache/623px_wide/episode/hewer500.jpg // http://cdn.whodoyouthinkyouaremagazine.com/sites/default/files/episode/hewer500.jpg // https://www.telugucinema.com/sites/default/files2/styles/media_gallery_thumbnail/public/amy-jackson-instagram1.jpg?itok=nwFhV2Iy @@ -29692,6 +29705,10 @@ var $$IMU_EXPORT$$; if (newsrc !== src) return newsrc; + newsrc = src.replace(/(\.jpe?g)\.webp([?#].*)?$/i, "$1$2"); + if (newsrc !== src) + return newsrc; + newsrc = src.replace(/\.webp([?#].*)?$/, ".jpg$1"); if (newsrc !== src) return newsrc; @@ -29745,6 +29762,13 @@ var $$IMU_EXPORT$$; return src.replace(/\/styles\/+[^/]*\/+s3\/+/, "/"); } + if (domain_nowww === "schweizer-illustrierte.ch") { + // thanks to roi: + // https://www.schweizer-illustrierte.ch/fp/1155/770/1445/945/sites/default/files/media/field_image/2024-02/imago_images_0397678741.jpg + // https://www.schweizer-illustrierte.ch/sites/default/files/media/field_image/2024-02/imago_images_0397678741.jpg + return src.replace(/\/fp\/+(?:[0-9]+\/+){4}(sites\/+)/, "/$1"); + } + if (domain_nowww === "trbimg.com") { // http://www.trbimg.com/img-53eeca18/turbine/la-1930791-me-adv-street-signs-001-jpg-20140815/700/700x394 // https://www.trbimg.com/img-53eeca18/turbine/la-1930791-me-adv-street-signs-001-jpg-20140815/ @@ -32682,6 +32706,10 @@ var $$IMU_EXPORT$$; // thanks to anonymous for reporting: // https://images.prod.hjholdings.tv/d3urerHm/uploads/migration/1be48297-bb1c-4925-8c6a-1df18751d389.png?w=331&h=447&p=t domain === "images.prod.hjholdings.tv" || + // thanks to roi: + // https://img.haarets.co.il/bs/0000018d-805e-daa1-a9fd-e25e74450000/d1/69/6404b74446c6a1e97f964591779e/66679.jpg?height=331&width=570 + // https://img.haarets.co.il/bs/0000018d-805e-daa1-a9fd-e25e74450000/d1/69/6404b74446c6a1e97f964591779e/66679.jpg + domain === "img.haarets.co.il" || // http://us.jimmychoo.com/dw/image/v2/AAWE_PRD/on/demandware.static/-/Sites-jch-master-product-catalog/default/dw70b1ebd2/images/rollover/LIZ100MPY_120004_MODEL.jpg?sw=245&sh=245&sm=fit // https://www.aritzia.com/on/demandware.static/-/Library-Sites-Aritzia_Shared/default/dw3a7fef87/seasonal/ss18/ss18-springsummercampaign/ss18-springsummercampaign-homepage/hptiles/tile-wilfred-lrg.jpg src.match(/\/demandware\.static\//) || @@ -40796,6 +40824,10 @@ var $$IMU_EXPORT$$; // https://cdn-storage-tass.cdnvideo.ru/resize/488x326/tass_media/2022/10/08/d/1665231913296714_d3YPJ-3j.jpg // https://cdn-storage-tass.cdnvideo.ru/tass_media/2022/10/08/d/1665231913296714_d3YPJ-3j.jpg domain === "cdn-storage-tass.cdnvideo.ru" || + // thanks to roi + // https://cdn-storage-media.tass.ru/resize/488x326/tass_media/2022/10/08/d/1665231913296714_d3YPJ-3j.jpg + // https://cdn-storage-media.tass.ru/tass_media/2022/10/08/d/1665231913296714_d3YPJ-3j.jpg + domain === "cdn-storage-media.tass.ru" || // different though? - and crop doesn't work // https://image.vtc.vn/resize/80x60/files/news/2018/02/21/-210540.jpg domain === "image.vtc.vn") { @@ -40810,6 +40842,14 @@ var $$IMU_EXPORT$$; .replace(/\/resize\/+[-0-9]+x[-0-9]+\//, "/"); } + + if (domain === "cdn-media.tass.ru") { + // thanks to roi: + // https://cdn-media.tass.ru/width/1200_4ce85301/tass/m2/uploads/i/20230814/7324491.jpg + // https://cdn-media.tass.ru/tass/m2/uploads/i/20230814/7324491.jpg + return src.replace(/(:\/\/[^/]+\/+)width\/+[0-9]+_[0-9a-f]+\/+/, "$1"); + } + if ((domain_nosub === "zadn.vn" && domain.match(/^photo-resize-/)) || domain === "org.photo-resize.mp3.zdn.vn") { // https://photo-resize-zmp3.zadn.vn/w240h240_jpeg/covers/9/d/9df0d52438b40d91aeaef1c1c2338e92_1476548588.jpg @@ -42225,6 +42265,15 @@ var $$IMU_EXPORT$$; return decodeuri_ifneeded(newsrc); } + if (domain === "images.sidearmdev.com") { + // thanks to roi: + // https://images.sidearmdev.com/resize?url=https%3a%2f%2fdxbhsrqyrr690.cloudfront.net%2fsidearm.nextgen.sites%2friceowls.com%2fimages%2f2012%2f10%2f14%2f6580785.jpeg&width=1416&type=jpeg + // https://dxbhsrqyrr690.cloudfront.net/sidearm.nextgen.sites/riceowls.com/images/2012/10/14/6580785.jpeg + newsrc = src.replace(/^[a-z]+:\/\/[^/]*\/+resize\?(?:.*?&)?url=([^&]*).*?$/, "$1"); + if (newsrc !== src) + return decodeuri_ifneeded(newsrc); + } + if (domain_nowww === "helloidol.com" && string_indexof(src, "/script/get_pic.php") >= 0) { // http://www.helloidol.com/script/get_pic.php?src=https://1.bp.blogspot.com/-iblNAdULcFY/WnkEGyGjySI/AAAAAAAADHQ/pgVIIcLeHOo6IngbASGuakOIpxBwHr8dACLcBGAs/s1600/Eulachacha-Waikiki.jpg&h=256&w=400&zc=1 @@ -79421,15 +79470,6 @@ var $$IMU_EXPORT$$; return src.replace(/(\/uploads\/+[^/]*\/+(?:[0-9]{4}\/+[0-9]{2}\/+)?)[wh][0-9]+px_/, "$1"); } - if (domain_nosub === "sinclairstoryline.com" && domain.match(/^static-[0-9]*\./)) { - // https://static-23.sinclairstoryline.com/resources/media/2e3255e9-6ac3-487b-84a4-cd179d2879b8-smallScale_AP18127829228703.jpg?1525740565492 - // https://static-23.sinclairstoryline.com/resources/media/2e3255e9-6ac3-487b-84a4-cd179d2879b8-AP18127829228703.jpg?1525740565492 - // other urls: - // http://static-14.sinclairstoryline.com/resources/media/9f010684-84f8-4607-a03c-43b92bc593e4-smallScale_antman_and_the_wasp_ver11_xlg.jpg?1530294970204 - // https://static-35.sinclairstoryline.com/resources/media/5db35fc1-3731-45d0-a6f0-d5c554e98fb5-antman_and_the_wasp_ver11_xlg.jpg - return src.replace(/(\/resources\/+media\/+[-0-9a-f]+)-[a-z]+Scale_(AP[0-9]+\.[^/.]*)(?:[?#].*)?$/, "$1-$2"); - } - if (domain_nowww === "maminka.cz") { // https://www.maminka.cz/getthumbnail.aspx?w=1600&h=1000&q=60&id_file=529858215 // https://www.maminka.cz/getthumbnail.aspx?w=100000&h=100000&q=100&id_file=529858215 @@ -98877,8 +98917,17 @@ var $$IMU_EXPORT$$; // https://d2eehagpk5cl65.cloudfront.net/wp-content/uploads/2020/09/reason-wolf.jpg // https://d2eehagpk5cl65.cloudfront.net/img/q60/uploads/2020/05/COVIDvaccineDreamstime-600x338.jpg // https://d2eehagpk5cl65.cloudfront.net/wp-content/uploads/2020/05/COVIDvaccineDreamstime.jpg + // thanks to roi: + // https://d2eehagpk5cl65.cloudfront.net/img/c331x186-w331-q60/uploads/2023/03/Joe-Biden-3-14-23-Newscom-scaled-e1678835619284-331x186.jpg.webp + // https://d2eehagpk5cl65.cloudfront.net/wp-content/uploads/2023/03/Joe-Biden-3-14-23-Newscom-scaled-e1678835619284.jpg + // https://d2eehagpk5cl65.cloudfront.net/wp-content/uploads/2023/03/Joe-Biden-3-14-23-Newscom.jpg // d2eehagpk5cl65.cloudfront.net = reason.com - return src.replace(/(:\/\/[^/]+\/+)img\/+(?:-?(?:c[0-9]+x[0-9]+|[whq][0-9]+))+\/+uploads\/+/, "$1wp-content/uploads/"); + newsrc = src + .replace(/(:\/\/[^/]+\/+wp-content\/+uploads\/.*?\.jpe?g)\.webp(?:[?#].*)?$/i, "$1") + .replace(/(:\/\/[^/]+\/+)img\/+(?:-?(?:c[0-9]+x[0-9]+|[whq][0-9]+))+\/+uploads\/+/, "$1wp-content/uploads/"); + // fall down to wordpress rule + if (newsrc !== src) + return newsrc; } if (amazon_container === "reasonmagazine-covers") { @@ -100298,6 +100347,15 @@ var $$IMU_EXPORT$$; return decodeuri_ifneeded(newsrc); } + if (domain === "r.testifier.nl") { + // thanks to roi: + // https://r.testifier.nl/Acbs8526SDKI/resizing_type:fill/watermark:TPN/width:1200/height:900/plain/https%3A%2F%2Fs3-newsifier.ams3.digitaloceanspaces.com%2Ftennisinfinitycom%2Fimages%2F2023-04%2Fandreeva-mirra-madrid23-tpn-644bd5f0b97d8.jpg + // https://s3-newsifier.ams3.digitaloceanspaces.com/tennisinfinitycom/images/2023-04/andreeva-mirra-madrid23-tpn-644bd5f0b97d8.jpg + newsrc = src.replace(/^[a-z]+:\/\/[^/]+\/+.*?\/(https?(?:%3A|:).*)$/, "$1"); + if (newsrc !== src) + return decodeuri_ifneeded(newsrc); + } + if (domain === "xcdn.next.co.uk") { // thanks to keophcp on github: https://github.com/qsniyg/maxurl/issues/487 // https://xcdn.next.co.uk/COMMON/Items/Default/Default/Publications/G81/shotview/8063/294-900s.jpg @@ -101416,7 +101474,27 @@ var $$IMU_EXPORT$$; } } - if (domain_nowww === "local12.com") { + if (domain_nowww === "local12.com" || + // https://static-23.sinclairstoryline.com/resources/media/2e3255e9-6ac3-487b-84a4-cd179d2879b8-smallScale_AP18127829228703.jpg?1525740565492 + // https://static-23.sinclairstoryline.com/resources/media/2e3255e9-6ac3-487b-84a4-cd179d2879b8-AP18127829228703.jpg?1525740565492 + // other urls: + // http://static-14.sinclairstoryline.com/resources/media/9f010684-84f8-4607-a03c-43b92bc593e4-smallScale_antman_and_the_wasp_ver11_xlg.jpg?1530294970204 + // https://static-35.sinclairstoryline.com/resources/media/5db35fc1-3731-45d0-a6f0-d5c554e98fb5-antman_and_the_wasp_ver11_xlg.jpg + (domain_nosub === "sinclairstoryline.com" && domain.match(/^static-[0-9]*\./)) || + // thanks to roi: + // https://nbc16.com/resources/media2/36x25/full/372/center/80/59d5d1e6-1b1f-4976-8218-635f47aaf384-jumbo36x25_8OregonvsWashington_.jpg + // https://nbc16.com/resources/media/59d5d1e6-1b1f-4976-8218-635f47aaf384-jumbo36x25_8OregonvsWashington_.jpg + // https://nbc16.com/resources/media/59d5d1e6-1b1f-4976-8218-635f47aaf384-8OregonvsWashington_.jpg + domain_nowww === "nbc16.com" || + // thanks to roi: + // https://bakersfieldnow.com/resources/media2/16x9/full/1015/center/80/76d4eb14-462d-4a31-85c1-961a36c4f0cd-large16x9_poster_9e85cfbac04f4757a6544b28e4450ec4.png + // https://bakersfieldnow.com/resources/media/76d4eb14-462d-4a31-85c1-961a36c4f0cd-large16x9_poster_9e85cfbac04f4757a6544b28e4450ec4.png + // https://bakersfieldnow.com/resources/media/76d4eb14-462d-4a31-85c1-961a36c4f0cd-poster_9e85cfbac04f4757a6544b28e4450ec4.png + // https://bakersfieldnow.com/resources/media/8693d77c-c3ba-42d5-88ba-2cf3867e23d6-large16x9_SWO2.jpg + // https://bakersfieldnow.com/resources/media/8693d77c-c3ba-42d5-88ba-2cf3867e23d6-SWO2.jpg + // https://bakersfieldnow.com/resources/media/8693d77c-c3ba-42d5-88ba-2cf3867e23d6-small16x9_SWO2.jpg + // https://bakersfieldnow.com/resources/media/8693d77c-c3ba-42d5-88ba-2cf3867e23d6-SWO2.jpg + domain_nowww === "bakersfieldnow.com") { // https://local12.com/news/offbeat/his-majesty-thats-how-a-wisconsin-woman-describes-her-backyard-find // https://local12.com/resources/media/7e597db3-ce7a-4025-a79e-5006e40343d1-large16x9_126412251_196313765281768_6827705181190257430_n.jpg?1605799649079 // { @@ -101459,7 +101537,10 @@ var $$IMU_EXPORT$$; // } // https://local12.com/resources/media/5442c3b7-3e36-4aa8-9e28-5fec812dae57-large16x9_genericfirenightCROSBYFIRE.transfer_frame_2149.png?1605906079889 // https://local12.com/resources/media/5442c3b7-3e36-4aa8-9e28-5fec812dae57-genericfirenightCROSBYFIRE.transfer_frame_2149.png?1605906079889 - newsrc = src.replace(/(\/resources\/+media\/+[-0-9a-f]{20,})-(?:large|medium|small)(?:[0-9]+x[0-9]+|Blur|Scale)_/, "$1-"); + newsrc = src + .replace(/(\/resources\/+media\/+[-0-9a-f]{20,})-(?:large|medium|small|jumbo)(?:[0-9]+x[0-9]+|Blur|Scale)_/, "$1-") + //.replace(/(\/resources\/+media\/+[-0-9a-f]{10,})-(?:[a-z]+Scale|(?:small|large)[0-9]+x[0-9]+)_([^/]+)(?:[?#].*)?$/, "$1-$2") + .replace(/\/resources\/+media2\/+.*?\/+([-0-9a-f]{10,}-[^/]+)(?:[?#].*)?$/, "/resources/media/$1"); if (newsrc !== src) return newsrc; } @@ -106986,7 +107067,11 @@ var $$IMU_EXPORT$$; return src.replace(/\/img\/+[0-9]+\/+([0-9]+)\/+[0-9]+\/+[a-z]+[0-9]*\/+[0-9]+\/+(?:[0-9]+\/+)?([^/]+(?:[?#].*)?)$/, "/img/app/$1/0/o/0/0/$2"); } - if (domain === "s74794.cdn.ngenix.net") { + if (domain === "s74794.cdn.ngenix.net" || + // thanks to roi: + // https://cdn-m.sport24.ru/m/d54b/2951/2a34/49a1/aa9e/6605/9d2c/0732/600_600_max.jpeg + // https://cdn-m.sport24.ru/m/d54b/2951/2a34/49a1/aa9e/6605/9d2c/0732.jpeg + domain === "cdn-m.sport24.ru") { // thanks to roi: // https://sport24.ru/ // https://s74794.cdn.ngenix.net/m/d54b/2951/2a34/49a1/aa9e/6605/9d2c/0732/600_600_max.jpeg @@ -107351,7 +107436,15 @@ var $$IMU_EXPORT$$; if (domain === "img.myslo.ru") { // thanks to roi: // https://img.myslo.ru/Photogallery/b0/ab/b0ab2c32-10db-402f-86ca-d48dcd033678_b.jpg - return src.replace(/(\/photogallery\/+(?:[0-9a-f]{2}\/+){2}[-0-9a-f]{10,})_[a-z]\./, "$1_o."); + // https://img.myslo.ru/Photogallery/b0/ab/b0ab2c32-10db-402f-86ca-d48dcd033678_o.jpg + // https://img.myslo.ru/Photogallery/34/16/3416e81c-b0be-4b3f-9b12-146a2217d23a_b.jpg + // https://img.myslo.ru/Photogallery/34/16/3416e81c-b0be-4b3f-9b12-146a2217d23a_o.jpg + // other: + // https://img.myslo.ru/Contents/10/5f/432d-74b8-492f-b343-ecf58f68a8ee/43bf69d5-5516-4ff5-832b-e2b25a0fedd9.jpg + // https://img.myslo.ru/NewsImage/2e/6b/2e6b4abf-a5e8-48f6-9363-19be44cd5e13_1.jpg + // https://img.myslo.ru/CityImage/02/a6/02a6aab8-5f59-4161-bbbd-e4bf6f5a961b_1.jpg + // https://img.myslo.ru/Pressa/Image/86/99/8699b4c2-daa0-447f-a6d2-c64744c958c2_1.jpg + return src.replace(/(\/photogallery\/+(?:[0-9a-f]{2}\/+){2}[-0-9a-f]{10,})_[a-z]\./i, "$1_o."); } if (domain === "img.tsargrad.tv") { @@ -108083,6 +108176,13 @@ var $$IMU_EXPORT$$; return src.replace(/.*\/arc-photo-ipmgroup\/+([^/]+)-prod\/+public\/+([^/]+)(?:[?#].*)?$/, "https://cloudfront-$1.images.arcpublishing.com/ipmgroup/$2"); } + if (domain_nowww === "leparisien.fr") { + // thanks to roi: + // https://www.leparisien.fr/resizer/9hAi8XJfgKznLUHslXM6XFHRJwQ=/arc-anglerfish-eu-central-1-prod-leparisien/public/INPJCBLRFBB47L3KDPDDIFLRNQ.jpg + // https://cloudfront-eu-central-1.images.arcpublishing.com/leparisien/INPJCBLRFBB47L3KDPDDIFLRNQ.jpg + return src.replace(/^[a-z]+:\/\/[^/]+\/+resizer\/+[^/]+=\/+arc-anglerfish-([^/]+)-prod-([^/]+)\/+public\/+/, "https://cloudfront-$1.images.arcpublishing.com/$2/"); + } + if (domain_nowww === "lqj.ch") { // thanks to roi: // https://www.lqj.ch/media/image/15/large_3_2/67b663ae-ee6b-4f64-b324-96392949a20e.jpg.webp @@ -112111,6 +112211,38 @@ var $$IMU_EXPORT$$; return src.replace(/(\/content\/.*)_thumb[0-9]+\./, "$1."); } + if (domain_nowww === "univision.com") { + // thanks to roi: + // https://www.univision.com/proxy/api/cached/picture?href=https%3A%2F%2Fst1.uvnimg.com%2F81%2F89%2F872474e84c81b91f0f0db777ae0d%2Fed2afbfc7f624c91badc0037c0d06e81&width=1524&height=857&ratio_width=300&ratio_height=300&resize_option=Fill%20Area&format=webp + // https://st1.uvnimg.com/81/89/872474e84c81b91f0f0db777ae0d/ed2afbfc7f624c91badc0037c0d06e81 + newsrc = src.replace(/^[a-z]+:\/\/[^/]+\/+proxy\/+api\/+cached\/+picture\?(?:.*&)?href=([^&]+)(?:[&#].*)?$/, "$1"); + if (newsrc !== src) + return decodeuri_ifneeded(newsrc); + } + + if (domain_nowww === "oblgazeta.ru") { + // thanks to roi: + // https://oblgazeta.ru/wp-content/uploads/2023/11/xPAV_4423-768x512.jpg.pagespeed.ic.cWi7guEQO7.webp + // https://oblgazeta.ru/wp-content/uploads/2023/11/PAV_4423.jpg + newsrc = src.replace(/\/x([^/?#]+)\.pagespeed\.ic\.[-_0-9a-zA-Z]+\.webp$/, "/$1"); + if (newsrc !== src) + return newsrc; + } + + if (domain === "eu.gogo.mn") { + // thanks to roi: + // https://eu.gogo.mn/newsn/thumbnail/1000/images/c/2022/01/289353-09012022-1641728248-1213177364-1.jpg + // https://eu.gogo.mn/newsn/images/c/2022/01/289353-09012022-1641728248-1213177364-1.jpg + return src.replace(/\/thumbnail\/+[0-9]+\/+images\/+/, "/images/"); + } + + if (domain === "static.legalcdn.org") { + // thanks to roi: + // https://static.legalcdn.org/lbimg/post-card/51/24/5cbd5703ca2c7_1555912451.png + // https://static.legalcdn.org/51/24/5cbd5703ca2c7_1555912451.png + return src.replace(/\/lbimg\/+post-[^/]+\/+/, "/"); + } + @@ -113701,7 +113833,17 @@ var $$IMU_EXPORT$$; // https://www.just-pro.jp/wp-content/uploads/2020/08/bce5a0e402d7dcefe6769c91602231c9.jpg // https://www.just-pro.jp/wp-content/uploads/2021/06/21c4961113d0c5ac12c2c1ca9f5c1497-scaled-e1623983146323.jpg // https://www.just-pro.jp/wp-content/uploads/2021/06/21c4961113d0c5ac12c2c1ca9f5c1497.jpg - return src.replace(/((?:(?:\/wp-content)?\/+uploads(?:\/+sites\/+[0-9]+)?)?\/+[0-9]{4}\/+[0-9]{2}\/+[^?#]*?)(?:-(?:scaled|e[0-9]{10,}|[0-9]+x[0-9]+))*(\.[^/.?]+)(?:[?#].*)?$/, "$1$2"); + newsrc = src.replace(/((?:(?:\/wp-content)?\/+uploads(?:\/+sites\/+[0-9]+)?)?\/+[0-9]{4}\/+[0-9]{2}\/+[^?#]*?)(?:-(?:scaled|e[0-9]{10,}|[0-9]+x[0-9]+))*(\.[^/.?]+)(?:[?#].*)?$/, "$1$2"); + if (newsrc !== src) { + let urls = [newsrc]; + // thanks to roi: + // https://vseznaika.press/wp-content/uploads/2023/05/%D0%90%D0%BB%D0%B5%D0%BA%D1%81%D0%B0%D0%BD%D0%B4%D1%80-%D0%AD%D0%BD%D0%B1%D0%B5%D1%80%D1%822-scaled.webp + // https://vseznaika.press/wp-content/uploads/2023/05/%D0%90%D0%BB%D0%B5%D0%BA%D1%81%D0%B0%D0%BD%D0%B4%D1%80-%D0%AD%D0%BD%D0%B1%D0%B5%D1%80%D1%822.jpg + let newsrc1 = newsrc.replace(/\.webp([?#].*)?$/, ".jpg$1"); + if (newsrc1 !== newsrc) + urls.unshift(newsrc1); + return urls + } } if (options.rule_specific && options.rule_specific.linked_image && options.element && options.element.parentElement) { diff --git a/userscript.user.js b/userscript.user.js index d8ef70f6..505b03fa 100644 --- a/userscript.user.js +++ b/userscript.user.js @@ -26436,6 +26436,10 @@ var $$IMU_EXPORT$$; // thanks to Viper33 for reporting: // https://puls-img.chanel.com/c_limit/1696595583929-jennyportrait1jpg_7056x5760.jpg domain === "puls-img.chanel.com" || + // thanks to roi: + // https://resources.finalsite.net/images/t_image_size_4/v1548952592/finalsite/iheofywrk6vnds3lqcae/ResourcesBlogHeader.png + // https://resources.finalsite.net/images/finalsite/iheofywrk6vnds3lqcae/ResourcesBlogHeader.png + domain === "resources.finalsite.net" || // thanks to karpuzikov on github: https://github.com/qsniyg/maxurl/issues/1066 // https://resource.logitechg.com/w_677,ar_1:1,c_limit,b_rgb:2f3132,q_auto,f_auto,dpr_auto/d_transparent.gif/content/dam/gaming/en/homepage/product-swatch-carousel/home-product-swatch-4.png?v=1 // https://resource.logitechg.com/content/dam/gaming/en/homepage/product-swatch-carousel/home-product-swatch-4.png?v=1 @@ -26447,6 +26451,7 @@ var $$IMU_EXPORT$$; .replace(/\/fl_keep_iptc[^/]*\//, "/") .replace("/t_mp_quality/", "/") .replace(/\/t_PDP_[0-9]+_v1\//, "/") // static.nike.com, number seems to be the width + .replace(/\/t_image_size_[^/]+\//, "/") // resources.finalsite.net .replace(/\/private\/+t_[-0-9_]+\//, "/private/f_png/") // img.olympicchannel.com .replace(/\/v[0-9]{10}\//, "/") .replace(/\/image\/+upload\/+t_[^/]*\//, "/image/upload/"); @@ -26503,11 +26508,15 @@ var $$IMU_EXPORT$$; // https://images.bridestory.com/image/upload/assets/the-barracks-hotel_wedding_mixed-tables_day_lo-res-By6IX3isU.jpg -- 5600x3735 return src.replace(/^[a-z]+:\/\/[^/]+\/+images\/+.*?\/+assets\/+([^/]+)\/+[^/]+(?:[?#].*)?$/, "https://images.bridestory.com/image/upload/assets/$1.jpg"); } - if (domain_nowww === "chanel.com") { + if (domain_nowww === "chanel.com" || + // thanks to roi: + // https://img.olympics.com/images/image/private/t_original_760/f_auto/primary/d3mlgzrzc3vdbt936jxk + // https://img.olympics.com/images/image/private/c_limit/primary/d3mlgzrzc3vdbt936jxk - 8000x4500 + domain === "img.olympics.com") { // thanks to rEnr3n on github: https://github.com/qsniyg/maxurl/issues/917 // https://www.chanel.com/images/q_auto,f_auto,fl_lossy,dpr_auto/w_1920/FSH-1632391810548-coconeige2021slideshowcampagnedesktop1.jpg // https://www.chanel.com/images/c_limit/FSH-1632391810548-coconeige2021slideshowcampagnedesktop1.jpg - return src.replace(/(\/images\/+)(?:(?:q|fl?|dpr|w|h)_[^/]+\/+)+/, "$1c_limit/"); + return src.replace(/(\/images\/+(?:image\/+private\/+)?)(?:(?:q|fl?|dpr|w|h|t)_[^/]+\/+)+/, "$1c_limit/"); } if (domain === "cloudinary-cdn.ffm.to") { // thanks to anonymous for reporting: @@ -27063,6 +27072,10 @@ var $$IMU_EXPORT$$; // https://sportkp.ru/sites/default/files/styles/post_list_thumb_347x271/public/text-images/2022-10/ria_6481437.mr_.1000._1666712142_1666712172.webp // https://sportkp.ru/sites/default/files/text-images/2022-10/ria_6481437.mr_.1000._1666712142_1666712172.jpg domain_nosub === "sportkp.ru" || + // thanks to roi: + // https://cdn-live.foreignaffairs.com/sites/default/files/styles/_webp_large_2x/public/images/2023/09/05/RTSNCEK8.JPG.webp?itok=yfCfahRC + // https://cdn-live.foreignaffairs.com/sites/default/files/images/2023/09/05/RTSNCEK8.JPG + domain === "cdn-live.foreignaffairs.com" || // http://cdn.whodoyouthinkyouaremagazine.com/sites/default/files/imagecache/623px_wide/episode/hewer500.jpg // http://cdn.whodoyouthinkyouaremagazine.com/sites/default/files/episode/hewer500.jpg // https://www.telugucinema.com/sites/default/files2/styles/media_gallery_thumbnail/public/amy-jackson-instagram1.jpg?itok=nwFhV2Iy @@ -27084,6 +27097,9 @@ var $$IMU_EXPORT$$; newsrc = src .replace(/\/styles\/+.*?\/+(?:public|private)\//, "/") .replace(/\/imagecache\/+[^/]*\/+(?:files\/)?/, "/"); + if (newsrc !== src) + return newsrc; + newsrc = src.replace(/(\.jpe?g)\.webp([?#].*)?$/i, "$1$2"); if (newsrc !== src) return newsrc; newsrc = src.replace(/\.webp([?#].*)?$/, ".jpg$1"); @@ -27132,6 +27148,12 @@ var $$IMU_EXPORT$$; // https://media.voltron.voanews.com/Drupal/01live-166/2019-04/E5076B31-4E4E-4435-AD6A-3784CE9C188D.jpg?itok=jV9YimuM return src.replace(/\/styles\/+[^/]*\/+s3\/+/, "/"); } + if (domain_nowww === "schweizer-illustrierte.ch") { + // thanks to roi: + // https://www.schweizer-illustrierte.ch/fp/1155/770/1445/945/sites/default/files/media/field_image/2024-02/imago_images_0397678741.jpg + // https://www.schweizer-illustrierte.ch/sites/default/files/media/field_image/2024-02/imago_images_0397678741.jpg + return src.replace(/\/fp\/+(?:[0-9]+\/+){4}(sites\/+)/, "/$1"); + } if (domain_nowww === "trbimg.com") { // http://www.trbimg.com/img-53eeca18/turbine/la-1930791-me-adv-street-signs-001-jpg-20140815/700/700x394 // https://www.trbimg.com/img-53eeca18/turbine/la-1930791-me-adv-street-signs-001-jpg-20140815/ @@ -29868,6 +29890,10 @@ var $$IMU_EXPORT$$; // thanks to anonymous for reporting: // https://images.prod.hjholdings.tv/d3urerHm/uploads/migration/1be48297-bb1c-4925-8c6a-1df18751d389.png?w=331&h=447&p=t domain === "images.prod.hjholdings.tv" || + // thanks to roi: + // https://img.haarets.co.il/bs/0000018d-805e-daa1-a9fd-e25e74450000/d1/69/6404b74446c6a1e97f964591779e/66679.jpg?height=331&width=570 + // https://img.haarets.co.il/bs/0000018d-805e-daa1-a9fd-e25e74450000/d1/69/6404b74446c6a1e97f964591779e/66679.jpg + domain === "img.haarets.co.il" || // http://us.jimmychoo.com/dw/image/v2/AAWE_PRD/on/demandware.static/-/Sites-jch-master-product-catalog/default/dw70b1ebd2/images/rollover/LIZ100MPY_120004_MODEL.jpg?sw=245&sh=245&sm=fit // https://www.aritzia.com/on/demandware.static/-/Library-Sites-Aritzia_Shared/default/dw3a7fef87/seasonal/ss18/ss18-springsummercampaign/ss18-springsummercampaign-homepage/hptiles/tile-wilfred-lrg.jpg src.match(/\/demandware\.static\//) || @@ -37300,6 +37326,10 @@ var $$IMU_EXPORT$$; // https://cdn-storage-tass.cdnvideo.ru/resize/488x326/tass_media/2022/10/08/d/1665231913296714_d3YPJ-3j.jpg // https://cdn-storage-tass.cdnvideo.ru/tass_media/2022/10/08/d/1665231913296714_d3YPJ-3j.jpg domain === "cdn-storage-tass.cdnvideo.ru" || + // thanks to roi + // https://cdn-storage-media.tass.ru/resize/488x326/tass_media/2022/10/08/d/1665231913296714_d3YPJ-3j.jpg + // https://cdn-storage-media.tass.ru/tass_media/2022/10/08/d/1665231913296714_d3YPJ-3j.jpg + domain === "cdn-storage-media.tass.ru" || // different though? - and crop doesn't work // https://image.vtc.vn/resize/80x60/files/news/2018/02/21/-210540.jpg domain === "image.vtc.vn") { @@ -37313,6 +37343,12 @@ var $$IMU_EXPORT$$; .replace(/\/crop\/+[-0-9]+x[-0-9]+\//, "/") .replace(/\/resize\/+[-0-9]+x[-0-9]+\//, "/"); } + if (domain === "cdn-media.tass.ru") { + // thanks to roi: + // https://cdn-media.tass.ru/width/1200_4ce85301/tass/m2/uploads/i/20230814/7324491.jpg + // https://cdn-media.tass.ru/tass/m2/uploads/i/20230814/7324491.jpg + return src.replace(/(:\/\/[^/]+\/+)width\/+[0-9]+_[0-9a-f]+\/+/, "$1"); + } if ((domain_nosub === "zadn.vn" && domain.match(/^photo-resize-/)) || domain === "org.photo-resize.mp3.zdn.vn") { // https://photo-resize-zmp3.zadn.vn/w240h240_jpeg/covers/9/d/9df0d52438b40d91aeaef1c1c2338e92_1476548588.jpg @@ -38620,6 +38656,14 @@ var $$IMU_EXPORT$$; if (newsrc !== src) return decodeuri_ifneeded(newsrc); } + if (domain === "images.sidearmdev.com") { + // thanks to roi: + // https://images.sidearmdev.com/resize?url=https%3a%2f%2fdxbhsrqyrr690.cloudfront.net%2fsidearm.nextgen.sites%2friceowls.com%2fimages%2f2012%2f10%2f14%2f6580785.jpeg&width=1416&type=jpeg + // https://dxbhsrqyrr690.cloudfront.net/sidearm.nextgen.sites/riceowls.com/images/2012/10/14/6580785.jpeg + newsrc = src.replace(/^[a-z]+:\/\/[^/]*\/+resize\?(?:.*?&)?url=([^&]*).*?$/, "$1"); + if (newsrc !== src) + return decodeuri_ifneeded(newsrc); + } if (domain_nowww === "helloidol.com" && string_indexof(src, "/script/get_pic.php") >= 0) { // http://www.helloidol.com/script/get_pic.php?src=https://1.bp.blogspot.com/-iblNAdULcFY/WnkEGyGjySI/AAAAAAAADHQ/pgVIIcLeHOo6IngbASGuakOIpxBwHr8dACLcBGAs/s1600/Eulachacha-Waikiki.jpg&h=256&w=400&zc=1 @@ -71657,14 +71701,6 @@ var $$IMU_EXPORT$$; // https://www.expofashionmagazine.com/uploads/fotos_noticias/2016/09/13968-114605.jpg return src.replace(/(\/uploads\/+[^/]*\/+(?:[0-9]{4}\/+[0-9]{2}\/+)?)[wh][0-9]+px_/, "$1"); } - if (domain_nosub === "sinclairstoryline.com" && domain.match(/^static-[0-9]*\./)) { - // https://static-23.sinclairstoryline.com/resources/media/2e3255e9-6ac3-487b-84a4-cd179d2879b8-smallScale_AP18127829228703.jpg?1525740565492 - // https://static-23.sinclairstoryline.com/resources/media/2e3255e9-6ac3-487b-84a4-cd179d2879b8-AP18127829228703.jpg?1525740565492 - // other urls: - // http://static-14.sinclairstoryline.com/resources/media/9f010684-84f8-4607-a03c-43b92bc593e4-smallScale_antman_and_the_wasp_ver11_xlg.jpg?1530294970204 - // https://static-35.sinclairstoryline.com/resources/media/5db35fc1-3731-45d0-a6f0-d5c554e98fb5-antman_and_the_wasp_ver11_xlg.jpg - return src.replace(/(\/resources\/+media\/+[-0-9a-f]+)-[a-z]+Scale_(AP[0-9]+\.[^/.]*)(?:[?#].*)?$/, "$1-$2"); - } if (domain_nowww === "maminka.cz") { // https://www.maminka.cz/getthumbnail.aspx?w=1600&h=1000&q=60&id_file=529858215 // https://www.maminka.cz/getthumbnail.aspx?w=100000&h=100000&q=100&id_file=529858215 @@ -88752,8 +88788,17 @@ var $$IMU_EXPORT$$; // https://d2eehagpk5cl65.cloudfront.net/wp-content/uploads/2020/09/reason-wolf.jpg // https://d2eehagpk5cl65.cloudfront.net/img/q60/uploads/2020/05/COVIDvaccineDreamstime-600x338.jpg // https://d2eehagpk5cl65.cloudfront.net/wp-content/uploads/2020/05/COVIDvaccineDreamstime.jpg + // thanks to roi: + // https://d2eehagpk5cl65.cloudfront.net/img/c331x186-w331-q60/uploads/2023/03/Joe-Biden-3-14-23-Newscom-scaled-e1678835619284-331x186.jpg.webp + // https://d2eehagpk5cl65.cloudfront.net/wp-content/uploads/2023/03/Joe-Biden-3-14-23-Newscom-scaled-e1678835619284.jpg + // https://d2eehagpk5cl65.cloudfront.net/wp-content/uploads/2023/03/Joe-Biden-3-14-23-Newscom.jpg // d2eehagpk5cl65.cloudfront.net = reason.com - return src.replace(/(:\/\/[^/]+\/+)img\/+(?:-?(?:c[0-9]+x[0-9]+|[whq][0-9]+))+\/+uploads\/+/, "$1wp-content/uploads/"); + newsrc = src + .replace(/(:\/\/[^/]+\/+wp-content\/+uploads\/.*?\.jpe?g)\.webp(?:[?#].*)?$/i, "$1") + .replace(/(:\/\/[^/]+\/+)img\/+(?:-?(?:c[0-9]+x[0-9]+|[whq][0-9]+))+\/+uploads\/+/, "$1wp-content/uploads/"); + // fall down to wordpress rule + if (newsrc !== src) + return newsrc; } if (amazon_container === "reasonmagazine-covers") { // thanks to llacb47 on github: https://github.com/qsniyg/maxurl/issues/445 @@ -90018,6 +90063,14 @@ var $$IMU_EXPORT$$; if (newsrc !== src) return decodeuri_ifneeded(newsrc); } + if (domain === "r.testifier.nl") { + // thanks to roi: + // https://r.testifier.nl/Acbs8526SDKI/resizing_type:fill/watermark:TPN/width:1200/height:900/plain/https%3A%2F%2Fs3-newsifier.ams3.digitaloceanspaces.com%2Ftennisinfinitycom%2Fimages%2F2023-04%2Fandreeva-mirra-madrid23-tpn-644bd5f0b97d8.jpg + // https://s3-newsifier.ams3.digitaloceanspaces.com/tennisinfinitycom/images/2023-04/andreeva-mirra-madrid23-tpn-644bd5f0b97d8.jpg + newsrc = src.replace(/^[a-z]+:\/\/[^/]+\/+.*?\/(https?(?:%3A|:).*)$/, "$1"); + if (newsrc !== src) + return decodeuri_ifneeded(newsrc); + } if (domain === "xcdn.next.co.uk") { // thanks to keophcp on github: https://github.com/qsniyg/maxurl/issues/487 // https://xcdn.next.co.uk/COMMON/Items/Default/Default/Publications/G81/shotview/8063/294-900s.jpg @@ -91021,7 +91074,27 @@ var $$IMU_EXPORT$$; } } } - if (domain_nowww === "local12.com") { + if (domain_nowww === "local12.com" || + // https://static-23.sinclairstoryline.com/resources/media/2e3255e9-6ac3-487b-84a4-cd179d2879b8-smallScale_AP18127829228703.jpg?1525740565492 + // https://static-23.sinclairstoryline.com/resources/media/2e3255e9-6ac3-487b-84a4-cd179d2879b8-AP18127829228703.jpg?1525740565492 + // other urls: + // http://static-14.sinclairstoryline.com/resources/media/9f010684-84f8-4607-a03c-43b92bc593e4-smallScale_antman_and_the_wasp_ver11_xlg.jpg?1530294970204 + // https://static-35.sinclairstoryline.com/resources/media/5db35fc1-3731-45d0-a6f0-d5c554e98fb5-antman_and_the_wasp_ver11_xlg.jpg + (domain_nosub === "sinclairstoryline.com" && domain.match(/^static-[0-9]*\./)) || + // thanks to roi: + // https://nbc16.com/resources/media2/36x25/full/372/center/80/59d5d1e6-1b1f-4976-8218-635f47aaf384-jumbo36x25_8OregonvsWashington_.jpg + // https://nbc16.com/resources/media/59d5d1e6-1b1f-4976-8218-635f47aaf384-jumbo36x25_8OregonvsWashington_.jpg + // https://nbc16.com/resources/media/59d5d1e6-1b1f-4976-8218-635f47aaf384-8OregonvsWashington_.jpg + domain_nowww === "nbc16.com" || + // thanks to roi: + // https://bakersfieldnow.com/resources/media2/16x9/full/1015/center/80/76d4eb14-462d-4a31-85c1-961a36c4f0cd-large16x9_poster_9e85cfbac04f4757a6544b28e4450ec4.png + // https://bakersfieldnow.com/resources/media/76d4eb14-462d-4a31-85c1-961a36c4f0cd-large16x9_poster_9e85cfbac04f4757a6544b28e4450ec4.png + // https://bakersfieldnow.com/resources/media/76d4eb14-462d-4a31-85c1-961a36c4f0cd-poster_9e85cfbac04f4757a6544b28e4450ec4.png + // https://bakersfieldnow.com/resources/media/8693d77c-c3ba-42d5-88ba-2cf3867e23d6-large16x9_SWO2.jpg + // https://bakersfieldnow.com/resources/media/8693d77c-c3ba-42d5-88ba-2cf3867e23d6-SWO2.jpg + // https://bakersfieldnow.com/resources/media/8693d77c-c3ba-42d5-88ba-2cf3867e23d6-small16x9_SWO2.jpg + // https://bakersfieldnow.com/resources/media/8693d77c-c3ba-42d5-88ba-2cf3867e23d6-SWO2.jpg + domain_nowww === "bakersfieldnow.com") { // https://local12.com/news/offbeat/his-majesty-thats-how-a-wisconsin-woman-describes-her-backyard-find // https://local12.com/resources/media/7e597db3-ce7a-4025-a79e-5006e40343d1-large16x9_126412251_196313765281768_6827705181190257430_n.jpg?1605799649079 // { @@ -91064,7 +91137,10 @@ var $$IMU_EXPORT$$; // } // https://local12.com/resources/media/5442c3b7-3e36-4aa8-9e28-5fec812dae57-large16x9_genericfirenightCROSBYFIRE.transfer_frame_2149.png?1605906079889 // https://local12.com/resources/media/5442c3b7-3e36-4aa8-9e28-5fec812dae57-genericfirenightCROSBYFIRE.transfer_frame_2149.png?1605906079889 - newsrc = src.replace(/(\/resources\/+media\/+[-0-9a-f]{20,})-(?:large|medium|small)(?:[0-9]+x[0-9]+|Blur|Scale)_/, "$1-"); + newsrc = src + .replace(/(\/resources\/+media\/+[-0-9a-f]{20,})-(?:large|medium|small|jumbo)(?:[0-9]+x[0-9]+|Blur|Scale)_/, "$1-") + //.replace(/(\/resources\/+media\/+[-0-9a-f]{10,})-(?:[a-z]+Scale|(?:small|large)[0-9]+x[0-9]+)_([^/]+)(?:[?#].*)?$/, "$1-$2") + .replace(/\/resources\/+media2\/+.*?\/+([-0-9a-f]{10,}-[^/]+)(?:[?#].*)?$/, "/resources/media/$1"); if (newsrc !== src) return newsrc; } @@ -96033,7 +96109,11 @@ var $$IMU_EXPORT$$; // https://www.sport24.gr/img/app/8274244/0/o/0/0/untitled_7.jpg -- 440x4752 return src.replace(/\/img\/+[0-9]+\/+([0-9]+)\/+[0-9]+\/+[a-z]+[0-9]*\/+[0-9]+\/+(?:[0-9]+\/+)?([^/]+(?:[?#].*)?)$/, "/img/app/$1/0/o/0/0/$2"); } - if (domain === "s74794.cdn.ngenix.net") { + if (domain === "s74794.cdn.ngenix.net" || + // thanks to roi: + // https://cdn-m.sport24.ru/m/d54b/2951/2a34/49a1/aa9e/6605/9d2c/0732/600_600_max.jpeg + // https://cdn-m.sport24.ru/m/d54b/2951/2a34/49a1/aa9e/6605/9d2c/0732.jpeg + domain === "cdn-m.sport24.ru") { // thanks to roi: // https://sport24.ru/ // https://s74794.cdn.ngenix.net/m/d54b/2951/2a34/49a1/aa9e/6605/9d2c/0732/600_600_max.jpeg @@ -96359,7 +96439,15 @@ var $$IMU_EXPORT$$; if (domain === "img.myslo.ru") { // thanks to roi: // https://img.myslo.ru/Photogallery/b0/ab/b0ab2c32-10db-402f-86ca-d48dcd033678_b.jpg - return src.replace(/(\/photogallery\/+(?:[0-9a-f]{2}\/+){2}[-0-9a-f]{10,})_[a-z]\./, "$1_o."); + // https://img.myslo.ru/Photogallery/b0/ab/b0ab2c32-10db-402f-86ca-d48dcd033678_o.jpg + // https://img.myslo.ru/Photogallery/34/16/3416e81c-b0be-4b3f-9b12-146a2217d23a_b.jpg + // https://img.myslo.ru/Photogallery/34/16/3416e81c-b0be-4b3f-9b12-146a2217d23a_o.jpg + // other: + // https://img.myslo.ru/Contents/10/5f/432d-74b8-492f-b343-ecf58f68a8ee/43bf69d5-5516-4ff5-832b-e2b25a0fedd9.jpg + // https://img.myslo.ru/NewsImage/2e/6b/2e6b4abf-a5e8-48f6-9363-19be44cd5e13_1.jpg + // https://img.myslo.ru/CityImage/02/a6/02a6aab8-5f59-4161-bbbd-e4bf6f5a961b_1.jpg + // https://img.myslo.ru/Pressa/Image/86/99/8699b4c2-daa0-447f-a6d2-c64744c958c2_1.jpg + return src.replace(/(\/photogallery\/+(?:[0-9a-f]{2}\/+){2}[-0-9a-f]{10,})_[a-z]\./i, "$1_o."); } if (domain === "img.tsargrad.tv") { // thanks to roi: @@ -97029,6 +97117,12 @@ var $$IMU_EXPORT$$; // https://cloudfront-eu-central-1.images.arcpublishing.com/ipmgroup/ABXG3M6GIVCHJHUNGKBXTKQZY4.png return src.replace(/.*\/arc-photo-ipmgroup\/+([^/]+)-prod\/+public\/+([^/]+)(?:[?#].*)?$/, "https://cloudfront-$1.images.arcpublishing.com/ipmgroup/$2"); } + if (domain_nowww === "leparisien.fr") { + // thanks to roi: + // https://www.leparisien.fr/resizer/9hAi8XJfgKznLUHslXM6XFHRJwQ=/arc-anglerfish-eu-central-1-prod-leparisien/public/INPJCBLRFBB47L3KDPDDIFLRNQ.jpg + // https://cloudfront-eu-central-1.images.arcpublishing.com/leparisien/INPJCBLRFBB47L3KDPDDIFLRNQ.jpg + return src.replace(/^[a-z]+:\/\/[^/]+\/+resizer\/+[^/]+=\/+arc-anglerfish-([^/]+)-prod-([^/]+)\/+public\/+/, "https://cloudfront-$1.images.arcpublishing.com/$2/"); + } if (domain_nowww === "lqj.ch") { // thanks to roi: // https://www.lqj.ch/media/image/15/large_3_2/67b663ae-ee6b-4f64-b324-96392949a20e.jpg.webp @@ -100628,6 +100722,34 @@ var $$IMU_EXPORT$$; // https://storage.pubble.nl/350eaab2/content/2023/1/f4b4e7f3-af5e-4500-948e-69b3920589b4.jpg return src.replace(/(\/content\/.*)_thumb[0-9]+\./, "$1."); } + if (domain_nowww === "univision.com") { + // thanks to roi: + // https://www.univision.com/proxy/api/cached/picture?href=https%3A%2F%2Fst1.uvnimg.com%2F81%2F89%2F872474e84c81b91f0f0db777ae0d%2Fed2afbfc7f624c91badc0037c0d06e81&width=1524&height=857&ratio_width=300&ratio_height=300&resize_option=Fill%20Area&format=webp + // https://st1.uvnimg.com/81/89/872474e84c81b91f0f0db777ae0d/ed2afbfc7f624c91badc0037c0d06e81 + newsrc = src.replace(/^[a-z]+:\/\/[^/]+\/+proxy\/+api\/+cached\/+picture\?(?:.*&)?href=([^&]+)(?:[&#].*)?$/, "$1"); + if (newsrc !== src) + return decodeuri_ifneeded(newsrc); + } + if (domain_nowww === "oblgazeta.ru") { + // thanks to roi: + // https://oblgazeta.ru/wp-content/uploads/2023/11/xPAV_4423-768x512.jpg.pagespeed.ic.cWi7guEQO7.webp + // https://oblgazeta.ru/wp-content/uploads/2023/11/PAV_4423.jpg + newsrc = src.replace(/\/x([^/?#]+)\.pagespeed\.ic\.[-_0-9a-zA-Z]+\.webp$/, "/$1"); + if (newsrc !== src) + return newsrc; + } + if (domain === "eu.gogo.mn") { + // thanks to roi: + // https://eu.gogo.mn/newsn/thumbnail/1000/images/c/2022/01/289353-09012022-1641728248-1213177364-1.jpg + // https://eu.gogo.mn/newsn/images/c/2022/01/289353-09012022-1641728248-1213177364-1.jpg + return src.replace(/\/thumbnail\/+[0-9]+\/+images\/+/, "/images/"); + } + if (domain === "static.legalcdn.org") { + // thanks to roi: + // https://static.legalcdn.org/lbimg/post-card/51/24/5cbd5703ca2c7_1555912451.png + // https://static.legalcdn.org/51/24/5cbd5703ca2c7_1555912451.png + return src.replace(/\/lbimg\/+post-[^/]+\/+/, "/"); + } // -- 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 @@ -101953,7 +102075,17 @@ var $$IMU_EXPORT$$; // https://www.just-pro.jp/wp-content/uploads/2020/08/bce5a0e402d7dcefe6769c91602231c9.jpg // https://www.just-pro.jp/wp-content/uploads/2021/06/21c4961113d0c5ac12c2c1ca9f5c1497-scaled-e1623983146323.jpg // https://www.just-pro.jp/wp-content/uploads/2021/06/21c4961113d0c5ac12c2c1ca9f5c1497.jpg - return src.replace(/((?:(?:\/wp-content)?\/+uploads(?:\/+sites\/+[0-9]+)?)?\/+[0-9]{4}\/+[0-9]{2}\/+[^?#]*?)(?:-(?:scaled|e[0-9]{10,}|[0-9]+x[0-9]+))*(\.[^/.?]+)(?:[?#].*)?$/, "$1$2"); + newsrc = src.replace(/((?:(?:\/wp-content)?\/+uploads(?:\/+sites\/+[0-9]+)?)?\/+[0-9]{4}\/+[0-9]{2}\/+[^?#]*?)(?:-(?:scaled|e[0-9]{10,}|[0-9]+x[0-9]+))*(\.[^/.?]+)(?:[?#].*)?$/, "$1$2"); + if (newsrc !== src) { + var urls_5 = [newsrc]; + // thanks to roi: + // https://vseznaika.press/wp-content/uploads/2023/05/%D0%90%D0%BB%D0%B5%D0%BA%D1%81%D0%B0%D0%BD%D0%B4%D1%80-%D0%AD%D0%BD%D0%B1%D0%B5%D1%80%D1%822-scaled.webp + // https://vseznaika.press/wp-content/uploads/2023/05/%D0%90%D0%BB%D0%B5%D0%BA%D1%81%D0%B0%D0%BD%D0%B4%D1%80-%D0%AD%D0%BD%D0%B1%D0%B5%D1%80%D1%822.jpg + var newsrc1 = newsrc.replace(/\.webp([?#].*)?$/, ".jpg$1"); + if (newsrc1 !== newsrc) + urls_5.unshift(newsrc1); + return urls_5; + } } if (options.rule_specific && options.rule_specific.linked_image && options.element && options.element.parentElement) { var link_el = common_functions["get_link_el_matching"](options.element.parentElement, function(el) {