Skip to content

Commit b42773b

Browse files
committed
修复 专栏页显示[区分问题文章]标签的问题(才发现有个单独的专栏页)
1 parent c277c2a commit b42773b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Zhihu-Enhanced.user.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name 知乎增强
3-
// @version 1.1.2
3+
// @version 1.1.3
44
// @author X.I.U
55
// @description 一键收起回答、置顶显示时间、区分问题文章
66
// @include *://www.zhihu.com/*
@@ -333,7 +333,10 @@ function addTypeTips() {
333333
collapsedAnswer(); // 一键收起回答
334334
setInterval(topTime_search, 300); // 置顶显示时间
335335
setInterval(addTypeTips, 1000); // 区分问题文章
336-
}else if(window.location.href.indexOf("zhuanlan") > -1){ // 专栏/文章 //
336+
}else if(window.location.href.indexOf("zhuanlan") > -1){ // 文章 //
337+
setInterval(topTime_zhuanlan, 300); // 置顶显示时间
338+
}else if(window.location.href.indexOf("column") > -1){ // 专栏 //
339+
collapsedAnswer(); // 一键收起回答
337340
setInterval(topTime_zhuanlan, 300); // 置顶显示时间
338341
}else if(window.location.href.indexOf("people") > -1 || window.location.href.indexOf("org") > -1){ // 用户主页 //
339342
collapsedAnswer(); // 一键收起回答

0 commit comments

Comments
 (0)