diff --git a/src/userscript.ts b/src/userscript.ts index 4143b23c..9b8c6989 100644 --- a/src/userscript.ts +++ b/src/userscript.ts @@ -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 @@ -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; @@ -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 @@ -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 @@ -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."); + } + diff --git a/userscript.user.js b/userscript.user.js index 216860e7..dd666b40 100644 --- a/userscript.user.js +++ b/userscript.user.js @@ -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 @@ -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; @@ -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 @@ -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 @@ -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