From d2fb52fe0102f3e375e8f11397e2810899ac113c Mon Sep 17 00:00:00 2001 From: qsniyg Date: Sat, 8 Jun 2024 20:20:15 +0000 Subject: [PATCH] More websites/rules (#1332) --- src/userscript.ts | 25 +++++++++++++++++++++++++ userscript.user.js | 22 ++++++++++++++++++++++ 2 files changed, 47 insertions(+) diff --git a/src/userscript.ts b/src/userscript.ts index e99aa156..b128c18a 100644 --- a/src/userscript.ts +++ b/src/userscript.ts @@ -30004,6 +30004,10 @@ var $$IMU_EXPORT$$; // https://1.bp.blogspot.com/_sBBi-c1S7gU/SD5OZiDWDnI/AAAAAAAAFNc/3-cwL7frca0/s0/Copy+of+milla-jovovich-2.jpg=s0?imgmax=0 // https://1.bp.blogspot.com/_sBBi-c1S7gU/SD5OZiDWDnI/AAAAAAAAFNc/3-cwL7frca0/s0/Copy+of+milla-jovovich-2.jpg=s0?imgmax=0 (domain_nosub === "blogger.com" && domain.match(/^bp[0-9]*\.blogger\.com/)) || + // thanks to Froktime on github: https://github.com/qsniyg/maxurl/issues/1332 + // https://drive.fife.usercontent.google.com/u/0/d/1E-2OSeKmUH1TU0aHXNncrGJltXky2VjR=w300-h285-p-k-rw-v1-nu-iv1 + // https://drive.fife.usercontent.google.com/u/0/d/1E-2OSeKmUH1TU0aHXNncrGJltXky2VjR=s0?imgmax=0 + domain === "drive.fife.usercontent.google.com" || // http://lh4.ggpht.com/__zoKJ77EvEc/TO-9wdVTcwI/AAAAAAAAJEA/SbyR-4a03S0/dekotora%20%289%29%5B2%5D.jpg?imgmax=800 -- larger than s0? // http://lh4.ggpht.com/__zoKJ77EvEc/TO-9wdVTcwI/AAAAAAAAJEA/SbyR-4a03S0/dekotora%20%289%29%5B2%5D.jpg=s0?imgmax=0 -- same size // note: some photos are larger: @@ -64734,6 +64738,13 @@ var $$IMU_EXPORT$$; return src.replace(/\/cache\/[-a-zA-Z0-9_]+\/[0-9]+v[0-9]+(?:-[0-9]+)?\/online\//, "/online/"); } + if (domain === "images.rtl.fr") { + // thanks to anonymous for reporting: + // https://images.rtl.fr/~c/1200v800/rtl/www/1204505-zizi-jeanmaire-est-morte-le-17-juillet-2020-a-96-ans.jpg + // https://images.rtl.fr/rtl/www/1204505-zizi-jeanmaire-est-morte-le-17-juillet-2020-a-96-ans.jpg + return src.replace(/(:\/\/[^/]+\/+)~c\/+[^/]+\/+/, "$1"); + } + if (domain === "bcdn.newshunt.com" || // http://assets-news-bcdn.dailyhunt.in/cmd/resize/400x400_60/fetchdata13/images/84/8f/55/848f55be707b5d4cc1e5177728105a36.jpg // http://assets-news-bcdn.dailyhunt.in/rx/fetchdata13/images/84/8f/55/848f55be707b5d4cc1e5177728105a36.jpg @@ -114719,6 +114730,20 @@ var $$IMU_EXPORT$$; return src.replace(/\/image\/+.*?s3:\/\//, "/image/rs:::::/quality:100/plain/s3://"); } + if (domain === "images.sr.roku.com") { + // thanks to anonymous for reporting: + // https://images.sr.roku.com/idType/roku/context/trc/id/220909ed519650ecb34e43aa34c276e2/images/gracenote/person/v4/AllPhotos/448398/448398_v4_bc.jpg/magic/fit-in/600x600 + // https://images.sr.roku.com/idType/roku/context/trc/id/220909ed519650ecb34e43aa34c276e2/images/gracenote/person/v4/AllPhotos/448398/448398_v4_bc.jpg + return src.replace(/(\.[a-z]+)\/+magic\/+fit-in\/+[0-9]+x[0-9]+(?:[?#].*)?$/, "$1"); + } + + if (domain === "cdn.directvelo.com") { + // thanks to anonymous for reporting: + // https://cdn.directvelo.com/mediacache/photo/uploads/media/photos/6653917c8ad56_thumb.JPG + // https://cdn.directvelo.com/uploads/media/photos/6653917c8ad56.JPG + return src.replace(/\/mediacache\/+photo\/+(uploads\/.*?)_thumb\./, "/$1."); + } + diff --git a/userscript.user.js b/userscript.user.js index 277a54f5..b30c0ad3 100644 --- a/userscript.user.js +++ b/userscript.user.js @@ -27371,6 +27371,10 @@ var $$IMU_EXPORT$$; // https://1.bp.blogspot.com/_sBBi-c1S7gU/SD5OZiDWDnI/AAAAAAAAFNc/3-cwL7frca0/s0/Copy+of+milla-jovovich-2.jpg=s0?imgmax=0 // https://1.bp.blogspot.com/_sBBi-c1S7gU/SD5OZiDWDnI/AAAAAAAAFNc/3-cwL7frca0/s0/Copy+of+milla-jovovich-2.jpg=s0?imgmax=0 (domain_nosub === "blogger.com" && domain.match(/^bp[0-9]*\.blogger\.com/)) || + // thanks to Froktime on github: https://github.com/qsniyg/maxurl/issues/1332 + // https://drive.fife.usercontent.google.com/u/0/d/1E-2OSeKmUH1TU0aHXNncrGJltXky2VjR=w300-h285-p-k-rw-v1-nu-iv1 + // https://drive.fife.usercontent.google.com/u/0/d/1E-2OSeKmUH1TU0aHXNncrGJltXky2VjR=s0?imgmax=0 + domain === "drive.fife.usercontent.google.com" || // http://lh4.ggpht.com/__zoKJ77EvEc/TO-9wdVTcwI/AAAAAAAAJEA/SbyR-4a03S0/dekotora%20%289%29%5B2%5D.jpg?imgmax=800 -- larger than s0? // http://lh4.ggpht.com/__zoKJ77EvEc/TO-9wdVTcwI/AAAAAAAAJEA/SbyR-4a03S0/dekotora%20%289%29%5B2%5D.jpg=s0?imgmax=0 -- same size // note: some photos are larger: @@ -58751,6 +58755,12 @@ var $$IMU_EXPORT$$; // https://cdn-media.rtl.fr/online/image/2016/0226/7782069121_les-audiences-des-sites-de-la-galaxie-rtlnet-sont-en-hausse.png return src.replace(/\/cache\/[-a-zA-Z0-9_]+\/[0-9]+v[0-9]+(?:-[0-9]+)?\/online\//, "/online/"); } + if (domain === "images.rtl.fr") { + // thanks to anonymous for reporting: + // https://images.rtl.fr/~c/1200v800/rtl/www/1204505-zizi-jeanmaire-est-morte-le-17-juillet-2020-a-96-ans.jpg + // https://images.rtl.fr/rtl/www/1204505-zizi-jeanmaire-est-morte-le-17-juillet-2020-a-96-ans.jpg + return src.replace(/(:\/\/[^/]+\/+)~c\/+[^/]+\/+/, "$1"); + } if (domain === "bcdn.newshunt.com" || // http://assets-news-bcdn.dailyhunt.in/cmd/resize/400x400_60/fetchdata13/images/84/8f/55/848f55be707b5d4cc1e5177728105a36.jpg // http://assets-news-bcdn.dailyhunt.in/rx/fetchdata13/images/84/8f/55/848f55be707b5d4cc1e5177728105a36.jpg @@ -103007,6 +103017,18 @@ var $$IMU_EXPORT$$; // https://api.eric.s3storage.ru/super-static/prod/61d88522853cde454af96efa-150x.webp return src.replace(/\/image\/+.*?s3:\/\//, "/image/rs:::::/quality:100/plain/s3://"); } + if (domain === "images.sr.roku.com") { + // thanks to anonymous for reporting: + // https://images.sr.roku.com/idType/roku/context/trc/id/220909ed519650ecb34e43aa34c276e2/images/gracenote/person/v4/AllPhotos/448398/448398_v4_bc.jpg/magic/fit-in/600x600 + // https://images.sr.roku.com/idType/roku/context/trc/id/220909ed519650ecb34e43aa34c276e2/images/gracenote/person/v4/AllPhotos/448398/448398_v4_bc.jpg + return src.replace(/(\.[a-z]+)\/+magic\/+fit-in\/+[0-9]+x[0-9]+(?:[?#].*)?$/, "$1"); + } + if (domain === "cdn.directvelo.com") { + // thanks to anonymous for reporting: + // https://cdn.directvelo.com/mediacache/photo/uploads/media/photos/6653917c8ad56_thumb.JPG + // https://cdn.directvelo.com/uploads/media/photos/6653917c8ad56.JPG + return src.replace(/\/mediacache\/+photo\/+(uploads\/.*?)_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