From d102854636f8cbbea446c26472bd22f96d5932cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?changjin=20wei=28=E9=AD=8F=E6=98=8C=E8=BF=9B=29?= Date: Mon, 28 Apr 2025 13:22:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0aiqihca?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- background.js | 1 + pack_extension.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/background.js b/background.js index 0c76de6..15ff2cd 100644 --- a/background.js +++ b/background.js @@ -46,6 +46,7 @@ const redirectMap = { "www.kdocs.cn": { path: "/office/link", testHref: "https://www.kdocs.cn/office/link?target=https://github.com/galaxy-sea/AutoRedirector" }, "dalao.ru": { path: "/link", testHref: "https://dalao.ru/link/?target=https://github.com/galaxy-sea/AutoRedirector" }, "wx.mail.qq.com": { path: "/xmspamcheck/xmsafejump", testHref: "https://wx.mail.qq.com/xmspamcheck/xmsafejump?url=https://github.com/galaxy-sea/AutoRedirector" }, + "aiqicha.baidu.com": { path: "/safetip", testHref: "https://aiqicha.baidu.com/safetip?target=https://github.com/galaxy-sea/AutoRedirector" }, // "1111111": { path: "/111111", testHref: "" }, diff --git a/pack_extension.sh b/pack_extension.sh index d0eddf0..1db6e37 100644 --- a/pack_extension.sh +++ b/pack_extension.sh @@ -40,7 +40,7 @@ pack_extension() { sed -i '' "s/\"version\": *\"[0-9\.]*\"/\"version\": \"$VERSION\"/" "$EXT_DIR/manifest.json" # 开始打包 ZIP(排除不必要文件) - zip -r "$ZIP_NAME" . -x "*.zip" "node_modules/*" ".git/*" ".DS_Store" ".github/*" ".vscode/*" ".cache/*" "doc/*" ".gitignore" "pack_extension.sh" + zip -r "$ZIP_NAME" . -x "*.zip" "node_modules/*" ".git/*" ".DS_Store" ".github/*" ".vscode/*" "..idea/*" ".cache/*" "doc/*" ".gitignore" "pack_extension.sh" # 结果输出 if [ -f "$ZIP_NAME" ]; then @@ -73,7 +73,7 @@ case $BROWSER_CHOICE in ;; 9) delete_zip_file - ;; + ;; *) echo -e "${RED}❌ 无效的选项!请重新运行脚本并输入。${NC}" exit 1