Skip to content

Commit

Permalink
More websites/rules
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Feb 28, 2024
1 parent e302c0d commit c5039e8
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 4 deletions.
44 changes: 42 additions & 2 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38667,11 +38667,20 @@ var $$IMU_EXPORT$$;

if (domain === "www.welt.de" ||
// https://img.welt.de/img/kultur/pop/mobile132505066/0972501497-ci102l-w1024/Keith-Richards-mit-Enkel-Otto.jpg
// https://img.welt.de/img/kultur/pop/mobile132505066/0972501497-coriginal-w0/Keith-Richards-mit-Enkel-Otto.jpg
// thanks to anonymous for reporting:
// https://img.welt.de/img/kultur/mobile105837855/3531627187-ci23x11-w1136/Laurel-Hardy-Hinter-Schloss-und-Riegel.jpg
// https://img.welt.de/img/kultur/mobile105837855/3531627187-coriginal-w0/Laurel-Hardy-Hinter-Schloss-und-Riegel.jpg
// doesn't work for all:
// https://img.welt.de/img/sport/fussball/bundesliga/mobile250019410/8651622817-ci23x11-w1800/Germany-Soccer-Bundesliga.jpg
// https://img.welt.de/img/sport/fussball/bundesliga/mobile250019410/8651622817-coriginal-w0/Germany-Soccer-Bundesliga.jpg -- 404
// https://img.welt.de/img/ausland/crop124685943/0278727095-ci3x2l-w620/DWO-schweiz-abstimmung-aw.jpg
// https://img.welt.de/img/ausland/crop124685943/0278727095-coriginal-w0/DWO-schweiz-abstimmung-aw.jpg -- 404
domain === "img.welt.de") {
// nowww !== www
// https://www.welt.de/img/kultur/pop/mobile132505066/0972501497-ci102l-w1024/Keith-Richards-mit-Enkel-Otto.jpg
// https://www.welt.de/img/kultur/pop/mobile132505066/0972501497-ci102l-w0/Keith-Richards-mit-Enkel-Otto.jpg
return src.replace(/-w[0-9]*(\/[^/]*)$/, "-w0$1");
return src.replace(/-c[^-/]+-w[0-9]*(\/[^/]*)$/, "-coriginal-w0$1");
}

if (domain === "cdn.baeblemusic.com" && string_indexof(src, "/images/") >= 0) {
Expand Down Expand Up @@ -66105,14 +66114,18 @@ var $$IMU_EXPORT$$;
// https://www.resetera.com/data/avatar/1508889945/s/0/28.jpg
// https://www.resetera.com/data/avatar/1508889945/o/0/28.jpg
domain_nowww === "resetera.com" ||
// thanks to anonymous for reporting:
// https://data.voz.vn/avatars/s/1772/1772739.jpg?1635062338
// https://data.voz.vn/avatars/o/1772/1772739.jpg?1635062338
domain === "data.voz.vn" ||
// https://www.skinnygossip.com/community/data/avatars/m/0/172.jpg?1559693885
// https://www.skinnygossip.com/community/data/avatars/o/0/172.jpg?1559693885
// https://www.hairlosstalk.com/interact/data/avatars/m/145/145203.jpg?1582772356
// https://www.hairlosstalk.com/interact/data/avatars/o/145/145203.jpg?1582772356
src.match(/^[a-z]+:\/\/[^/]*\/+(?:(?:community|interact)\/+)?data\/+avatars\/+[sml]\/+[0-9]+\/+[0-9]+\.[a-z]+(?:\?[0-9]+)?$/)) {
// https://d3ofq03apmfb8c.cloudfront.net/data/avatars/m/121/121702.jpg?1514486539
// https://d3ofq03apmfb8c.cloudfront.net/data/avatars/o/121/121702.jpg?1514486539
regex = /(\/data\/+avatar(?:s|\/+[0-9]{5,}))\/+[a-z]\/+([0-9]+\/+[0-9]+\.[^/.]*)$/;
regex = /(\/avatar(?:s|\/+[0-9]{5,}))\/+[a-z]\/+([0-9]+\/+[0-9]+\.[^/.]*)$/;
if (regex.test(src)) {
return [
src.replace(regex, "$1/o/$2"),
Expand Down Expand Up @@ -81795,6 +81808,10 @@ var $$IMU_EXPORT$$;
// https://www.northerndailyleader.com.au/images/transform/v1/crop/frm/KUhQizDbwW8WqAyPP4x5yp/aad1e5ae-7b41-4011-ae8b-7f6e8cdb13cb.jpg/r0_8_3474_1959_w454_h255_fmax.jpg
// https://www.northerndailyleader.com.au/images/transform/v1/resize/frm/KUhQizDbwW8WqAyPP4x5yp/aad1e5ae-7b41-4011-ae8b-7f6e8cdb13cb.jpg/w0_h0_fscale.jpg
domain_nowww === "northerndailyleader.com.au" ||
// thanks to anonymous for reporting:
// https://www.hawkesburygazette.com.au/images/transform/v1/crop/frm/silverstone-feed-data/83c69e9a-d532-4303-8db6-7d31db31d4cc.jpg/r0_0_800_600_w1200_h678_fmax.webp
// https://www.hawkesburygazette.com.au/images/transform/v1/resize/frm/silverstone-feed-data/83c69e9a-d532-4303-8db6-7d31db31d4cc.jpg/w0_h0_fscale.webp
domain_nowww === "hawkesburygazette.com.au" ||
// https://www.northweststar.com.au/images/transform/v1/crop/frm/Y5kUJ9Q7iPMNzBC9i5WqCU/a68e9967-e0cd-4818-a227-878719e98f65.jpg/r0_0_1200_677_w1200_h678_fmax.jpg
// https://www.northweststar.com.au/images/transform/v1/resize/frm/Y5kUJ9Q7iPMNzBC9i5WqCU/a68e9967-e0cd-4818-a227-878719e98f65.jpg/w0_h0_fscale.jpg
domain_nowww === "northweststar.com.au") {
Expand Down Expand Up @@ -112496,6 +112513,15 @@ var $$IMU_EXPORT$$;
};
}

if (domain_nowww === "musescore.com") {
// thanks to anonymous for reporting:
// https://musescore.com/static/musescore/scoredata/g/3465a8257739d30d3733d59be428888756e356fa/score_0.png@240x336?no-cache=1610714686&bgclr=ffffff&fmt=webp&qlt=80
// https://musescore.com/static/musescore/scoredata/g/3465a8257739d30d3733d59be428888756e356fa/score_0.png
return src
.replace(/@[0-9]+x[0-9]+$/, "")
.replace(/\?.*/, "");
}




Expand Down Expand Up @@ -115554,6 +115580,20 @@ var $$IMU_EXPORT$$;
}
}

