mirror of
https://github.com/KOP-XIAO/QuantumultX.git
synced 2026-01-25 13:05:10 +00:00
support mixed rewrite
This commit is contained in:
@@ -1171,7 +1171,7 @@ function isQuanX(content) {
|
|||||||
return nlist
|
return nlist
|
||||||
}
|
}
|
||||||
|
|
||||||
//surge script - > quanx
|
//surge script/rewrite - > quanx
|
||||||
function isQuanXRewrite(content) {
|
function isQuanXRewrite(content) {
|
||||||
cnt = content
|
cnt = content
|
||||||
cnt0=[]
|
cnt0=[]
|
||||||
@@ -1180,9 +1180,14 @@ function isQuanXRewrite(content) {
|
|||||||
if (cnti.indexOf("pattern")!=-1 && cnti.indexOf("type")!=-1) {
|
if (cnti.indexOf("pattern")!=-1 && cnti.indexOf("type")!=-1) {
|
||||||
cnti=SGMD2QX(cnti)[0]
|
cnti=SGMD2QX(cnti)[0]
|
||||||
//console.log(cnti)
|
//console.log(cnti)
|
||||||
cnt0.push(cnti)
|
}else if ((cnti.indexOf(" 302")!=-1 || cnti.indexOf(" 307")!=-1) && cnti.indexOf(" url ")==-1){
|
||||||
}else {
|
|
||||||
cnt0.push(cnti)}
|
cnti=SGMD2QX(cnti)[0]? SGMD2QX(cnti)[0]:""
|
||||||
|
//console.log("sss",cnti)
|
||||||
|
}else if(cnti.indexOf("URL_REGEX")!=-1){
|
||||||
|
cnti=SGMD2QX(cnti)[0]? SGMD2QX(cnti)[0]:""
|
||||||
|
}
|
||||||
|
cnt0.push(cnti)
|
||||||
}
|
}
|
||||||
//console.log(cnt0)
|
//console.log(cnt0)
|
||||||
return cnt0
|
return cnt0
|
||||||
|
|||||||
Reference in New Issue
Block a user