From 980ad4c7b54bcc7c1d7fa81b4ef00354f70bd233 Mon Sep 17 00:00:00 2001 From: Shawn <45581750+KOP-XIAO@users.noreply.github.com> Date: Fri, 24 Apr 2020 14:42:34 +0800 Subject: [PATCH] =?UTF-8?q?ssr=E5=AF=86=E7=A0=81=E8=A7=A3=E6=9E=90?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/resource-parser.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Scripts/resource-parser.js b/Scripts/resource-parser.js index 260349e..9e881e5 100644 --- a/Scripts/resource-parser.js +++ b/Scripts/resource-parser.js @@ -1,4 +1,5 @@ /** + * 2020-04-24:14:42 #tag * 本资源解析器作者: Shawn (@XIAO_KOP) , 有问题请反馈:@Shawn_KOP_bot * 功能: 将不同格式订阅转换成 Quantumult X,并支持简单的过滤. * 目前支持 V2RayN/SSR/Trojan/Quanx 格式写法的节点引用; @@ -153,7 +154,7 @@ function SSR2QX(subs){ console.log(cnt) type="shadowsocks="; ip=cnt.split(":")[0]+":"+cnt.split(":")[1]; - pwd="password="+cnt.split("/?")[0].split(":")[5]; + pwd="password="+$base64.decode(cnt.split("/?")[0].split(":")[5].replace(/-/g,"+").replace(/_/g,"/")).split("\u0000")[0]; mtd="method="+cnt.split(":")[3]; obfs="obfs="+cnt.split(":")[4]+", "; ssrp="ssr-protocol="+cnt.split(":")[2];