mirror of
https://github.com/KOP-XIAO/QuantumultX.git
synced 2026-01-25 13:05:10 +00:00
优化提醒
This commit is contained in:
@@ -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","")
|
||||
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
BIN
img/.DS_Store
vendored
Binary file not shown.
Reference in New Issue
Block a user