优化提醒

This commit is contained in:
Shawn
2021-01-22 20:12:15 +08:00
parent afd6801dcc
commit 15aa5834d5
2 changed files with 7 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
/**
☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2021-01-20 11:45
☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2021-01-22 20:29
----------------------------------------------------------
🛠 发现 𝐁𝐔𝐆 请反馈: @Shawn_KOP_bot
⛳️ 关注 🆃🅶 相关频道: https://t.me/QuanX_API
@@ -513,11 +513,16 @@ function rawtest(cnt) {
function ToRaw(cnt) {
cnt = cnt.split("\n").map(rawtest).filter(Boolean).join("\n")
var rawlink = link0.replace("github.com","raw.githubusercontent.com").replace("/blob","")
$notify( "⚠️⚠️ 将尝试解析该资源" + "⟦" + subtag + "⟧" , "🚥 请正确使用GitHub的 raw 链接" , "❌ 你的链接:"+link0+"\n✅ 正确链接:"+rawlink, {"open-url":rawlink})
if (cnt) {
$notify( "⚠️⚠️ 将尝试解析该资源" + "⟦" + subtag + "⟧" , "🚥 请正确使用GitHub的 raw 链接" , "❌ 你的链接:"+link0+"\n✅ 正确链接:"+rawlink, {"open-url":rawlink})
} else if(content0.indexOf("gridcell")!=-1) {
$notify( "⚠️⚠️ 解析该资源" + " ⟦" + subtag + "⟧ 失败" , "🚥 你的链接似乎是目录,而不是文件" , "❌ 你的链接:"+link0, {"open-url":link0})
}
return cnt
}
//url-regex 转换成 Quantumult X
function URX2QX(subs) {
var nrw = []

BIN
img/.DS_Store vendored

Binary file not shown.