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 19, 2024
1 parent 7b119e6 commit 6ceab7b
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 4 deletions.
37 changes: 35 additions & 2 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28979,6 +28979,10 @@ var $$IMU_EXPORT$$;
// https://resources.finalsite.net/images/t_image_size_4/v1548952592/finalsite/iheofywrk6vnds3lqcae/ResourcesBlogHeader.png
// https://resources.finalsite.net/images/finalsite/iheofywrk6vnds3lqcae/ResourcesBlogHeader.png
domain === "resources.finalsite.net" ||
// thanks to anonymous for reporting:
// https://c.static-nike.com/a/images/w_1536,c_limit,f_auto/rdjukugxuljyne9f551j/kyrie-5-pineapple-house-release-date.png
// https://c.static-nike.com/a/images/rdjukugxuljyne9f551j/kyrie-5-pineapple-house-release-date.png
domain === "c.static-nike.com" ||
// thanks to karpuzikov on github: https://github.com/qsniyg/maxurl/issues/1066
// https://resource.logitechg.com/w_677,ar_1:1,c_limit,b_rgb:2f3132,q_auto,f_auto,dpr_auto/d_transparent.gif/content/dam/gaming/en/homepage/product-swatch-carousel/home-product-swatch-4.png?v=1
// https://resource.logitechg.com/content/dam/gaming/en/homepage/product-swatch-carousel/home-product-swatch-4.png?v=1
Expand Down Expand Up @@ -32832,6 +32836,9 @@ var $$IMU_EXPORT$$;
// thanks to anonymous for reporting:
// https://gitlab.winehq.org/uploads/-/system/user/avatar/4/avatar.png?width=24
(domain === "gitlab.winehq.org" && /\/uploads\/+/.test(src)) ||
// thanks to anonymous for reporting:
// https://cdn.hfashionmall.com/goods/THBR/23/12/06/GM0123120671139_9_ORGINL_1707960601850.jpg?RS=600x600&AR=0&CS=400x600
domain === "cdn.hfashionmall.com" ||
// thanks to MinuteAd8502 on github: https://github.com/qsniyg/maxurl/issues/874
// https://img01.ztat.net/article/spp-media-p1/369ffb094cae4443bee45519929dddb8/4269d8d79cfe418888fdc155bf1a8e2e.jpg?imwidth=762
// https://img01.ztat.net/article/spp-media-p1/369ffb094cae4443bee45519929dddb8/4269d8d79cfe418888fdc155bf1a8e2e.jpg -- 1801x2600
Expand Down Expand Up @@ -70479,7 +70486,10 @@ var $$IMU_EXPORT$$;
// thanks to anonymous for reporting:
// https://img1.wsimg.com/isteam/stock/8038/:/rs=w:1300,h:800
// https://img1.wsimg.com/isteam/stock/8038
return src.replace(/(\/+ip\/+[-0-9a-f]+\/+(?:ols\/+)?[^/]*|\/isteam\/+stock\/+[0-9]+)(?:\/+:\/+.*)?(?:[?#].*)?$/, "$1");
// thanks to anonymous for reporting:
// https://img1.wsimg.com/isteam/stock/yREJBbw/:/cr=t:12.47%25,l:0%25,w:100%25,h:75.06%25/rs=w:388,h:194,cg:true
// https://img1.wsimg.com/isteam/stock/yREJBbw
return src.replace(/(\/+ip\/+[-0-9a-f]+\/+(?:ols\/+)?[^/]*|\/isteam\/+stock\/+[a-zA-Z0-9]+)(?:\/+:\/+.*)?(?:[?#].*)?$/, "$1");
}

if (domain === "img.lovpho.com") {
Expand Down Expand Up @@ -77196,7 +77206,10 @@ var $$IMU_EXPORT$$;
// https://www.theaudiodb.com/images/media/track/thumb/twqvyt1471258799.jpg
// https://www.theaudiodb.com/images/media/album/thumbhq/sswssr1538931605.jpg/preview
// https://www.theaudiodb.com/images/media/album/thumbhq/sswssr1538931605.jpg
return src.replace(/(\/[a-z]+[0-9]+\.[^/.]+)(?:\/[a-z]+)(?:[?#].*)?$/, "$1");
// thanks to anonymous for reporting:
// https://www.theaudiodb.com/images/media/album/thumb/gkls6m1640050808.jpg/preview
// https://www.theaudiodb.com/images/media/album/thumb/gkls6m1640050808.jpg
return src.replace(/(\/[a-z0-9]+[0-9]{5,}\.[^/.]+)(?:\/[a-z]+)(?:[?#].*)?$/, "$1");
}

if (domain_nosub === "gaoshouyou.com" && domain.match(/^rs\.[0-9]*\./)) {
Expand Down Expand Up @@ -112349,6 +112362,26 @@ var $$IMU_EXPORT$$;
}
}

if (domain === "static.thenounproject.com") {
// thanks to anonymous for reporting:
// https://static.thenounproject.com/avatars/10343109/resized/150/150/b4e846cf7be3d55e23902e8de6493622.png
// https://static.thenounproject.com/avatars/10343109/b4e846cf7be3d55e23902e8de6493622.png
// https://static.thenounproject.com/png/5857500-84.png
// https://static.thenounproject.com/png/5857500-200.png
// https://static.thenounproject.com/attribution/5857500-600.png
newsrc = src.replace(/\/png\/+([0-9]+)-200\./, "/attribution/$1-600.");
if (newsrc !== src) {
return {
url: newsrc,
problems: {watermark: true}
};
}

return src
.replace(/(\/png\/+[0-9]+-)84\./, "$1200.")
.replace(/\/resized\/+[0-9]+\/+[0-9]+\/+/, "/");
}




Expand Down
35 changes: 33 additions & 2 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -26440,6 +26440,10 @@ var $$IMU_EXPORT$$;
// https://resources.finalsite.net/images/t_image_size_4/v1548952592/finalsite/iheofywrk6vnds3lqcae/ResourcesBlogHeader.png
// https://resources.finalsite.net/images/finalsite/iheofywrk6vnds3lqcae/ResourcesBlogHeader.png
domain === "resources.finalsite.net" ||
// thanks to anonymous for reporting:
// https://c.static-nike.com/a/images/w_1536,c_limit,f_auto/rdjukugxuljyne9f551j/kyrie-5-pineapple-house-release-date.png
// https://c.static-nike.com/a/images/rdjukugxuljyne9f551j/kyrie-5-pineapple-house-release-date.png
domain === "c.static-nike.com" ||
// thanks to karpuzikov on github: https://github.com/qsniyg/maxurl/issues/1066
// https://resource.logitechg.com/w_677,ar_1:1,c_limit,b_rgb:2f3132,q_auto,f_auto,dpr_auto/d_transparent.gif/content/dam/gaming/en/homepage/product-swatch-carousel/home-product-swatch-4.png?v=1
// https://resource.logitechg.com/content/dam/gaming/en/homepage/product-swatch-carousel/home-product-swatch-4.png?v=1
Expand Down Expand Up @@ -30013,6 +30017,9 @@ var $$IMU_EXPORT$$;
// thanks to anonymous for reporting:
// https://gitlab.winehq.org/uploads/-/system/user/avatar/4/avatar.png?width=24
(domain === "gitlab.winehq.org" && /\/uploads\/+/.test(src)) ||
// thanks to anonymous for reporting:
// https://cdn.hfashionmall.com/goods/THBR/23/12/06/GM0123120671139_9_ORGINL_1707960601850.jpg?RS=600x600&AR=0&CS=400x600
domain === "cdn.hfashionmall.com" ||
// thanks to MinuteAd8502 on github: https://github.com/qsniyg/maxurl/issues/874
// https://img01.ztat.net/article/spp-media-p1/369ffb094cae4443bee45519929dddb8/4269d8d79cfe418888fdc155bf1a8e2e.jpg?imwidth=762
// https://img01.ztat.net/article/spp-media-p1/369ffb094cae4443bee45519929dddb8/4269d8d79cfe418888fdc155bf1a8e2e.jpg -- 1801x2600
Expand Down Expand Up @@ -63844,7 +63851,10 @@ var $$IMU_EXPORT$$;
// thanks to anonymous for reporting:
// https://img1.wsimg.com/isteam/stock/8038/:/rs=w:1300,h:800
// https://img1.wsimg.com/isteam/stock/8038
return src.replace(/(\/+ip\/+[-0-9a-f]+\/+(?:ols\/+)?[^/]*|\/isteam\/+stock\/+[0-9]+)(?:\/+:\/+.*)?(?:[?#].*)?$/, "$1");
// thanks to anonymous for reporting:
// https://img1.wsimg.com/isteam/stock/yREJBbw/:/cr=t:12.47%25,l:0%25,w:100%25,h:75.06%25/rs=w:388,h:194,cg:true
// https://img1.wsimg.com/isteam/stock/yREJBbw
return src.replace(/(\/+ip\/+[-0-9a-f]+\/+(?:ols\/+)?[^/]*|\/isteam\/+stock\/+[a-zA-Z0-9]+)(?:\/+:\/+.*)?(?:[?#].*)?$/, "$1");
}
if (domain === "img.lovpho.com") {
// http://img.lovpho.com/anh/width248/2015/22-12/wallets-in-check-embossed-leather-autumn-winter-2014-accessories-accessories-womenfashion-women-s-handbags-burberry-wallets-2014-accessories-check-embossed-leather-haute-handbags-wallets-autumn-winter.jpg
Expand Down Expand Up @@ -69719,7 +69729,10 @@ var $$IMU_EXPORT$$;
// https://www.theaudiodb.com/images/media/track/thumb/twqvyt1471258799.jpg
// https://www.theaudiodb.com/images/media/album/thumbhq/sswssr1538931605.jpg/preview
// https://www.theaudiodb.com/images/media/album/thumbhq/sswssr1538931605.jpg
return src.replace(/(\/[a-z]+[0-9]+\.[^/.]+)(?:\/[a-z]+)(?:[?#].*)?$/, "$1");
// thanks to anonymous for reporting:
// https://www.theaudiodb.com/images/media/album/thumb/gkls6m1640050808.jpg/preview
// https://www.theaudiodb.com/images/media/album/thumb/gkls6m1640050808.jpg
return src.replace(/(\/[a-z0-9]+[0-9]{5,}\.[^/.]+)(?:\/[a-z]+)(?:[?#].*)?$/, "$1");
}
if (domain_nosub === "gaoshouyou.com" && domain.match(/^rs\.[0-9]*\./)) {
// http://rs.0.gaoshouyou.com/gsy.php?img=http://rs.0.gaoshouyou.com/i/15/2b/8e15198dad2b39bf978df897efd56ebe.jpeg&w=400&h=300&iifqde=cfkdd2
Expand Down Expand Up @@ -100846,6 +100859,24 @@ var $$IMU_EXPORT$$;
};
}
}
if (domain === "static.thenounproject.com") {
// thanks to anonymous for reporting:
// https://static.thenounproject.com/avatars/10343109/resized/150/150/b4e846cf7be3d55e23902e8de6493622.png
// https://static.thenounproject.com/avatars/10343109/b4e846cf7be3d55e23902e8de6493622.png
// https://static.thenounproject.com/png/5857500-84.png
// https://static.thenounproject.com/png/5857500-200.png
// https://static.thenounproject.com/attribution/5857500-600.png
newsrc = src.replace(/\/png\/+([0-9]+)-200\./, "/attribution/$1-600.");
if (newsrc !== src) {
return {
url: newsrc,
problems: { watermark: true }
};
}
return src
.replace(/(\/png\/+[0-9]+-)84\./, "$1200.")
.replace(/\/resized\/+[0-9]+\/+[0-9]+\/+/, "/");
}
// -- 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 6ceab7b

Please sign in to comment.