From aff7a5feabe894900bd237b49e26b8a63834ce97 Mon Sep 17 00:00:00 2001 From: qsniyg Date: Mon, 5 Feb 2024 15:19:43 +0000 Subject: [PATCH] Support cho-animedia.jp (fixes #975) --- src/userscript.ts | 8 ++++++++ userscript.user.js | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/src/userscript.ts b/src/userscript.ts index 0d2c07a4..ff8b3591 100644 --- a/src/userscript.ts +++ b/src/userscript.ts @@ -79639,6 +79639,12 @@ var $$IMU_EXPORT$$; // https://s.gamespark.jp/imgs/p/d8IRfSCmFXPaJb844BSE_jkJwAfOBQQDAgEA/28450.jpg // https://s.gamespark.jp/imgs/p/PseAHU_gq3GEwRLM5htwMwoLvAaDYAQDAgEA/28450.jpg domain_nosub === "gamespark.jp" || + // thanks to fireattack on github: https://github.com/qsniyg/maxurl/issues/975 + // https://cho-animedia.jp/imgs/p/eA_jHH731ym-h0rZ1IS6nKjOWcBXwsPExcbH/321900.jpg + // https://cho-animedia.jp/imgs/p/Dybu1wcglzgN6YILHHa9fs3Ml8DBwsPExcbH/321900.jpg + // https://cho-animedia.jp/imgs/p/eA_jHH731ym-h0rZ1IS6nKjOWcBXwsPExcbH/12527.jpg + // https://cho-animedia.jp/imgs/p/Dybu1wcglzgN6YILHHa9fs3Ml8DBwsPExcbH/12527.jpg -- 2500x1771 + domain_nowww === "cho-animedia.jp" || // https://s.spyder7.com/imgs/p/X4UiqBKWADm8lT-ssAf7B9LTUN-e3dzb2tnY/134234.jpg?thumbnailize=zoom -- 2048x1365, no larger image found, so might not be orig // https://spyder7.com/imgs/p/6ctlLP6jpu3fsvWRdHSre9LTZN5buNzb2tnY/16841.jpg // https://spyder7.com/imgs/p/X4UiqBKWADm8lT-ssAf7B9LTUN-e3dzb2tnY/16841.jpg @@ -79672,6 +79678,8 @@ var $$IMU_EXPORT$$; orig = "JgD9AR1Ir8Z47f6Bz3cIbgIDgA8ODQwLCgkI"; else if (domain_nosub === "gamespark.jp") orig = "PseAHU_gq3GEwRLM5htwMwoLvAaDYAQDAgEA"; + else if (domain_nosub === "cho-animedia.jp") + orig = "Dybu1wcglzgN6YILHHa9fs3Ml8DBwsPExcbH"; return src.replace(/\/imgs\/+(?:[^/]*|p\/+[^/]{30,})\/+([0-9]+\.[^/.]*)(?:[?#].*)?$/, "/imgs/p/" + orig + "/$1"); } diff --git a/userscript.user.js b/userscript.user.js index 3cac4633..bf95d468 100644 --- a/userscript.user.js +++ b/userscript.user.js @@ -71852,6 +71852,12 @@ var $$IMU_EXPORT$$; // https://s.gamespark.jp/imgs/p/d8IRfSCmFXPaJb844BSE_jkJwAfOBQQDAgEA/28450.jpg // https://s.gamespark.jp/imgs/p/PseAHU_gq3GEwRLM5htwMwoLvAaDYAQDAgEA/28450.jpg domain_nosub === "gamespark.jp" || + // thanks to fireattack on github: https://github.com/qsniyg/maxurl/issues/975 + // https://cho-animedia.jp/imgs/p/eA_jHH731ym-h0rZ1IS6nKjOWcBXwsPExcbH/321900.jpg + // https://cho-animedia.jp/imgs/p/Dybu1wcglzgN6YILHHa9fs3Ml8DBwsPExcbH/321900.jpg + // https://cho-animedia.jp/imgs/p/eA_jHH731ym-h0rZ1IS6nKjOWcBXwsPExcbH/12527.jpg + // https://cho-animedia.jp/imgs/p/Dybu1wcglzgN6YILHHa9fs3Ml8DBwsPExcbH/12527.jpg -- 2500x1771 + domain_nowww === "cho-animedia.jp" || // https://s.spyder7.com/imgs/p/X4UiqBKWADm8lT-ssAf7B9LTUN-e3dzb2tnY/134234.jpg?thumbnailize=zoom -- 2048x1365, no larger image found, so might not be orig // https://spyder7.com/imgs/p/6ctlLP6jpu3fsvWRdHSre9LTZN5buNzb2tnY/16841.jpg // https://spyder7.com/imgs/p/X4UiqBKWADm8lT-ssAf7B9LTUN-e3dzb2tnY/16841.jpg @@ -71883,6 +71889,8 @@ var $$IMU_EXPORT$$; orig = "JgD9AR1Ir8Z47f6Bz3cIbgIDgA8ODQwLCgkI"; else if (domain_nosub === "gamespark.jp") orig = "PseAHU_gq3GEwRLM5htwMwoLvAaDYAQDAgEA"; + else if (domain_nosub === "cho-animedia.jp") + orig = "Dybu1wcglzgN6YILHHa9fs3Ml8DBwsPExcbH"; return src.replace(/\/imgs\/+(?:[^/]*|p\/+[^/]{30,})\/+([0-9]+\.[^/.]*)(?:[?#].*)?$/, "/imgs/p/" + orig + "/$1"); } if (domain_nowww === "pixsell.hr") {