From 252b26aceaf4532e4251e8a0900d54be81eb73dd Mon Sep 17 00:00:00 2001 From: macworld Date: Sat, 18 Mar 2017 00:52:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=99=BE=E5=BA=A6=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E4=B8=AD=E9=83=A8=E5=88=86https=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E6=9C=AA=E6=9B=BF=E6=8D=A2=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/js/fast_baidu_search.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/fast_baidu_search.js b/src/js/fast_baidu_search.js index 5f89b49..0f6c159 100644 --- a/src/js/fast_baidu_search.js +++ b/src/js/fast_baidu_search.js @@ -169,8 +169,8 @@ function replaceLink(title) { // originLink.style.color = 'orange' } else { - // 其他url 还是使用ajax result 替换 - showUrlTxt = showUrlTxt.replace(/\.\.\..*/, "") + // 其他url 还是使用ajax result 替换,去除部分链接中https前缀,避免替换失败 + showUrlTxt = showUrlTxt.replace(/\.\.\..*/, "").replace("https://","") showUrlTxt = $.trim(showUrlTxt) baiduDotComIndex = showUrlTxt.indexOf("baidu.com") if(baiduDotComIndex > 0 ) {