Skip to content

Commit

Permalink
Improve suruga-ya rule
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Jul 14, 2024
1 parent 8f01b74 commit 340385a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down
2 changes: 1 addition & 1 deletion userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 340385a

Please sign in to comment.