From 929a4202bd5cb13613ee9839bc2d31e4114fd31a Mon Sep 17 00:00:00 2001 From: xingteh Date: Tue, 10 Feb 2026 15:19:36 +0800 Subject: [PATCH] Add rewrite config --- docs/assets/gameresources/rewrite_config.json | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 docs/assets/gameresources/rewrite_config.json diff --git a/docs/assets/gameresources/rewrite_config.json b/docs/assets/gameresources/rewrite_config.json new file mode 100644 index 0000000..e7b82b9 --- /dev/null +++ b/docs/assets/gameresources/rewrite_config.json @@ -0,0 +1,27 @@ +[ + { + "patterns": [ + "^https?://github\\.com(?::(?:80|443))?/([^/]+)/([^/]+)/raw/(?:refs/heads/)?([^/]+)/(.+)$", + "^https?://raw\\.githubusercontent\\.com(?::(?:80|443))?/([^/]+)/([^/]+)/(?:refs/heads/)?([^/]+)/(.+)$", + "^https?://raw\\.github\\.com(?::(?:80|443))?/([^/]+)/([^/]+)/([^/]+)/(.+)$", + "^https?://github\\.com(?::(?:80|443))?/([^/]+)/([^/]+)/blob/([^/]+)/(.+)\\?raw=true$" + ], + "target": "https://ghfast.top/https://raw.githubusercontent.com/{$1}/{$2}/{$3}/{$4}" + }, + { + "patterns": [ + "^https?://cdn\\.discordapp\\.com(?::(?:80|443))?/attachments/(.+)$", + "^https?://media\\.discordapp\\.net(?::(?:80|443))?/attachments/(.+)$" + ], + "target": "https://lps.gteh.top/dcimg/{$1}", + "ua": "SlideshowProxy", + "referer": "NULL" + }, + { + "patterns": [ + "^https?://i\\.imgur\\.com(?::(?:80|443))?/(.+)$" + ], + "target": "https://img.noobzone.ru/getimg.php?url=https://i.imgur.com/{$1}", + "referer": "NULL" + } +]