Skip to content

Commit

Permalink
More websites/rules
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Dec 5, 2024
1 parent 6a611ad commit e158a2c
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30959,6 +30959,13 @@ var $$IMU_EXPORT$$;
};
}

if (domain === "diveng.rosselcdn.net") {
// thanks to anonymous for reporting:
// https://diveng.rosselcdn.net/sites/default/files/dpistyles_v2/diverto_16_9_749w/2024/04/30/node_14928/26551/public/2024/04/30/hd_anne_morin_ok_11-03-2024-0693-.jpg?itok=MOVKV6-O1714513374
// https://diveng.rosselcdn.net/sites/default/files/2024/04/30/hd_anne_morin_ok_11-03-2024-0693-.jpg?itok=MOVKV6-O1714513374
return src.replace(/(\/sites\/+default\/+files\/).*?\/+public\//, "$1");
}

if (domain === "cdn.okmag.de" ||
// https://cdn.9razia.de/s/fotostrecke__slider/public/media/gallery/2016-05-26/rihanna_red.jpg
// https://cdn.9razia.de/media/gallery/2016-05-26/rihanna_red.jpg
Expand Down Expand Up @@ -67455,6 +67462,13 @@ var $$IMU_EXPORT$$;
return src.replace(/\/thn_([^/]*)$/, "/$1");
}

if (domain_nowww === "xzone.to") {
// thanks to anonymous for reporting:
// https://www.xzone.to/patero/k06201/images/thn_001.jpg
// https://www.xzone.to/patero/k06201/images/001.jpg
return src.replace(/(\/images\/+)thn_([0-9]+\.)/, "$1$2");
}

if (domain_nowww === "apachan.net" ||
// http://prokote.info/thumbs/201707/14/myazqxb7300j.jpg
// http://prokote.info/images/201707/14/myazqxb7300j.jpg
Expand Down Expand Up @@ -117673,6 +117687,20 @@ var $$IMU_EXPORT$$;
return remove_queries(src, ["scale"]);
}

if (domain === "prod-api.mediaexpert.pl") {
// thanks to anonymous for reporting:
// https://prod-api.mediaexpert.pl/api/images/gallery_290_300/thumbnails/images/60/6087978/LEGO-10321-ICONS-Corvette1-tyl.jpg
// https://prod-api.mediaexpert.pl/api/images/gallery/thumbnails/images/60/6087978/LEGO-10321-ICONS-Corvette1-tyl.jpg
return src.replace(/(\/api\/+images\/+gallery)_[^/]+\/+/, "$1/");
}

if (domain_nowww === "mediaexpert.pl") {
// thanks to anonymous for reporting:
// https://www.mediaexpert.pl/media/cache/resolve/gallery_xml/images/37/3738626/Kuweta-PETKIT-PetKit-Pura-Max-front.jpg
// https://prod-api.mediaexpert.pl/api/images/gallery/thumbnails/images/37/3738626/Kuweta-PETKIT-PetKit-Pura-Max-front.jpg
return src.replace(/.*\/gallery_xml\/+images\/+([0-9]{2}\/+[0-9]+\/+[^/]+)(?:[?#].*)?$/, "https://prod-api.mediaexpert.pl/api/images/gallery/thumbnails/images/$1");
}




Expand Down
24 changes: 24 additions & 0 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -28301,6 +28301,12 @@ var $$IMU_EXPORT$$;
head_wrong_contentlength: true
};
}
if (domain === "diveng.rosselcdn.net") {
// thanks to anonymous for reporting:
// https://diveng.rosselcdn.net/sites/default/files/dpistyles_v2/diverto_16_9_749w/2024/04/30/node_14928/26551/public/2024/04/30/hd_anne_morin_ok_11-03-2024-0693-.jpg?itok=MOVKV6-O1714513374
// https://diveng.rosselcdn.net/sites/default/files/2024/04/30/hd_anne_morin_ok_11-03-2024-0693-.jpg?itok=MOVKV6-O1714513374
return src.replace(/(\/sites\/+default\/+files\/).*?\/+public\//, "$1");
}
if (domain === "cdn.okmag.de" ||
// https://cdn.9razia.de/s/fotostrecke__slider/public/media/gallery/2016-05-26/rihanna_red.jpg
// https://cdn.9razia.de/media/gallery/2016-05-26/rihanna_red.jpg
Expand Down Expand Up @@ -61278,6 +61284,12 @@ var $$IMU_EXPORT$$;
// http://static.guide.supereva.it/guide/guida_hollywood/halle-berry-la-donna-nera-piu-sexy/halleberrysx7.jpg
return src.replace(/\/thn_([^/]*)$/, "/$1");
}
if (domain_nowww === "xzone.to") {
// thanks to anonymous for reporting:
// https://www.xzone.to/patero/k06201/images/thn_001.jpg
// https://www.xzone.to/patero/k06201/images/001.jpg
return src.replace(/(\/images\/+)thn_([0-9]+\.)/, "$1$2");
}
if (domain_nowww === "apachan.net" ||
// http://prokote.info/thumbs/201707/14/myazqxb7300j.jpg
// http://prokote.info/images/201707/14/myazqxb7300j.jpg
Expand Down Expand Up @@ -105746,6 +105758,18 @@ var $$IMU_EXPORT$$;
if (/\/img\?(?:.*&)?file=[0-9]+/.test(src))
return remove_queries(src, ["scale"]);
}
if (domain === "prod-api.mediaexpert.pl") {
// thanks to anonymous for reporting:
// https://prod-api.mediaexpert.pl/api/images/gallery_290_300/thumbnails/images/60/6087978/LEGO-10321-ICONS-Corvette1-tyl.jpg
// https://prod-api.mediaexpert.pl/api/images/gallery/thumbnails/images/60/6087978/LEGO-10321-ICONS-Corvette1-tyl.jpg
return src.replace(/(\/api\/+images\/+gallery)_[^/]+\/+/, "$1/");
}
if (domain_nowww === "mediaexpert.pl") {
// thanks to anonymous for reporting:
// https://www.mediaexpert.pl/media/cache/resolve/gallery_xml/images/37/3738626/Kuweta-PETKIT-PetKit-Pura-Max-front.jpg
// https://prod-api.mediaexpert.pl/api/images/gallery/thumbnails/images/37/3738626/Kuweta-PETKIT-PetKit-Pura-Max-front.jpg
return src.replace(/.*\/gallery_xml\/+images\/+([0-9]{2}\/+[0-9]+\/+[^/]+)(?:[?#].*)?$/, "https://prod-api.mediaexpert.pl/api/images/gallery/thumbnails/images/$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 e158a2c

Please sign in to comment.