From 804f879521f65c99392f947f58dd31d2ac854dea Mon Sep 17 00:00:00 2001 From: xing Date: Fri, 21 Feb 2020 20:22:52 +0800 Subject: [PATCH] fix bug --- tieba page.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tieba page.js b/tieba page.js index e6576b6..53ba31e 100644 --- a/tieba page.js +++ b/tieba page.js @@ -73,11 +73,11 @@ let tid = ee.attr("tid"); let content = ee.find(".list_item_top"); let x = ee.find('.list_item_top a.j_report_btn'); + let kz = 0; if (x && x.length > 0) { - let kz = x[0].href.match(/tid=(\d+)&/); + kz = x[0].href.match(/tid=(\d+)&/); kz = kz[1]; } - let floor = e.getElementsByClassName('pb_floow_load'); if (floor.length > 0) { let text = floor[0].textContent;