From 6add5b30e8a042d725deb56e17143ea1883e1649 Mon Sep 17 00:00:00 2001 From: Shawn <45581750+KOP-XIAO@users.noreply.github.com> Date: Sat, 2 May 2020 12:42:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=20rewrite=20=E7=9A=84=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E6=96=B9=E5=BC=8F=E6=94=B9=E4=B8=BA=E7=A6=81=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/resource-parser.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Scripts/resource-parser.js b/Scripts/resource-parser.js index a9a8d1b..bc24d75 100644 --- a/Scripts/resource-parser.js +++ b/Scripts/resource-parser.js @@ -158,14 +158,15 @@ function Rewrite_Filter(subs,Pout){ if(dname.length>0){$notify("🤖 您添加的[rewrite]过滤关键词为:"+Pout0.join(", "),"☠️ 主机名 hostname 中已为您删除以下"+dname.length+"个匹配项",dname.join(",") )} } // if cc -hostname else{ - drewrite.push(cc) + drewrite.push(cc); + nlist.push(cc.replace(/ url /g," - ")); } }else{ //if Pout.some nlist.push(cc) } //else } }//cnt for - if(drewrite.length>0){$notify("🤖 您添加的[rewrite]过滤关键词为:"+Pout0.join(", "),"☠️ 复写 rewrite 中已为您删除以下"+drewrite.length+"个匹配项",drewrite.join("\n") )}; + if(drewrite.length>0){$notify("🤖 您添加的[rewrite]过滤关键词为:"+Pout0.join(", "),"☠️ 复写 rewrite 中已为您禁用以下"+drewrite.length+"个匹配项",drewrite.join("\n") )}; return nlist } else{ // Pout if return cnt;}