MCPcopy Create free account
hub / github.com/Moli-X/Resources / ToRaw

Function ToRaw

Script/Parser.js:819–828  ·  view source on GitHub ↗
(cnt)

Source from the content-addressed store, hash-verified

817}
818
819function ToRaw(cnt) {
820 cnt = cnt.split("\n").map(rawtest).filter(Boolean).join("\n")
821 var rawlink = link0.replace("github.com","raw.githubusercontent.com").replace("/blob","")
822 if (cnt) {
823 $notify( "⚠️⚠️ 将尝试解析该资源" + "⟦" + subtag + "⟧" , "🚥 请正确使用GitHub的 raw 链接" , "❌ 你的链接:"+link0+"\n✅ 正确链接:"+rawlink, {"open-url":rawlink})
824 } else if(content0.indexOf("gridcell")!=-1) {
825 $notify( "⚠️⚠️ 解析该资源" + " ⟦" + subtag + "⟧ 失败" , "🚥 你的链接似乎是目录,而不是文件" , "❌ 你的链接:"+link0, {"open-url":link0})
826 }
827 return cnt
828}
829
830function CDN(cnt) {
831 console.log("CDN start")

Callers 1

Parser.jsFile · 0.85

Calls 3

$notifyFunction · 0.70
joinMethod · 0.45
indexOfMethod · 0.45

Tested by

no test coverage detected