Update resource-parser.js

This commit is contained in:
Shawn
2023-02-08 13:24:11 +08:00
parent 667a686ad9
commit 229b83f38b

View File

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