Skip to content

Commit 51ea58e

Browse files
committed
优化 代码
1 parent 624e226 commit 51ea58e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Zhihu-Enhanced.user.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name 知乎增强
3-
// @version 1.6.5
3+
// @version 1.6.6
44
// @author X.I.U
55
// @description 移除登录弹窗、默认收起回答、一键收起回答、收起当前回答/评论(点击两侧空白处)、快捷回到顶部(右键两侧空白处)、屏蔽用户 (发布的内容)、屏蔽关键词(标题/评论)、屏蔽盐选内容、展开问题描述、置顶显示时间、完整问题时间、区分问题文章、直达问题按钮、默认高清原图、默认站外直链
66
// @match *://www.zhihu.com/*
@@ -1329,9 +1329,9 @@ function questionInvitation(){
13291329
}
13301330

13311331
function start(){
1332-
collapsedAnswer(); // 一键收起回答
1332+
if (location.hostname != 'zhuanlan.zhihu.com') collapsedAnswer(); // 一键收起回答
1333+
if (location.hostname != 'zhuanlan.zhihu.com') questionInvitation(); //默认折叠邀请
13331334
closeFloatingComments(); // 快捷关闭悬浮评论(监听点击事件,点击网页两侧空白处)
1334-
questionInvitation(); // 默认折叠邀请
13351335
blockKeywords('comment'); // 屏蔽指定关键词(评论)
13361336
if (location.pathname.indexOf('question') > -1) { // 回答页 //
13371337
if (location.pathname.indexOf('waiting') == -1) {

0 commit comments

Comments
 (0)