diff --git a/src/userscript.ts b/src/userscript.ts index 8ce137a5..fcea3428 100644 --- a/src/userscript.ts +++ b/src/userscript.ts @@ -27198,7 +27198,11 @@ var $$IMU_EXPORT$$; return src.replace(/(\/thumb\.[a-z0-9]+)\.mini(?:[?#].*)?$/, "$1"); } - if (domain === "image.news1.kr") { + if (domain === "image.news1.kr" || + // thanks to anonymous for reporting: + // https://i2n.news1.kr/system/photos/2024/5/2/6629066/article.jpg + // https://i2n.news1.kr/system/photos/2024/5/2/6629066/original.jpg + domain === "i2n.news1.kr") { // http://image.news1.kr/system/thumbnails/photos/2018/2/19/2973418/thumb_336x230.jpg // http://image.news1.kr/system/photos/2018/2/19/2973418/original.jpg // http://image.news1.kr/system/photos/2014/8/22/985836/main_thumb.jpg @@ -33005,6 +33009,13 @@ var $$IMU_EXPORT$$; // thanks to tathastu871 on discord: // https://www.nottingham.ac.uk/Homepage-2021/Images/Hero/Normal-Never-Changed-the-World/Mobile/uon-bbw-603.xcc4dd816.jpg?w=1820&h=1213&crop=1820,500,0,99 (domain_nowww === "nottingham.ac.uk" && /\/images\//i.test(src)) || + // thanks to anonymous for reporting: + // https://www.catholicnewsagency.com/storage/image/south-korea.jpg?w=180&h=120 + (domain_nowww === "catholicnewsagency.com" && /\/storage\/+image\//.test(src)) || + // thanks to anonymous for reporting: + // https://cdn.ferrari.com/cms/network/media/img/resize/660d022be08fe10010bca850-ferrari-f1-2024-japan-cover-art-full-cover?width=768&height=0 + // https://cdn.ferrari.com/cms/network/media/img/resize/660d022be08fe10010bca850-ferrari-f1-2024-japan-cover-art-full-cover + (domain === "cdn.ferrari.com" && /\/media\/+img\//.test(src)) || // 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\//) || @@ -43077,11 +43088,14 @@ var $$IMU_EXPORT$$; // https://qph.cf2.quoracdn.net/main-qimg-ce650e3cb82159b6042f9c5da845dfc8-lq // https://qph.cf2.quoracdn.net/main-qimg-ce650e3cb82159b6042f9c5da845dfc8 // thanks to anonymous for reporting: + // https://qph.cf2.quoracdn.net/main-qimg-46e4c09f4f78ed4ca33470d3adb7073f-pjlq + // https://qph.cf2.quoracdn.net/main-qimg-46e4c09f4f78ed4ca33470d3adb7073f + // thanks to anonymous for reporting: // https://qph.cf2.quoracdn.net/main-thumb-787466541-200-pqnwkfwplsapthrxdiswtzkhvpgvdkdv.jpeg // https://qph.cf2.quoracdn.net/main-raw-787466541-pqnwkfwplsapthrxdiswtzkhvpgvdkdv.jpeg return src .replace(/(\/main-)thumb-([0-9]+-)[0-9]+-([a-z]{10,}\.)/, "$1raw-$2$3") - .replace(/(\/main-qimg-[0-9a-f]{10,})-(?:[a-z]|lq)$/, "$1"); + .replace(/(\/main-qimg-[0-9a-f]{10,})-(?:[a-z]|(?:pj)?lq)$/, "$1"); } if (false && domain_nosub === "fan.pw" && @@ -43467,7 +43481,11 @@ var $$IMU_EXPORT$$; // https://eiga.k-img.com/images/anime/news/104504/photo/ca6b941587bf429e.jpg // https://eiga.k-img.com/images/top_news/4109/f47df35189459e32/320.jpg // https://eiga.k-img.com/images/top_news/4109/f47df35189459e32.jpg + // thanks to anonymous for reporting: + // https://eiga.k-img.com/images/movie/81950/gallery/04.jpg?1426654966 -- 90x60 + // https://eiga.k-img.com/images/movie/81950/gallery/04_large.jpg?1426654966 -- 640x349 return src + .replace(/(\/images\/+movie\/+[0-9]+\/+gallery\/+[0-9]+)\./, "$1_large.") .replace(/(\/images\/+[a-z]+\/+(?:[a-z]+\/+)?[0-9]+\/)[0-9]+x(?:[0-9]+)?(\.[^/.]*)$/, "$1original$2") .replace(/(\/images\/+[a-z_]+\/+(?:[a-z]+\/+)?[0-9]+\/(?:[a-z]+\/)?[0-9a-f]+)\/[0-9]+(\.[^/.]*)$/, "$1$2"); } @@ -47071,6 +47089,8 @@ var $$IMU_EXPORT$$; // chevereto if (domain_nowww === "imgmax.com" || + // https://404store.com/2017/11/12/b1Ik9Cj-emma-watson-wallpapers.th.jpg + // https://404store.com/2017/05/18/wc1715233.md.jpg domain_nowww === "404store.com" || // https://www.imgpost.co.uk/images/2018/01/07/HagpiwP.md.jpg domain_nowww === "imgpost.co.uk" || @@ -47190,12 +47210,14 @@ var $$IMU_EXPORT$$; // https://add.pics/images/2020/05/07/ScreenShot_20200507200118.md.png // https://add.pics/images/2020/05/07/ScreenShot_20200507200118.png domain_nowww === "add.pics" || + // thanks to anonymous for reporting: + // https://putmega.com/images/image_2024-05-24_101150404702263668646a4d9.md.png + // https://putmega.com/images/image_2024-05-24_101150404702263668646a4d9.png + domain_nowww === "putmega.com" || // http://image-bugs.com/images/2017/09/09/CelebsFlash.com_NP_Harpers_Bazaar_090817__3_.md.jpg domain_nowww === "image-bugs.com") { // http://imgmax.com/images/2017/03/20/0OQhE.th.jpg // http://imgmax.com/images/2017/03/20/0OQhE.jpg - // https://404store.com/2017/11/12/b1Ik9Cj-emma-watson-wallpapers.th.jpg - // https://404store.com/2017/05/18/wc1715233.md.jpg return src.replace(/\.(?:th|md)(\.[^/.]*)$/, "$1"); } @@ -51802,8 +51824,10 @@ var $$IMU_EXPORT$$; }); }; + // thanks to anonymous for reporting: + // https://www.flickr.com/photos/129337299@N04/19021845639/sizes/h/ newsrc = website_query({ - website_regex: /^[a-z]+:\/\/[^/]+\/+photos\/+[^/]+\/+([0-9]+)(?:\/+(?:in\/+.*)?)?(?:[?#].*)?$/, + website_regex: /^[a-z]+:\/\/[^/]+\/+photos\/+[^/]+\/+([0-9]+)(?:\/+(?:(?:in|sizes)\/+.*)?)?(?:[?#].*)?$/, run: function(cb, match) { var id = match[1]; return cb("https://live.staticflickr.com/0000/" + id + "_face_b.jpg"); @@ -70385,10 +70409,14 @@ var $$IMU_EXPORT$$; "/fotografias/fotosnoticias/$1$2$3"); } - if (domain === "f.aukro.cz") { + if (domain === "f.aukro.cz" || + // thanks to anonymous for reporting: + // https://cdn.aukro.cz/images/sk1641125388951/730x548/wysoczanska-jadwiga-1927-2021-114781796.jpeg + // https://cdn.aukro.cz/images/sk1641125388951/wysoczanska-jadwiga-1927-2021-114781796.jpeg + domain === "cdn.aukro.cz") { // https://f.aukro.cz/images/sk6914079582/400x300/787f902d-2dbc-4eb6-a1b6-402d85079b69 // https://f.aukro.cz/images/sk6914079582/787f902d-2dbc-4eb6-a1b6-402d85079b69 -- forces download - return src.replace(/(\/images\/[^/]*\/)[0-9]+x[0-9]+\/([-0-9a-f]+)(?:[?#].*)?$/, "$1$2"); + return src.replace(/(\/images\/+sk[0-9]+\/+)[0-9]+x[0-9]+\/+/, "$1"); } if (false && (domain_nowww === "wallpapershome.com" || @@ -75456,6 +75484,13 @@ var $$IMU_EXPORT$$; return src.replace(/_[0-9]+_[0-9]+(\.[^/.]*)(?:[?#].*)?$/, "$1"); } + if (domain === "i.la-croix.com") { + // thanks to anonymous for reporting: + // https://i.la-croix.com/1400x933/smart/2021/12/16/1201190504/Marcel-Meys-doyen-Francais-112-6-octobre-2021_0.jpg + // https://img.aws.la-croix.com/2021/12/16/1201190504/Marcel-Meys-doyen-Francais-112-6-octobre-2021_0.jpg + return src.replace(/^[a-z]+:\/\/[^/]+\/+.*?(\/[0-9]{4}\/+(?:[0-9]{2}\/+){2}[0-9]{5,}\/+.*)/, "https://img.aws.la-croix.com$1"); + } + if (domain_nowww === "getty.edu") { // http://www.getty.edu/museum/media/images/web/enlarge/06253201.jpg // http://www.getty.edu/museum/media/images/web/download/06253201.jpg @@ -78640,6 +78675,13 @@ var $$IMU_EXPORT$$; return newsrc; } + if (domain === "d3ls91xgksobn.cloudfront.net") { + // thanks to anonymous for reporting: + // https://d3ls91xgksobn.cloudfront.net/5120x,q90,f=webp/etuovimedia/images/property/import/749/1938749/0e76b9541118d347871c0e0e51d244c4/e514bc941bdc717fe6796d9f56502c32/ORIGINAL.jpeg + // https://d3ls91xgksobn.cloudfront.net/q100/etuovimedia/images/property/import/749/1938749/0e76b9541118d347871c0e0e51d244c4/e514bc941bdc717fe6796d9f56502c32/ORIGINAL.jpeg + return src.replace(/(:\/\/[^/]+\/+)[^/]+\/+([^/]+\/+images\/)/, "$1q100/$2"); + } + if (domain_nowww === "cara.app") { let get_cara_imageid = function(url) { return url.replace(/.*\/posts\/+[-0-9a-f]{20,}\/[^-/.?#]+-([^-/.?#]+)-[^/]+(?:[?#].*)?$/, "$1"); @@ -114304,6 +114346,52 @@ var $$IMU_EXPORT$$; return src.replace(/-100-[auto0-9]+x[auto0-9]+\./, "-100-original."); } + if (domain === "cdn.arabsstock.com") { + // thanks to anonymous for reporting: + // https://cdn.arabsstock.com/uploads/images/37980/image-37980-saudi-gulf-man-inside-tourist-hotel-holding-mobile-phone-thumbnail.webp + // https://cdn.arabsstock.com/uploads/images/37980/image-37980-saudi-gulf-man-inside-tourist-hotel-holding-mobile-phone-thumbnail.jpg + newsrc = src.replace(/(\/uploads\/+images\/+[0-9]+\/+image-[0-9]+-[^/?#.]+-thumbnail\.)webp(?:[?#].*)?$/, "$1jpg"); + if (newsrc !== src) + return newsrc; + + // https://cdn.arabsstock.com/uploads/images/37980/image-37980-saudi-gulf-man-inside-tourist-hotel-holding-mobile-phone-preview.jpg + if (/\/uploads\/+images\/+[0-9]+\/+image-[0-9]+-[^/?#.]+-(?:preview|thumbnail)\./.test(src)) { + return [ + { + url: src.replace(/-[a-z]+(\.[a-z]+)(?:[?#].*)?$/, "-preview$1"), + problems: {watermark: true} + }, + { + url: src.replace(/-[a-z]+(\.[a-z]+)(?:[?#].*)?$/, "-thumbnail$1"), + problems: {smaller: true} + } + ] + } + } + + if (domain_nowww === "4get.ca") { + // thanks to anonymous for reporting: + // https://4get.ca/proxy?i=https%3A%2F%2Fencrypted-tbn0.gstatic.com%2Fimages%3Fq%3Dtbn%3AANd9GcQ9V8otZMfGWJ0eqaPirEhKOLtpslxwS5Gb8e9kqoKYZaYQMw%26s&s=thumb + // https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ9V8otZMfGWJ0eqaPirEhKOLtpslxwS5Gb8e9kqoKYZaYQMw&s + newsrc = src.replace(/^[a-z]+:\/\/[^/]+\/+proxy\?(?:.*&)?i=([^&#]+)(?:[&#].*)?$/, "$1"); + if (newsrc !== src) + return decodeuri_ifneeded(newsrc); + } + + if (host_domain_nowww === "4get.ca" && options.element) { + if (options.element.tagName === "IMG" && options.element.parentElement && + options.element.parentElement.tagName === "A" && options.element.parentElement.classList.contains("thumb")) { + return options.element.parentElement.href; + } + } + + if (domain === "img.fruugo.com") { + // thanks to anonymous for reporting: + // https://img.fruugo.com/product/9/23/1286615239_0340_0340.jpg + // https://img.fruugo.com/product/9/23/1286615239_max.jpg + return src.replace(/(\/product\/+[0-9]+\/+[0-9]+\/+[0-9]+)_[0-9]+_[0-9]+\./, "$1_max."); + } + diff --git a/userscript.user.js b/userscript.user.js index b7512c13..2cbeaf71 100644 --- a/userscript.user.js +++ b/userscript.user.js @@ -24805,7 +24805,11 @@ var $$IMU_EXPORT$$; // http://i1.tvpot.daumcdn.net/svc/image/U03/tvpot_thumb/7sbtgVQMZk8$/thumb.jpg return src.replace(/(\/thumb\.[a-z0-9]+)\.mini(?:[?#].*)?$/, "$1"); } - if (domain === "image.news1.kr") { + if (domain === "image.news1.kr" || + // thanks to anonymous for reporting: + // https://i2n.news1.kr/system/photos/2024/5/2/6629066/article.jpg + // https://i2n.news1.kr/system/photos/2024/5/2/6629066/original.jpg + domain === "i2n.news1.kr") { // http://image.news1.kr/system/thumbnails/photos/2018/2/19/2973418/thumb_336x230.jpg // http://image.news1.kr/system/photos/2018/2/19/2973418/original.jpg // http://image.news1.kr/system/photos/2014/8/22/985836/main_thumb.jpg @@ -30163,6 +30167,13 @@ var $$IMU_EXPORT$$; // thanks to tathastu871 on discord: // https://www.nottingham.ac.uk/Homepage-2021/Images/Hero/Normal-Never-Changed-the-World/Mobile/uon-bbw-603.xcc4dd816.jpg?w=1820&h=1213&crop=1820,500,0,99 (domain_nowww === "nottingham.ac.uk" && /\/images\//i.test(src)) || + // thanks to anonymous for reporting: + // https://www.catholicnewsagency.com/storage/image/south-korea.jpg?w=180&h=120 + (domain_nowww === "catholicnewsagency.com" && /\/storage\/+image\//.test(src)) || + // thanks to anonymous for reporting: + // https://cdn.ferrari.com/cms/network/media/img/resize/660d022be08fe10010bca850-ferrari-f1-2024-japan-cover-art-full-cover?width=768&height=0 + // https://cdn.ferrari.com/cms/network/media/img/resize/660d022be08fe10010bca850-ferrari-f1-2024-japan-cover-art-full-cover + (domain === "cdn.ferrari.com" && /\/media\/+img\//.test(src)) || // 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\//) || @@ -39400,11 +39411,14 @@ var $$IMU_EXPORT$$; // https://qph.cf2.quoracdn.net/main-qimg-ce650e3cb82159b6042f9c5da845dfc8-lq // https://qph.cf2.quoracdn.net/main-qimg-ce650e3cb82159b6042f9c5da845dfc8 // thanks to anonymous for reporting: + // https://qph.cf2.quoracdn.net/main-qimg-46e4c09f4f78ed4ca33470d3adb7073f-pjlq + // https://qph.cf2.quoracdn.net/main-qimg-46e4c09f4f78ed4ca33470d3adb7073f + // thanks to anonymous for reporting: // https://qph.cf2.quoracdn.net/main-thumb-787466541-200-pqnwkfwplsapthrxdiswtzkhvpgvdkdv.jpeg // https://qph.cf2.quoracdn.net/main-raw-787466541-pqnwkfwplsapthrxdiswtzkhvpgvdkdv.jpeg return src .replace(/(\/main-)thumb-([0-9]+-)[0-9]+-([a-z]{10,}\.)/, "$1raw-$2$3") - .replace(/(\/main-qimg-[0-9a-f]{10,})-(?:[a-z]|lq)$/, "$1"); + .replace(/(\/main-qimg-[0-9a-f]{10,})-(?:[a-z]|(?:pj)?lq)$/, "$1"); } if (false && domain_nosub === "fan.pw" && string_indexof(src, "/cpg/albums/") >= 0) { @@ -39756,7 +39770,11 @@ var $$IMU_EXPORT$$; // https://eiga.k-img.com/images/anime/news/104504/photo/ca6b941587bf429e.jpg // https://eiga.k-img.com/images/top_news/4109/f47df35189459e32/320.jpg // https://eiga.k-img.com/images/top_news/4109/f47df35189459e32.jpg + // thanks to anonymous for reporting: + // https://eiga.k-img.com/images/movie/81950/gallery/04.jpg?1426654966 -- 90x60 + // https://eiga.k-img.com/images/movie/81950/gallery/04_large.jpg?1426654966 -- 640x349 return src + .replace(/(\/images\/+movie\/+[0-9]+\/+gallery\/+[0-9]+)\./, "$1_large.") .replace(/(\/images\/+[a-z]+\/+(?:[a-z]+\/+)?[0-9]+\/)[0-9]+x(?:[0-9]+)?(\.[^/.]*)$/, "$1original$2") .replace(/(\/images\/+[a-z_]+\/+(?:[a-z]+\/+)?[0-9]+\/(?:[a-z]+\/)?[0-9a-f]+)\/[0-9]+(\.[^/.]*)$/, "$1$2"); } @@ -42962,6 +42980,8 @@ var $$IMU_EXPORT$$; } // chevereto if (domain_nowww === "imgmax.com" || + // https://404store.com/2017/11/12/b1Ik9Cj-emma-watson-wallpapers.th.jpg + // https://404store.com/2017/05/18/wc1715233.md.jpg domain_nowww === "404store.com" || // https://www.imgpost.co.uk/images/2018/01/07/HagpiwP.md.jpg domain_nowww === "imgpost.co.uk" || @@ -43081,12 +43101,14 @@ var $$IMU_EXPORT$$; // https://add.pics/images/2020/05/07/ScreenShot_20200507200118.md.png // https://add.pics/images/2020/05/07/ScreenShot_20200507200118.png domain_nowww === "add.pics" || + // thanks to anonymous for reporting: + // https://putmega.com/images/image_2024-05-24_101150404702263668646a4d9.md.png + // https://putmega.com/images/image_2024-05-24_101150404702263668646a4d9.png + domain_nowww === "putmega.com" || // http://image-bugs.com/images/2017/09/09/CelebsFlash.com_NP_Harpers_Bazaar_090817__3_.md.jpg domain_nowww === "image-bugs.com") { // http://imgmax.com/images/2017/03/20/0OQhE.th.jpg // http://imgmax.com/images/2017/03/20/0OQhE.jpg - // https://404store.com/2017/11/12/b1Ik9Cj-emma-watson-wallpapers.th.jpg - // https://404store.com/2017/05/18/wc1715233.md.jpg return src.replace(/\.(?:th|md)(\.[^/.]*)$/, "$1"); } if (domain_nowww === "imgpile.com" && /\/images\//.test(src)) { @@ -47243,8 +47265,10 @@ var $$IMU_EXPORT$$; }); }); }; + // thanks to anonymous for reporting: + // https://www.flickr.com/photos/129337299@N04/19021845639/sizes/h/ newsrc = website_query({ - website_regex: /^[a-z]+:\/\/[^/]+\/+photos\/+[^/]+\/+([0-9]+)(?:\/+(?:in\/+.*)?)?(?:[?#].*)?$/, + website_regex: /^[a-z]+:\/\/[^/]+\/+photos\/+[^/]+\/+([0-9]+)(?:\/+(?:(?:in|sizes)\/+.*)?)?(?:[?#].*)?$/, run: function(cb, match) { var id = match[1]; return cb("https://live.staticflickr.com/0000/" + id + "_face_b.jpg"); @@ -63786,10 +63810,14 @@ var $$IMU_EXPORT$$; // https://www.elintra.com.ar/u/fotografias/fotosnoticias/2018/8/25/100007.jpg return src.replace(/\/fotografias\/m\/([0-9]{4}\/[0-9]+\/[0-9]+\/)f[0-9]+x[0-9]+-([0-9]+)_[0-9]+[^/]*(\.[^/.]*)$/, "/fotografias/fotosnoticias/$1$2$3"); } - if (domain === "f.aukro.cz") { + if (domain === "f.aukro.cz" || + // thanks to anonymous for reporting: + // https://cdn.aukro.cz/images/sk1641125388951/730x548/wysoczanska-jadwiga-1927-2021-114781796.jpeg + // https://cdn.aukro.cz/images/sk1641125388951/wysoczanska-jadwiga-1927-2021-114781796.jpeg + domain === "cdn.aukro.cz") { // https://f.aukro.cz/images/sk6914079582/400x300/787f902d-2dbc-4eb6-a1b6-402d85079b69 // https://f.aukro.cz/images/sk6914079582/787f902d-2dbc-4eb6-a1b6-402d85079b69 -- forces download - return src.replace(/(\/images\/[^/]*\/)[0-9]+x[0-9]+\/([-0-9a-f]+)(?:[?#].*)?$/, "$1$2"); + return src.replace(/(\/images\/+sk[0-9]+\/+)[0-9]+x[0-9]+\/+/, "$1"); } if (false && (domain_nowww === "wallpapershome.com" || domain_nowww === "wallpapershome.ru")) { @@ -68265,6 +68293,12 @@ var $$IMU_EXPORT$$; // https://img.aws.la-croix.com/2017/05/18/1200848163/cathedrale-Paris-grand-besoin-restauration_0.jpg return src.replace(/_[0-9]+_[0-9]+(\.[^/.]*)(?:[?#].*)?$/, "$1"); } + if (domain === "i.la-croix.com") { + // thanks to anonymous for reporting: + // https://i.la-croix.com/1400x933/smart/2021/12/16/1201190504/Marcel-Meys-doyen-Francais-112-6-octobre-2021_0.jpg + // https://img.aws.la-croix.com/2021/12/16/1201190504/Marcel-Meys-doyen-Francais-112-6-octobre-2021_0.jpg + return src.replace(/^[a-z]+:\/\/[^/]+\/+.*?(\/[0-9]{4}\/+(?:[0-9]{2}\/+){2}[0-9]{5,}\/+.*)/, "https://img.aws.la-croix.com$1"); + } if (domain_nowww === "getty.edu") { // http://www.getty.edu/museum/media/images/web/enlarge/06253201.jpg // http://www.getty.edu/museum/media/images/web/download/06253201.jpg @@ -71024,6 +71058,12 @@ var $$IMU_EXPORT$$; if (newsrc !== src) return newsrc; } + if (domain === "d3ls91xgksobn.cloudfront.net") { + // thanks to anonymous for reporting: + // https://d3ls91xgksobn.cloudfront.net/5120x,q90,f=webp/etuovimedia/images/property/import/749/1938749/0e76b9541118d347871c0e0e51d244c4/e514bc941bdc717fe6796d9f56502c32/ORIGINAL.jpeg + // https://d3ls91xgksobn.cloudfront.net/q100/etuovimedia/images/property/import/749/1938749/0e76b9541118d347871c0e0e51d244c4/e514bc941bdc717fe6796d9f56502c32/ORIGINAL.jpeg + return src.replace(/(:\/\/[^/]+\/+)[^/]+\/+([^/]+\/+images\/)/, "$1q100/$2"); + } if (domain_nowww === "cara.app") { var get_cara_imageid_1 = function(url) { return url.replace(/.*\/posts\/+[-0-9a-f]{20,}\/[^-/.?#]+-([^-/.?#]+)-[^/]+(?:[?#].*)?$/, "$1"); @@ -102628,6 +102668,47 @@ var $$IMU_EXPORT$$; // https://bilder.deutschlandfunk.de/FI/LE/_3/9f/FILE_39f95da8969cf6784012813800601e77/59631676-jpg-100-original.jpg return src.replace(/-100-[auto0-9]+x[auto0-9]+\./, "-100-original."); } + if (domain === "cdn.arabsstock.com") { + // thanks to anonymous for reporting: + // https://cdn.arabsstock.com/uploads/images/37980/image-37980-saudi-gulf-man-inside-tourist-hotel-holding-mobile-phone-thumbnail.webp + // https://cdn.arabsstock.com/uploads/images/37980/image-37980-saudi-gulf-man-inside-tourist-hotel-holding-mobile-phone-thumbnail.jpg + newsrc = src.replace(/(\/uploads\/+images\/+[0-9]+\/+image-[0-9]+-[^/?#.]+-thumbnail\.)webp(?:[?#].*)?$/, "$1jpg"); + if (newsrc !== src) + return newsrc; + // https://cdn.arabsstock.com/uploads/images/37980/image-37980-saudi-gulf-man-inside-tourist-hotel-holding-mobile-phone-preview.jpg + if (/\/uploads\/+images\/+[0-9]+\/+image-[0-9]+-[^/?#.]+-(?:preview|thumbnail)\./.test(src)) { + return [ + { + url: src.replace(/-[a-z]+(\.[a-z]+)(?:[?#].*)?$/, "-preview$1"), + problems: { watermark: true } + }, + { + url: src.replace(/-[a-z]+(\.[a-z]+)(?:[?#].*)?$/, "-thumbnail$1"), + problems: { smaller: true } + } + ]; + } + } + if (domain_nowww === "4get.ca") { + // thanks to anonymous for reporting: + // https://4get.ca/proxy?i=https%3A%2F%2Fencrypted-tbn0.gstatic.com%2Fimages%3Fq%3Dtbn%3AANd9GcQ9V8otZMfGWJ0eqaPirEhKOLtpslxwS5Gb8e9kqoKYZaYQMw%26s&s=thumb + // https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ9V8otZMfGWJ0eqaPirEhKOLtpslxwS5Gb8e9kqoKYZaYQMw&s + newsrc = src.replace(/^[a-z]+:\/\/[^/]+\/+proxy\?(?:.*&)?i=([^&#]+)(?:[&#].*)?$/, "$1"); + if (newsrc !== src) + return decodeuri_ifneeded(newsrc); + } + if (host_domain_nowww === "4get.ca" && options.element) { + if (options.element.tagName === "IMG" && options.element.parentElement && + options.element.parentElement.tagName === "A" && options.element.parentElement.classList.contains("thumb")) { + return options.element.parentElement.href; + } + } + if (domain === "img.fruugo.com") { + // thanks to anonymous for reporting: + // https://img.fruugo.com/product/9/23/1286615239_0340_0340.jpg + // https://img.fruugo.com/product/9/23/1286615239_max.jpg + return src.replace(/(\/product\/+[0-9]+\/+[0-9]+\/+[0-9]+)_[0-9]+_[0-9]+\./, "$1_max."); + } // -- 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