From 519c0bc5781bf1bc99b6d3fc459d2c954449ca8a Mon Sep 17 00:00:00 2001 From: lsr <34181998+lesser0@users.noreply.github.com> Date: Thu, 22 Aug 2024 18:04:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9F=A5=E4=B9=8E=E4=BF=AE=E6=94=B9=E4=BA=86?= =?UTF-8?q?=E9=AB=98=E4=BA=AE=E9=93=BE=E6=8E=A5=E5=9C=B0=E5=9D=80=EF=BC=8C?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E8=BF=9B=E8=A1=8C=E4=BA=86=E7=9B=B8=E5=BA=94?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zhihu-Enhanced.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Zhihu-Enhanced.user.js b/Zhihu-Enhanced.user.js index 4a33d5264..16d5a7aec 100644 --- a/Zhihu-Enhanced.user.js +++ b/Zhihu-Enhanced.user.js @@ -1033,7 +1033,7 @@ function removeHighlightLink() { for (const mutation of mutationsList) { for (const target of mutation.addedNodes) { if (target.nodeType != 1 || target.tagName != 'A') break - if (target.dataset.zaNotTrackLink && target.href.indexOf('https://www.zhihu.com/search?q=') > -1) { + if (target.dataset.zaNotTrackLink && target.href.indexOf('https://zhida.zhihu.com/search?q=') > -1) { target.parentElement.replaceWith(target.textContent); } } @@ -1043,7 +1043,7 @@ function removeHighlightLink() { observer.observe(document, { childList: true, subtree: true }); // 针对的是打开网页后直接加载的前面几个回答(上面哪些是针对动态加载的回答) - document.querySelectorAll('span > a[data-za-not-track-link][href^="https://www.zhihu.com/search?q="]').forEach(e => e.parentElement.replaceWith(e.textContent)) + document.querySelectorAll('span > a[data-za-not-track-link][href^="https://zhida.zhihu.com/search?q="]').forEach(e => e.parentElement.replaceWith(e.textContent)) }