From bbb410ebd59f963ab8d129019ce78e342f12d028 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Sat, 5 Feb 2022 12:55:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[=E7=BD=AE=E9=A1=B6?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=97=B6=E9=97=B4]=20=E5=8A=9F=E8=83=BD=20(?= =?UTF-8?q?=E7=9F=AD=E5=9B=9E=E7=AD=94=E5=88=99=E4=B8=8D=E5=86=8D=E4=BF=9D?= =?UTF-8?q?=E7=95=99=E5=9B=9E=E7=AD=94=E5=BA=95=E9=83=A8=E6=97=B6=E9=97=B4?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zhihu-Enhanced.user.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Zhihu-Enhanced.user.js b/Zhihu-Enhanced.user.js index 1893c6f..f50c955 100644 --- a/Zhihu-Enhanced.user.js +++ b/Zhihu-Enhanced.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 知乎增强 -// @version 1.9.6 +// @version 1.9.7 // @author X.I.U // @description 移除登录弹窗、屏蔽首页视频、默认收起回答、快捷收起当前回答/评论(左键两侧空白处)、快捷回到顶部(右键两侧空白处)、屏蔽用户 (发布的内容)、屏蔽关键词(标题/评论)、移除高亮链接、屏蔽盐选内容、净化标题消息、展开问题描述、显示问题作者、置顶显示时间、完整问题时间、区分问题文章、直达问题按钮、默认高清原图、默认站外直链 // @match *://www.zhihu.com/* @@ -1292,6 +1292,8 @@ function topTime_publishTop(t, _this, _class) { if (!t.parentNode.classList.contains(_class)) { let temp_time = t.cloneNode(true); temp_time.style.padding = '0px'; + // 对于较短的回答,隐藏回答底部的时间 + if (_this.offsetHeight < 400) t.style.display = 'none'; _this.querySelector('.' + _class).insertAdjacentElement('beforeEnd', temp_time); } }