Skip to content

Commit

Permalink
More websites/rules (#1332)
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Jun 8, 2024
1 parent 8db63f7 commit d2fb52f
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.");
}




Expand Down
22 changes: 22 additions & 0 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d2fb52f

Please sign in to comment.