// myportfolio
if (host_domain_nowww === "kalyanyasaswi.com") {
// thanks to anonymous for reporting:
return {
element_ok: function(el) {
if (el.tagName.toUpperCase() === "SPAN" && el.classList.contains("grid__item-filler")) {
let prev = el.previousElementSibling;
if (prev && prev.tagName.toUpperCase() === "IMG" && prev.classList.contains("grid__item-image"))
return prev;
}
}
}
}

return null;
};

Expand Down
42 changes: 40 additions & 2 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -35382,11 +35382,20 @@ var $$IMU_EXPORT$$;
}
if (domain === "www.welt.de" ||
// https://img.welt.de/img/kultur/pop/mobile132505066/0972501497-ci102l-w1024/Keith-Richards-mit-Enkel-Otto.jpg
// https://img.welt.de/img/kultur/pop/mobile132505066/0972501497-coriginal-w0/Keith-Richards-mit-Enkel-Otto.jpg
// thanks to anonymous for reporting:
// https://img.welt.de/img/kultur/mobile105837855/3531627187-ci23x11-w1136/Laurel-Hardy-Hinter-Schloss-und-Riegel.jpg
// https://img.welt.de/img/kultur/mobile105837855/3531627187-coriginal-w0/Laurel-Hardy-Hinter-Schloss-und-Riegel.jpg
// doesn't work for all:
// https://img.welt.de/img/sport/fussball/bundesliga/mobile250019410/8651622817-ci23x11-w1800/Germany-Soccer-Bundesliga.jpg
// https://img.welt.de/img/sport/fussball/bundesliga/mobile250019410/8651622817-coriginal-w0/Germany-Soccer-Bundesliga.jpg -- 404
// https://img.welt.de/img/ausland/crop124685943/0278727095-ci3x2l-w620/DWO-schweiz-abstimmung-aw.jpg
// https://img.welt.de/img/ausland/crop124685943/0278727095-coriginal-w0/DWO-schweiz-abstimmung-aw.jpg -- 404
domain === "img.welt.de") {
// nowww !== www
// https://www.welt.de/img/kultur/pop/mobile132505066/0972501497-ci102l-w1024/Keith-Richards-mit-Enkel-Otto.jpg
// https://www.welt.de/img/kultur/pop/mobile132505066/0972501497-ci102l-w0/Keith-Richards-mit-Enkel-Otto.jpg
return src.replace(/-w[0-9]*(\/[^/]*)$/, "-w0$1");
return src.replace(/-c[^-/]+-w[0-9]*(\/[^/]*)$/, "-coriginal-w0$1");
}
if (domain === "cdn.baeblemusic.com" && string_indexof(src, "/images/") >= 0) {
// https://cdn.baeblemusic.com/images/bblog/5-8-2017/keith-richards-almost-died-580.jpg
Expand Down Expand Up @@ -59967,14 +59976,18 @@ var $$IMU_EXPORT$$;
// https://www.resetera.com/data/avatar/1508889945/s/0/28.jpg
// https://www.resetera.com/data/avatar/1508889945/o/0/28.jpg
domain_nowww === "resetera.com" ||
// thanks to anonymous for reporting:
// https://data.voz.vn/avatars/s/1772/1772739.jpg?1635062338
// https://data.voz.vn/avatars/o/1772/1772739.jpg?1635062338
domain === "data.voz.vn" ||
// https://www.skinnygossip.com/community/data/avatars/m/0/172.jpg?1559693885
// https://www.skinnygossip.com/community/data/avatars/o/0/172.jpg?1559693885
// https://www.hairlosstalk.com/interact/data/avatars/m/145/145203.jpg?1582772356
// https://www.hairlosstalk.com/interact/data/avatars/o/145/145203.jpg?1582772356
src.match(/^[a-z]+:\/\/[^/]*\/+(?:(?:community|interact)\/+)?data\/+avatars\/+[sml]\/+[0-9]+\/+[0-9]+\.[a-z]+(?:\?[0-9]+)?$/)) {
// https://d3ofq03apmfb8c.cloudfront.net/data/avatars/m/121/121702.jpg?1514486539
// https://d3ofq03apmfb8c.cloudfront.net/data/avatars/o/121/121702.jpg?1514486539
regex = /(\/data\/+avatar(?:s|\/+[0-9]{5,}))\/+[a-z]\/+([0-9]+\/+[0-9]+\.[^/.]*)$/;
regex = /(\/avatar(?:s|\/+[0-9]{5,}))\/+[a-z]\/+([0-9]+\/+[0-9]+\.[^/.]*)$/;
if (regex.test(src)) {
return [
src.replace(regex, "$1/o/$2"),
Expand Down Expand Up @@ -73728,6 +73741,10 @@ var $$IMU_EXPORT$$;
// https://www.northerndailyleader.com.au/images/transform/v1/crop/frm/KUhQizDbwW8WqAyPP4x5yp/aad1e5ae-7b41-4011-ae8b-7f6e8cdb13cb.jpg/r0_8_3474_1959_w454_h255_fmax.jpg
// https://www.northerndailyleader.com.au/images/transform/v1/resize/frm/KUhQizDbwW8WqAyPP4x5yp/aad1e5ae-7b41-4011-ae8b-7f6e8cdb13cb.jpg/w0_h0_fscale.jpg
domain_nowww === "northerndailyleader.com.au" ||
// thanks to anonymous for reporting:
// https://www.hawkesburygazette.com.au/images/transform/v1/crop/frm/silverstone-feed-data/83c69e9a-d532-4303-8db6-7d31db31d4cc.jpg/r0_0_800_600_w1200_h678_fmax.webp
// https://www.hawkesburygazette.com.au/images/transform/v1/resize/frm/silverstone-feed-data/83c69e9a-d532-4303-8db6-7d31db31d4cc.jpg/w0_h0_fscale.webp
domain_nowww === "hawkesburygazette.com.au" ||
// https://www.northweststar.com.au/images/transform/v1/crop/frm/Y5kUJ9Q7iPMNzBC9i5WqCU/a68e9967-e0cd-4818-a227-878719e98f65.jpg/r0_0_1200_677_w1200_h678_fmax.jpg
// https://www.northweststar.com.au/images/transform/v1/resize/frm/Y5kUJ9Q7iPMNzBC9i5WqCU/a68e9967-e0cd-4818-a227-878719e98f65.jpg/w0_h0_fscale.jpg
domain_nowww === "northweststar.com.au") {
Expand Down Expand Up @@ -100983,6 +101000,14 @@ var $$IMU_EXPORT$$;
}
};
}
if (domain_nowww === "musescore.com") {
// thanks to anonymous for reporting:
// https://musescore.com/static/musescore/scoredata/g/3465a8257739d30d3733d59be428888756e356fa/score_0.png@240x336?no-cache=1610714686&bgclr=ffffff&fmt=webp&qlt=80
// https://musescore.com/static/musescore/scoredata/g/3465a8257739d30d3733d59be428888756e356fa/score_0.png
return src
.replace(/@[0-9]+x[0-9]+$/, "")
.replace(/\?.*/, "");
}
// -- 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 Expand Up @@ -103548,6 +103573,19 @@ var $$IMU_EXPORT$$;
}
};
}
// myportfolio
if (host_domain_nowww === "kalyanyasaswi.com") {
// thanks to anonymous for reporting:
return {
element_ok: function(el) {
if (el.tagName.toUpperCase() === "SPAN" && el.classList.contains("grid__item-filler")) {
var prev = el.previousElementSibling;
if (prev && prev.tagName.toUpperCase() === "IMG" && prev.classList.contains("grid__item-image"))
return prev;
}
}
};
}
return null;
};
var _get_album_info_gallery = function(album_info, el, nextprev) {
Expand Down

0 comments on commit c5039e8

Please sign in to comment.