From 053b3ca44ca15b68851303d634c00a2662e60e75 Mon Sep 17 00:00:00 2001 From: qsniyg Date: Thu, 15 Feb 2024 12:41:05 +0000 Subject: [PATCH] Improve bookwalker rule (#1255) --- src/userscript.ts | 4 ++++ userscript.user.js | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/userscript.ts b/src/userscript.ts index 9bd53be5..b538b563 100644 --- a/src/userscript.ts +++ b/src/userscript.ts @@ -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") { diff --git a/userscript.user.js b/userscript.user.js index 9b33288a..a0088118 100644 --- a/userscript.user.js +++ b/userscript.user.js @@ -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