From 1ec6dcdefd99184b6e01f8595505b725297df8dc Mon Sep 17 00:00:00 2001 From: xing Date: Wed, 4 Mar 2020 16:46:19 +0800 Subject: [PATCH] fuck url --- tieba page.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tieba page.js b/tieba page.js index cf16f8e..45faa7c 100644 --- a/tieba page.js +++ b/tieba page.js @@ -391,10 +391,10 @@ } let url = location.href; - if (/\/p\/\d+/.test(url) || /kz=\d+/.test(url)) { + if (document.querySelector('#pblist')) { detail(); } - if (/kw=.+/.test(url) || /word=.+/.test(url)) { + if (document.querySelector('#tlist')) { list(); }