Skip to content

Commit

Permalink
More websites/rules
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Aug 16, 2024
1 parent 9d9c27e commit 96aa84d
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 4 deletions.
33 changes: 31 additions & 2 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37540,7 +37540,7 @@ var $$IMU_EXPORT$$;
};
}

if ((domain_nosub === "steamstatic.com" && domain.match(/cdn\.[^.]*\.steamstatic\.com/)) ||
if ((domain_nosub === "steamstatic.com" && domain.match(/(?:cdn|shared)\.[^.]*\.steamstatic\.com/)) ||
// https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/2c/2c43030ea4900ebfcd3c42a4e665e9d926b488ef_medium.jpg
// https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/2c/2c43030ea4900ebfcd3c42a4e665e9d926b488ef_full.jpg
// https://steamcdn-a.akamaihd.net/steam/apps/256659790/movie480.webm?t=1452876592
Expand All @@ -37554,6 +37554,9 @@ var $$IMU_EXPORT$$;
// http://cdn.akamai.steamstatic.com/steam/apps/678950/ss_cd54f0430e919020ce554f6cfa8d2f3b0d062716.jpg
// http://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/c4/c44ec2d22a0c379d697c66b05e5ca8204827ce75.jpg
// http://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/c4/c44ec2d22a0c379d697c66b05e5ca8204827ce75_full.jpg
// thanks to siloricity on discord:
// https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/2492390/ss_7748a2bee37581349c9d477e8655d82b68c7820b.600x338.jpg
// https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/2492390/ss_7748a2bee37581349c9d477e8655d82b68c7820b.jpg
newsrc = src.replace(/(\/steam\/+apps\/+[0-9]+\/+movie)[0-9]+(?:_vp9)?(\.[^/.]+)(?:[?#].*)?$/, "$1_max$2");
if (newsrc !== src)
return newsrc;
Expand Down Expand Up @@ -83578,6 +83581,9 @@ var $$IMU_EXPORT$$;
if ((domain_nosub === "filmweb.pl" && /^(?:ssl-)?gfx\./.test(domain)) ||
// https://fwcdn.pl/ppo/00/87/87/450015.2.jpg
// https://fwcdn.pl/ppo/00/87/87/450015.$.jpg -- 3333x5000
// thanks to anonymous for reporting:
// https://fwcdn.pl/fpo/20/02/432002/7555769_1.10.webp
// https://fwcdn.pl/fpo/20/02/432002/7555769_1.$.jpg
domain_nosub === "fwcdn.pl") {
// https://ssl-gfx.filmweb.pl/po/62/64/676264/7510826.1.jpg
// https://ssl-gfx.filmweb.pl/po/62/64/676264/7510826.$.jpg -- 319x450
Expand All @@ -83591,7 +83597,9 @@ var $$IMU_EXPORT$$;
// https://ssl-gfx.filmweb.pl/ph/72/46/807246/798315_1.2.jpg
// https://ssl-gfx.filmweb.pl/ph/71/41/717141/748509_1.3.jpg
// http://1.fwcdn.pl/ph/57/70/625770/727190_1.2.jpg
return src.replace(/(\/[0-9]+(?:_[0-9]+)?\.)[0-9]+(\.[^/.]*)(?:[?#].*)?$/, "$1$$$2");
return src
.replace(/(\.\$\.)webp$/, "$1jpg")
.replace(/(\/[0-9]+(?:_[0-9]+)?\.)[0-9]+(\.[^/.]*)(?:[?#].*)?$/, "$1$$$2");

// old fwcdn rule:
// http://1.fwcdn.pl/ph/73/52/737352/569269_1.2.jpg
Expand Down Expand Up @@ -115425,6 +115433,27 @@ var $$IMU_EXPORT$$;
return src.replace(/(\/images\/+)stillThumb\/+/, "$1orig/");
}

if (domain_nowww === "gazetapress.com") {
// thanks to anonymous for reporting:
// https://www.gazetapress.com/assets/img/zoom-ico.png
if (/\/assets\/+img\/+zoom-ico\./.test(src)) {
return {
url: src,
bad: "mask"
};
}

// https://old.gazetapress.com/v.php?1:2097231:3 -- no watermark
// https://old.gazetapress.com/v.php?1:2097231:6 -- larger with watermark
}

if (domain_nosub === "bdnodes.net" && /^blockdaemon-audius-content/.test(domain)) {
// thanks to siloricity on discord:
// https://blockdaemon-audius-content-07.bdnodes.net/content/01J4WQW2KK0DSVWJG461AVD7ZH/1000x1000.jpg
// https://blockdaemon-audius-content-07.bdnodes.net/content/01J4WQW2KK0DSVWJG461AVD7ZH/original.jpg
return src.replace(/(\/content\/+[0-9A-Z]+\/+)[0-9]+x[0-9]+\./, "$1original.");
}




Expand Down
30 changes: 28 additions & 2 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -34343,7 +34343,7 @@ var $$IMU_EXPORT$$;
bad: "mask"
};
}
if ((domain_nosub === "steamstatic.com" && domain.match(/cdn\.[^.]*\.steamstatic\.com/)) ||
if ((domain_nosub === "steamstatic.com" && domain.match(/(?:cdn|shared)\.[^.]*\.steamstatic\.com/)) ||
// https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/2c/2c43030ea4900ebfcd3c42a4e665e9d926b488ef_medium.jpg
// https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/2c/2c43030ea4900ebfcd3c42a4e665e9d926b488ef_full.jpg
// https://steamcdn-a.akamaihd.net/steam/apps/256659790/movie480.webm?t=1452876592
Expand All @@ -34357,6 +34357,9 @@ var $$IMU_EXPORT$$;
// http://cdn.akamai.steamstatic.com/steam/apps/678950/ss_cd54f0430e919020ce554f6cfa8d2f3b0d062716.jpg
// http://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/c4/c44ec2d22a0c379d697c66b05e5ca8204827ce75.jpg
// http://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/c4/c44ec2d22a0c379d697c66b05e5ca8204827ce75_full.jpg
// thanks to siloricity on discord:
// https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/2492390/ss_7748a2bee37581349c9d477e8655d82b68c7820b.600x338.jpg
// https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/2492390/ss_7748a2bee37581349c9d477e8655d82b68c7820b.jpg
newsrc = src.replace(/(\/steam\/+apps\/+[0-9]+\/+movie)[0-9]+(?:_vp9)?(\.[^/.]+)(?:[?#].*)?$/, "$1_max$2");
if (newsrc !== src)
return newsrc;
Expand Down Expand Up @@ -75344,6 +75347,9 @@ var $$IMU_EXPORT$$;
if ((domain_nosub === "filmweb.pl" && /^(?:ssl-)?gfx\./.test(domain)) ||
// https://fwcdn.pl/ppo/00/87/87/450015.2.jpg
// https://fwcdn.pl/ppo/00/87/87/450015.$.jpg -- 3333x5000
// thanks to anonymous for reporting:
// https://fwcdn.pl/fpo/20/02/432002/7555769_1.10.webp
// https://fwcdn.pl/fpo/20/02/432002/7555769_1.$.jpg
domain_nosub === "fwcdn.pl") {
// https://ssl-gfx.filmweb.pl/po/62/64/676264/7510826.1.jpg
// https://ssl-gfx.filmweb.pl/po/62/64/676264/7510826.$.jpg -- 319x450
Expand All @@ -75357,7 +75363,9 @@ var $$IMU_EXPORT$$;
// https://ssl-gfx.filmweb.pl/ph/72/46/807246/798315_1.2.jpg
// https://ssl-gfx.filmweb.pl/ph/71/41/717141/748509_1.3.jpg
// http://1.fwcdn.pl/ph/57/70/625770/727190_1.2.jpg
return src.replace(/(\/[0-9]+(?:_[0-9]+)?\.)[0-9]+(\.[^/.]*)(?:[?#].*)?$/, "$1$$$2");
return src
.replace(/(\.\$\.)webp$/, "$1jpg")
.replace(/(\/[0-9]+(?:_[0-9]+)?\.)[0-9]+(\.[^/.]*)(?:[?#].*)?$/, "$1$$$2");
// old fwcdn rule:
// http://1.fwcdn.pl/ph/73/52/737352/569269_1.2.jpg
// http://1.fwcdn.pl/ph/73/52/737352/569269_1.jpg
Expand Down Expand Up @@ -103638,6 +103646,24 @@ var $$IMU_EXPORT$$;
// https://images-ng.pixai.art/images/orig/1279d38b-2106-49b4-8f0f-d5efd0da9ac7
return src.replace(/(\/images\/+)stillThumb\/+/, "$1orig/");
}
if (domain_nowww === "gazetapress.com") {
// thanks to anonymous for reporting:
// https://www.gazetapress.com/assets/img/zoom-ico.png
if (/\/assets\/+img\/+zoom-ico\./.test(src)) {
return {
url: src,
bad: "mask"
};
}
// https://old.gazetapress.com/v.php?1:2097231:3 -- no watermark
// https://old.gazetapress.com/v.php?1:2097231:6 -- larger with watermark
}
if (domain_nosub === "bdnodes.net" && /^blockdaemon-audius-content/.test(domain)) {
// thanks to siloricity on discord:
// https://blockdaemon-audius-content-07.bdnodes.net/content/01J4WQW2KK0DSVWJG461AVD7ZH/1000x1000.jpg
// https://blockdaemon-audius-content-07.bdnodes.net/content/01J4WQW2KK0DSVWJG461AVD7ZH/original.jpg
return src.replace(/(\/content\/+[0-9A-Z]+\/+)[0-9]+x[0-9]+\./, "$1original.");
}
// -- 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 96aa84d

Please sign in to comment.