Skip to content

Commit

Permalink
More websites/rules
Browse files Browse the repository at this point in the history
Fixes #935
  • Loading branch information
qsniyg committed Feb 5, 2024
1 parent f34dd0d commit 6def254
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 2 deletions.
43 changes: 42 additions & 1 deletion src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41266,6 +41266,19 @@ var $$IMU_EXPORT$$;
"$1images/$2$3");
}

if (domain_nowww === "rooftop1976.com") {
// thanks to nimbuz on discord: https://github.com/qsniyg/maxurl/issues/935
// https://rooftop1976.com/news/assets_c/2021/11/1127event_2-thumb-autox600-225620.jpg
// https://rooftop1976.com/news/1127event_2.jpg
// https://rooftop1976.com/news/assets_c/2021/11/1127event_3_s-thumb-autox627-225616.jpg
// https://rooftop1976.com/news/1127event_3_s.jpg
// https://rooftop1976.com/news/assets_c/2021/11/1127event_1-thumb-autox600-225622.jpg
// https://rooftop1976.com/news/1127event_1.jpg
// https://rooftop1976.com/news/assets_c/2021/11/motn_1-thumb-600xauto-225624.jpg
// https://rooftop1976.com/news/motn_1.jpg
return src.replace(/(\/news)\/+assets_[^/]*\/+[0-9]{4}\/+[0-9]{2}\/+([^-/]*)-.*(\.[^/.]*)$/, "$1/$2$3");
}

