From 060c5ec265f531a09bc173dd1089ca670357db8b Mon Sep 17 00:00:00 2001 From: xing Date: Thu, 2 Apr 2020 22:04:49 +0800 Subject: [PATCH] fix a bug --- tieba page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tieba page.js b/tieba page.js index 8287f9c..cea1265 100644 --- a/tieba page.js +++ b/tieba page.js @@ -462,7 +462,7 @@ window.open(url, '_blank'); } if ((startX - endX) > 100 && Math.abs(endY - startY) <= 100) { - location.href = document.querySelector('li.tl_shadow>a[data-thread-type="0"]').dataset.url; + location.href = li.querySelector('li.tl_shadow>a[data-thread-type="0"]').dataset.url; //window.open(url,'self') } })