From 229b83f38baa5344223be753a06085260fe96943 Mon Sep 17 00:00:00 2001 From: Shawn <45581750+KOP-XIAO@users.noreply.github.com> Date: Wed, 8 Feb 2023 13:24:11 +0800 Subject: [PATCH] Update resource-parser.js --- Scripts/resource-parser.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Scripts/resource-parser.js b/Scripts/resource-parser.js index 0dd890d..9808f82 100644 --- a/Scripts/resource-parser.js +++ b/Scripts/resource-parser.js @@ -1,5 +1,5 @@ /** -☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2023-01-31 10:15⟧ +☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2023-02-08 13:15⟧ ---------------------------------------------------------- 🛠 发现 𝐁𝐔𝐆 请反馈: https://t.me/Shawn_Parser_Bot ⛳️ 关注 🆃🅶 相关频道: https://t.me/QuanX_API @@ -311,7 +311,7 @@ var flag = 1 function Parser() { type0 = Type_Check(content0); // 类型判断 //$notify(type0) - if (type0 != "web" && type0 != "wrong-field"){ + if (type0 != "web" && type0 != "wrong-field" && type0 != "JS-0"){ try { //$notify(type0,"hh") if (Pdbg){ @@ -436,6 +436,8 @@ function ResourceParse() { $notify("⚠️ 该链接为完整配置文件, 请点击此通知跳转", "添加配置中的有效远程资源👇 ["+ PProfile+"]", ADDres, openlink) flag = -1; total = "" + } else if (type0 == "JS-0") { + total = "" } //开始处理 @@ -646,7 +648,8 @@ function Type_Check(subs) { typec = "sub-http" type = "sub-http" } else if (/\.js/.test(link0)) { // xjb添加js脚本的行为 - $notify("⚠️ 你导入的链接内容为 JS 脚本","🚥 脚本内未有重写注释,无法解析使用", link0) + $notify("⚠️ 你导入的链接内容为 JS 脚本","🚥 脚本内未有重写规则,无法解析使用", " 请⚠️不要⚠️跑来解析器🤖️反馈 \n"+link0) + type = "JS-0" } //else if (typeQ == "URI") // 用于通知判断类型,debug if(typeU == "X"){ @@ -2450,6 +2453,7 @@ function get_emoji(emojip, sname) { "🇨🇷": ["哥斯达黎加", "Costa Rica"], "🇹🇳": ["突尼斯", "Tunisia"], "🇻🇦": ["梵蒂冈"], + "🇷🇼": ["卢旺达"], "🇵🇦": ["巴拿马","巴拿馬", "Panama"], "🇮🇷": ["伊朗", "Iran"], "🇯🇴": ["约旦", "約旦", "Jordan"],