Skip to content

Commit

Permalink
Support cho-animedia.jp (fixes #975)
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Feb 5, 2024
1 parent af35de3 commit aff7a5f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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");
}
Expand Down
8 changes: 8 additions & 0 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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") {
Expand Down

0 comments on commit aff7a5f

Please sign in to comment.