From 39ac3d7da1f3b0635a24adac374c3fc4b37a12a1 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Wed, 25 Sep 2024 12:26:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20[=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E9=AB=98=E4=BA=AE=E9=93=BE=E6=8E=A5]=20=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E5=8F=88=E5=A4=B1=E6=95=88=E4=BA=86=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=88=E7=9F=A5=E4=B9=8E=E5=8F=88=E6=94=B9=E5=8A=A8=E4=BA=86?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zhihu-Enhanced.user.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Zhihu-Enhanced.user.js b/Zhihu-Enhanced.user.js index 8667ce4..4e9c625 100644 --- a/Zhihu-Enhanced.user.js +++ b/Zhihu-Enhanced.user.js @@ -3,7 +3,7 @@ // @name:zh-CN 知乎增强 // @name:zh-TW 知乎增強 // @name:en Zhihu enhancement -// @version 2.3.9 +// @version 2.3.10 // @author X.I.U // @description 屏蔽指定类别(视频、盐选、文章、想法、关注[赞同了XX/关注了XX]等等)、屏蔽用户、屏蔽关键词、默认收起回答、快捷收起回答/评论(左键两侧)、快捷回到顶部(右键两侧)、区分问题文章、移除高亮链接、净化搜索热门、净化标题消息、展开问题描述、显示问题作者、默认高清原图(无水印)、置顶显示时间、完整问题时间、直达问题按钮、默认站外直链... // @description:zh-TW 屏蔽指定類別(視頻、鹽選、文章、想法、關注[贊同了XX/關注了XX]等等)、屏蔽用戶、屏蔽關鍵詞、默認收起回答、快捷收起回答/評論、快捷回到頂部、區分問題文章、移除高亮鏈接、默認高清原圖(無水印)、默認站外直鏈... @@ -1046,7 +1046,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://zhida.zhihu.com/search?q=') > -1) { + if (target.dataset.zaNotTrackLink && target.href.indexOf('https://zhida.zhihu.com/search?') > -1) { target.parentElement.replaceWith(target.textContent); } } @@ -1056,7 +1056,7 @@ function removeHighlightLink() { observer.observe(document, { childList: true, subtree: true }); // 针对的是打开网页后直接加载的前面几个回答(上面哪些是针对动态加载的回答) - document.querySelectorAll('span > a[data-za-not-track-link][href^="https://zhida.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?"]').forEach(e => e.parentElement.replaceWith(e.textContent)) } @@ -1324,7 +1324,7 @@ function topTime_post() { t.classList.add('xiu-time'); } - //发布时间置顶 + // 置顶显示时间 if (menu_value('menu_publishTop') && !(document.querySelector('.Post-Header > .ContentItem-time')) && !(document.querySelector('.ContentItem-meta > .ContentItem-time'))) { let temp_time = t.cloneNode(true); temp_time.style.padding = '0px'; @@ -1345,7 +1345,7 @@ function topTime_allTime(t) { } -// 发布时间置顶 +// 置顶显示时间 function topTime_publishTop(t, _this, _class) { if (!menu_value('menu_publishTop')) return if (!t.parentNode.classList.contains(_class)) {