Skip to content

Commit

Permalink
Add chil-chil rule (fixes #1306)
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Apr 23, 2024
1 parent 95d68ca commit 9e733d6
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 @@ -113666,6 +113666,16 @@ var $$IMU_EXPORT$$;
return src.replace(/(\/prod\/+[^/]+\/+projects\/+[0-9]+\/+[^/]+\/+[^/]+)_w[0-9]+\./, "$1.");
}

if (domain === "img.chil-chil.net") {
// thanks to Froktime on github: https://github.com/qsniyg/maxurl/issues/1306
// https://img.chil-chil.net/goods_img/L/00140048_L.jpg
// https://img.chil-chil.net/goods_img/XXL/00140048_XXL.jpg -- 640x909
return {
url: src.replace(/(\/goods_img\/+)X?[ML]\/+([0-9]+)_X?[ML]\./, "$1XXL/$2_XXL."),
problems: {possibly_upscaled: true}
}
}




Expand Down
9 changes: 9 additions & 0 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -102048,6 +102048,15 @@ var $$IMU_EXPORT$$;
// https://storage.googleapis.com/image-ichiba2/prod/froala/projects/710/ubgoe/ncpdUqbSBMtLLwnE6h-xWA.jpg
return src.replace(/(\/prod\/+[^/]+\/+projects\/+[0-9]+\/+[^/]+\/+[^/]+)_w[0-9]+\./, "$1.");
}
if (domain === "img.chil-chil.net") {
// thanks to Froktime on github: https://github.com/qsniyg/maxurl/issues/1306
// https://img.chil-chil.net/goods_img/L/00140048_L.jpg
// https://img.chil-chil.net/goods_img/XXL/00140048_XXL.jpg -- 640x909
return {
url: src.replace(/(\/goods_img\/+)X?[ML]\/+([0-9]+)_X?[ML]\./, "$1XXL/$2_XXL."),
problems: { possibly_upscaled: true }
};
}
// -- 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 9e733d6

Please sign in to comment.