Skip to content

Commit

Permalink
Support px-monkey.com (fixes #1335)
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Sep 15, 2024
1 parent 9e11bdc commit a292c57
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116523,6 +116523,16 @@ var $$IMU_EXPORT$$;
return src.replace(/(\/assets\/+releases\/+)fitted\/+/, "$1original/");
}

if (domain_nowww === "px-monkey.com" ||
// thanks to fyhtma on github: https://github.com/qsniyg/maxurl/issues/1335
// http://cdn.myshoptet.com/usr/www.px-monkey.com/user/shop/related/13020-1_nam-the-vietnam-experience-1965-1975-vol--1-2.jpg?63efb864
// https://cdn.myshoptet.com/usr/www.px-monkey.com/user/shop/orig/13020-1_nam-the-vietnam-experience-1965-1975-vol--1-2.jpg?63efb864
(domain === "cdn.myshoptet.com" && /\.px-monkey\.com\//.test(src))) {
// https://www.px-monkey.com/user/shop/related/13020-1_nam-the-vietnam-experience-1965-1975-vol--1-2.jpg?63efb864
// https://www.px-monkey.com/user/shop/orig/13020-1_nam-the-vietnam-experience-1965-1975-vol--1-2.jpg?63efb864
return src.replace(/(\/user\/+shop\/+)(?:related|big)\/+/, "$1orig/");
}




Expand Down
9 changes: 9 additions & 0 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -104712,6 +104712,15 @@ var $$IMU_EXPORT$$;
// https://s3.amazonaws.com/media.kompakt.fm/01/assets/releases/original/ext016-pshal_p_shaw.jpg?v=1
return src.replace(/(\/assets\/+releases\/+)fitted\/+/, "$1original/");
}
if (domain_nowww === "px-monkey.com" ||
// thanks to fyhtma on github: https://github.com/qsniyg/maxurl/issues/1335
// http://cdn.myshoptet.com/usr/www.px-monkey.com/user/shop/related/13020-1_nam-the-vietnam-experience-1965-1975-vol--1-2.jpg?63efb864
// https://cdn.myshoptet.com/usr/www.px-monkey.com/user/shop/orig/13020-1_nam-the-vietnam-experience-1965-1975-vol--1-2.jpg?63efb864
(domain === "cdn.myshoptet.com" && /\.px-monkey\.com\//.test(src))) {
// https://www.px-monkey.com/user/shop/related/13020-1_nam-the-vietnam-experience-1965-1975-vol--1-2.jpg?63efb864
// https://www.px-monkey.com/user/shop/orig/13020-1_nam-the-vietnam-experience-1965-1975-vol--1-2.jpg?63efb864
return src.replace(/(\/user\/+shop\/+)(?:related|big)\/+/, "$1orig/");
}
// -- 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 a292c57

Please sign in to comment.