if (domain_nowww === "agencyteo.com") {
// http://www.agencyteo.com/news/download/28302/w/600/KakaoTalk_20161121_144905918.jpg
// http://www.agencyteo.com/news/download/28302/KakaoTalk_20161121_144905918.jpg
Expand Down Expand Up @@ -100288,6 +100301,13 @@ var $$IMU_EXPORT$$;
if (newsrc !== src)
return newsrc;

// thanks to anonymous for reporting:
// https://ik.imagekit.io/ikmedia/site_graphics/customers/logos/Cred_120_45_smnVWQmxd.png?tr=w-20,dpr-2
// https://ik.imagekit.io/ikmedia/site_graphics/customers/logos/Cred_120_45_smnVWQmxd.png
newsrc = src.replace(/(\/ikmedia\/+.*?)(?:[?#].*)?$/, "$1");
if (newsrc !== src)
return newsrc;

newsrc = src.replace(/(:\/\/[^/]+\/+[^/]+\/+)tr:[^/]+\/+/, "$1");
if (newsrc !== src)
return newsrc;
Expand Down Expand Up @@ -106843,7 +106863,10 @@ var $$IMU_EXPORT$$;
// thanks to f2005 on discord:
// https://img.bntnews.co.kr/data/bnt/cache/2022/08/08/bnt202208080055.680x.9.jpg
// https://www.bntnews.co.kr/data/bnt/image/2022/08/08/bnt202208080055.jpg
return src.replace(/^[a-z]+:\/\/[^/]+\/+(data\/+bnt\/+)cache\/+([0-9]{4}\/+[0-9]{2}\/+[0-9]{2}\/+bnt[0-9]{5,})\.[0-9]+x\.[0-9]+\./, "https://www.bntnews.co.kr/$1image/$2.");
// thanks to anonymous for reporting:
// https://img.bntnews.co.kr/data/bnt/image/2024/01/31/bnt202401310141.680x.9.jpg
// https://www.bntnews.co.kr/data/bnt/image/2024/01/31/bnt202401310141.jpg
return src.replace(/^[a-z]+:\/\/[^/]+\/+(data\/+bnt\/+)(?:cache|image)\/+([0-9]{4}\/+[0-9]{2}\/+[0-9]{2}\/+bnt[0-9]{5,})\.[0-9]+x\.[0-9]+\./, "https://www.bntnews.co.kr/$1image/$2.");
}

if (domain === "a4tech.ua") {
Expand Down Expand Up @@ -111946,6 +111969,24 @@ var $$IMU_EXPORT$$;
return add_full_extensions(newsrc, ["png", "jpg", "jpeg"], true);
}

if (domain === "img.lazcdn.com") {
// thanks to anonymous for reporting:
// https://img.lazcdn.com/g/p/dcc3581291f8d221e56b9c8e361d7751.jpg_720x720q80.jpg
// https://img.lazcdn.com/g/p/dcc3581291f8d221e56b9c8e361d7751.jpg
// https://img.lazcdn.com/g/p/f2c625a82e687339fc5247be1e87c95d.jpg_720x720q80.jpg_.webp
// https://img.lazcdn.com/g/p/f2c625a82e687339fc5247be1e87c95d.jpg
return src.replace(/(\/p\/+[^/]+?\.[^_?#/]+)_[^/.?#]*\.[^/.?#]+(?:[?#].*)?$/, "$1");
}

if (domain === "covers.audiobooks.com") {
// thanks to anonymous for reporting:
// https://covers.audiobooks.com/images/covers/large/9781549114830.jpg
// https://covers.audiobooks.com/images/covers/full/9781549114830.jpg
// other:
// https://covers.audiobooks.com/images/thumbs/9788491298496.jpg
return src.replace(/(\/images\/+covers\/+)large\/+/, "$1full/");
}




Expand Down
39 changes: 38 additions & 1 deletion userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -37731,6 +37731,18 @@ var $$IMU_EXPORT$$;
// https://sportiva.shueisha.co.jp/contents/entertainment/2021/images/_49T2995_1.jpg
return src.replace(/(:\/\/[^/]+\/+contents\/+entertainment\/+[0-9]{4}\/+)assets_c\/+[0-9]{4}\/+[0-9]{2}\/+([^/]*)-thumb-[auto0-9]+x[auto0-9]+-[0-9]+(\.[^/.]*)(?:[?#].*)?$/, "$1images/$2$3");
}
if (domain_nowww === "rooftop1976.com") {
// thanks to nimbuz on discord: https://github.com/qsniyg/maxurl/issues/935
// https://rooftop1976.com/news/assets_c/2021/11/1127event_2-thumb-autox600-225620.jpg
// https://rooftop1976.com/news/1127event_2.jpg
// https://rooftop1976.com/news/assets_c/2021/11/1127event_3_s-thumb-autox627-225616.jpg
// https://rooftop1976.com/news/1127event_3_s.jpg
// https://rooftop1976.com/news/assets_c/2021/11/1127event_1-thumb-autox600-225622.jpg
// https://rooftop1976.com/news/1127event_1.jpg
// https://rooftop1976.com/news/assets_c/2021/11/motn_1-thumb-600xauto-225624.jpg
// https://rooftop1976.com/news/motn_1.jpg
return src.replace(/(\/news)\/+assets_[^/]*\/+[0-9]{4}\/+[0-9]{2}\/+([^-/]*)-.*(\.[^/.]*)$/, "$1/$2$3");
}
if (domain_nowww === "agencyteo.com") {
// http://www.agencyteo.com/news/download/28302/w/600/KakaoTalk_20161121_144905918.jpg
// http://www.agencyteo.com/news/download/28302/KakaoTalk_20161121_144905918.jpg
Expand Down Expand Up @@ -90006,6 +90018,12 @@ var $$IMU_EXPORT$$;
// https://ik.imagekit.io/uwaknajbdrm/https:/img.vt.co/2022/12/TimeFI.jpg?ik-sdk-version=react-1.0.9&tr=f-webp,w-500
// https://img.vt.co/2022/12/TimeFI.jpg
newsrc = src.replace(/^[a-z]+:\/\/[^/]+\/+[^/]+\/+(https?):\/\/?([^?#]+)(?:[?#].*)?$/, "$1://$2");
if (newsrc !== src)
return newsrc;
// thanks to anonymous for reporting:
// https://ik.imagekit.io/ikmedia/site_graphics/customers/logos/Cred_120_45_smnVWQmxd.png?tr=w-20,dpr-2
// https://ik.imagekit.io/ikmedia/site_graphics/customers/logos/Cred_120_45_smnVWQmxd.png
newsrc = src.replace(/(\/ikmedia\/+.*?)(?:[?#].*)?$/, "$1");
if (newsrc !== src)
return newsrc;
newsrc = src.replace(/(:\/\/[^/]+\/+[^/]+\/+)tr:[^/]+\/+/, "$1");
Expand Down Expand Up @@ -95902,7 +95920,10 @@ var $$IMU_EXPORT$$;
// thanks to f2005 on discord:
// https://img.bntnews.co.kr/data/bnt/cache/2022/08/08/bnt202208080055.680x.9.jpg
// https://www.bntnews.co.kr/data/bnt/image/2022/08/08/bnt202208080055.jpg
return src.replace(/^[a-z]+:\/\/[^/]+\/+(data\/+bnt\/+)cache\/+([0-9]{4}\/+[0-9]{2}\/+[0-9]{2}\/+bnt[0-9]{5,})\.[0-9]+x\.[0-9]+\./, "https://www.bntnews.co.kr/$1image/$2.");
// thanks to anonymous for reporting:
// https://img.bntnews.co.kr/data/bnt/image/2024/01/31/bnt202401310141.680x.9.jpg
// https://www.bntnews.co.kr/data/bnt/image/2024/01/31/bnt202401310141.jpg
return src.replace(/^[a-z]+:\/\/[^/]+\/+(data\/+bnt\/+)(?:cache|image)\/+([0-9]{4}\/+[0-9]{2}\/+[0-9]{2}\/+bnt[0-9]{5,})\.[0-9]+x\.[0-9]+\./, "https://www.bntnews.co.kr/$1image/$2.");
}
if (domain === "a4tech.ua") {
// thanks to karpuzikov on github: https://github.com/qsniyg/maxurl/issues/1072
Expand Down Expand Up @@ -100476,6 +100497,22 @@ var $$IMU_EXPORT$$;
if (newsrc !== src)
return add_full_extensions(newsrc, ["png", "jpg", "jpeg"], true);
}
if (domain === "img.lazcdn.com") {
// thanks to anonymous for reporting:
// https://img.lazcdn.com/g/p/dcc3581291f8d221e56b9c8e361d7751.jpg_720x720q80.jpg
// https://img.lazcdn.com/g/p/dcc3581291f8d221e56b9c8e361d7751.jpg
// https://img.lazcdn.com/g/p/f2c625a82e687339fc5247be1e87c95d.jpg_720x720q80.jpg_.webp
// https://img.lazcdn.com/g/p/f2c625a82e687339fc5247be1e87c95d.jpg
return src.replace(/(\/p\/+[^/]+?\.[^_?#/]+)_[^/.?#]*\.[^/.?#]+(?:[?#].*)?$/, "$1");
}
if (domain === "covers.audiobooks.com") {
// thanks to anonymous for reporting:
// https://covers.audiobooks.com/images/covers/large/9781549114830.jpg
// https://covers.audiobooks.com/images/covers/full/9781549114830.jpg
// other:
// https://covers.audiobooks.com/images/thumbs/9788491298496.jpg
return src.replace(/(\/images\/+covers\/+)large\/+/, "$1full/");
}
// -- 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 6def254

Please sign in to comment.