Skip to content

Commit 6a9f71f

Browse files
committed
修复 [收起回答]按钮出现在[等你来答]页面的问题
1 parent 2f5a331 commit 6a9f71f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Zhihu-Enhanced.user.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name 知乎增强
3-
// @version 1.1.0
3+
// @version 1.1.1
44
// @author X.I.U
55
// @description 一键收起回答、置顶显示时间、区分问题文章
66
// @include *://www.zhihu.com/*
@@ -319,7 +319,9 @@ function addTypeTips() {
319319

320320
//每个页面对应的功能函数
321321
if(window.location.href.indexOf("question") > -1){ // 回答页
322-
collapsedAnswer(); // 一键收起回答
322+
if(window.location.href.indexOf("waiting") == -1){
323+
collapsedAnswer(); // 一键收起回答
324+
}
323325
setInterval(topTime_question, 300); // 置顶显示时间
324326
}else if(window.location.href.indexOf("search") > -1){ // 搜索结果页
325327
collapsedAnswer(); // 一键收起回答

0 commit comments

Comments
 (0)