From 340385a64f2b3b30e796c6ceba183c0ae76b5918 Mon Sep 17 00:00:00 2001 From: qsniyg Date: Sun, 14 Jul 2024 19:22:18 +0000 Subject: [PATCH] Improve suruga-ya rule --- src/userscript.ts | 2 +- userscript.user.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/userscript.ts b/src/userscript.ts index 8abd25c8..eb173d49 100644 --- a/src/userscript.ts +++ b/src/userscript.ts @@ -90335,7 +90335,7 @@ var $$IMU_EXPORT$$; // thanks to fireattack on discord: // https://www.suruga-ya.jp/pics_light/boxart_a/508922053_1.jpg?v=49a0a1c22aaae3834f5d // https://www.suruga-ya.jp/database/pics/game/508922053_1.jpg - return src.replace(/\/(?:database\/+)?pics(?:_(?:light|webp))\/+(?:boxart_[a-z]+|game)\/+([0-9]+(?:_[0-9]+)?)[a-z]*\.[a-z]+(?:\.[a-z]+)?(?:[?#].*)?$/, "/database/pics/game/$1.jpg"); + return src.replace(/\/(?:database\/+)?pics(?:_(?:light|webp))?\/+(?:boxart_[a-z]+|game)\/+([0-9]+(?:_[0-9]+)?)[a-z]*\.[a-z]+(?:\.[a-z]+)?(?:[?#].*)?$/, "/database/pics/game/$1.jpg"); } if (domain_nowww === "itsfun.com.tw") { diff --git a/userscript.user.js b/userscript.user.js index 713715ca..398a2b0a 100644 --- a/userscript.user.js +++ b/userscript.user.js @@ -81311,7 +81311,7 @@ var $$IMU_EXPORT$$; // thanks to fireattack on discord: // https://www.suruga-ya.jp/pics_light/boxart_a/508922053_1.jpg?v=49a0a1c22aaae3834f5d // https://www.suruga-ya.jp/database/pics/game/508922053_1.jpg - return src.replace(/\/(?:database\/+)?pics(?:_(?:light|webp))\/+(?:boxart_[a-z]+|game)\/+([0-9]+(?:_[0-9]+)?)[a-z]*\.[a-z]+(?:\.[a-z]+)?(?:[?#].*)?$/, "/database/pics/game/$1.jpg"); + return src.replace(/\/(?:database\/+)?pics(?:_(?:light|webp))?\/+(?:boxart_[a-z]+|game)\/+([0-9]+(?:_[0-9]+)?)[a-z]*\.[a-z]+(?:\.[a-z]+)?(?:[?#].*)?$/, "/database/pics/game/$1.jpg"); } if (domain_nowww === "itsfun.com.tw") { // https://www.itsfun.com.tw/images/ef/b2/==wZwpmL2kzMkNGMmhDZ2kjZjFGMyEDM09yX4YjMfhjNy8CZmRXbk9SbvNmLnNXboFnL4A3LvoDc0RHa.jpg