Skip to content

Commit 3592496

Browse files
committed
优化 首页切换选项卡时功能代码
1 parent 6422a3f commit 3592496

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Zhihu-Enhanced.user.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// @name:zh-CN 知乎增强
44
// @name:zh-TW 知乎增強
55
// @name:en Zhihu enhancement
6-
// @version 2.0.3
6+
// @version 2.0.4
77
// @author X.I.U
88
// @description 移除登录弹窗、屏蔽首页视频、默认收起回答、快捷收起回答/评论(左键两侧)、快捷回到顶部(右键两侧)、屏蔽用户、屏蔽关键词、移除高亮链接、屏蔽盐选内容、净化搜索热门、净化标题消息、展开问题描述、显示问题作者、置顶显示时间、完整问题时间、区分问题文章、直达问题按钮、默认高清原图、默认站外直链
99
// @description:zh-TW 移除登錄彈窗、屏蔽首頁視頻、默認收起回答、快捷收起回答/評論、快捷回到頂部、屏蔽用戶、屏蔽關鍵詞、移除高亮鏈接、屏蔽鹽選內容、淨化搜索熱門、淨化標題消息、置頂顯示時間、完整問題時間、區分問題文章、默認高清原圖、默認站外直鏈...
@@ -1378,6 +1378,10 @@ function questionInvitation(){
13781378
blockUsers('question'); // 屏蔽指定用户
13791379
blockYanXuan(); // 屏蔽盐选内容
13801380
}, 300);
1381+
} else if (location.pathname == '/') {
1382+
blockUsers('index'); // 屏蔽指定用户
1383+
blockKeywords('index'); // 屏蔽指定关键词
1384+
blockType(); // 屏蔽指定类别(视频/文章等)
13811385
}
13821386
})
13831387

0 commit comments

Comments
 (0)