File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 ) {
You can’t perform that action at this time.
0 commit comments