From a950684b16f67458cee247667a53dc5a4ba285b6 Mon Sep 17 00:00:00 2001 From: xing Date: Thu, 7 May 2020 12:30:55 +0800 Subject: [PATCH] fix bug --- tieba page.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tieba page.js b/tieba page.js index 64a5ac9..97eb58b 100644 --- a/tieba page.js +++ b/tieba page.js @@ -1,7 +1,7 @@ // ==UserScript== // @name tieba page // @namespace http://tampermonkey.net/ -// @version 1.005 +// @version 1.006 // @author fthvgb1 // @match https://tieba.baidu.com/* // @match https://tiebac.baidu.com/* @@ -256,7 +256,8 @@ as.forEach(a => { let src = a.href; if (src.search(/(fr=share)|(client_type=2)/) > -1) { - let href = src.match(/(https?:\/\/tieba\.baidu\.com\/p\/\d+?)/); + + let href = src.match(/(https?:\/\/tieba\.baidu\.com\/p\/\d+)/); if (href && href.length > 0) { a.href = href[1]; a.innerText = a.href;