From 14f3ec7dd5254fb5fe642b63f9da6be45751f147 Mon Sep 17 00:00:00 2001 From: xing Date: Sun, 12 Jul 2020 20:26:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E4=BF=AEbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tieba page.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tieba page.js b/tieba page.js index 4d70108..d219774 100644 --- a/tieba page.js +++ b/tieba page.js @@ -1,7 +1,7 @@ // ==UserScript== // @name tieba page // @namespace http://tampermonkey.net/ -// @version 1.009 +// @version 1.010 // @author fthvgb1 // @match https://tieba.baidu.com/* // @match https://tiebac.baidu.com/* @@ -280,7 +280,7 @@ let tmp = lis.querySelectorAll('li'); let arr = [...tmp]; arr.splice(tmp.length - 1, 1); - if (page === 1 && el.length > 0) { + if (page === 1 && el.childElementCount > 0) { arr.splice(0, 2); } arr.forEach(li => {