From 395126294bbc8179d98068216fc0e924e2e36632 Mon Sep 17 00:00:00 2001 From: xing Date: Mon, 2 Mar 2020 21:14:33 +0800 Subject: [PATCH] fix a bug --- tieba page.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tieba page.js b/tieba page.js index ff3ddae..1754f5f 100644 --- a/tieba page.js +++ b/tieba page.js @@ -1,7 +1,7 @@ // ==UserScript== // @name tieba page // @namespace http://tampermonkey.net/ -// @version 0.70 +// @version 0.71 // @author fthvgb1 // @match https://tieba.baidu.com/* // @grant GM.openInTab @@ -302,10 +302,10 @@ } let url = location.href; - if (/\/p\/\d+/.test(url) || /\/mo\/(.*)\/m\?kz=\d+/.test(url)) { + if (/\/p\/\d+/.test(url) || /kz=\d+/.test(url)) { detail(); } - if (/kw=.+/.test(url) || /mo\/q\/m\?word=.+/.test(url) || /\/mo\/(.*)\/m\?kw=/.test(url)) { + if (/kw=.+/.test(url) || /word=.+/.test(url)) { list(); }