Skip to content

Commit

Permalink
Improve bookwalker rule (#1255)
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Feb 15, 2024
1 parent 73c5541 commit 053b3ca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70083,6 +70083,10 @@ var $$IMU_EXPORT$$;
// https://rimg.bookwalker.jp/5585902/OWWPXNVne2Og5o9nA6tp3Q__.jpg
// https://c.bookwalker.jp/coverImage_2095854.jpg
//return src.replace(/:\/\/[^/]*\/([0-9]+)\/[0-9a-zA-Z_]+(\.[^/.]*)$/, "://c.bookwalker.jp/$1/t_700x780$2");
// thanks to neckothy on github: https://github.com/qsniyg/maxurl/issues/1255
// https://rimg.bookwalker.jp/7f15ef05f2e9179c2b450fa9f583cc3/BM2j7K0aiKyzud2kfkni6g__.jpg
// https://c.bookwalker.jp/7f15ef05f2e9179c2b450fa9f583cc3/t_700x780.jpg
return src.replace(/:\/\/[^/]+\/+([0-9a-f]{30,}\/+)BM2j7K0aiKyzud2kfkni6g__\./, "://c.bookwalker.jp/$1t_700x780.");
}

if (domain === "c.bookwalker.jp") {
Expand Down
4 changes: 4 additions & 0 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -63498,6 +63498,10 @@ var $$IMU_EXPORT$$;
// https://rimg.bookwalker.jp/5585902/OWWPXNVne2Og5o9nA6tp3Q__.jpg
// https://c.bookwalker.jp/coverImage_2095854.jpg
//return src.replace(/:\/\/[^/]*\/([0-9]+)\/[0-9a-zA-Z_]+(\.[^/.]*)$/, "://c.bookwalker.jp/$1/t_700x780$2");
// thanks to neckothy on github: https://github.com/qsniyg/maxurl/issues/1255
// https://rimg.bookwalker.jp/7f15ef05f2e9179c2b450fa9f583cc3/BM2j7K0aiKyzud2kfkni6g__.jpg
// https://c.bookwalker.jp/7f15ef05f2e9179c2b450fa9f583cc3/t_700x780.jpg
return src.replace(/:\/\/[^/]+\/+([0-9a-f]{30,}\/+)BM2j7K0aiKyzud2kfkni6g__\./, "://c.bookwalker.jp/$1t_700x780.");
}
if (domain === "c.bookwalker.jp") {
// thanks to NotLemon at https://github.com/qsniyg/maxurl/issues/17
Expand Down

0 comments on commit 053b3ca

Please sign in to comment.