Skip to content

Commit c79b87c

Browse files
committed
解决 屏蔽视频后,因首页信息流太少而没有滚动条,导致无法加载更多内容的问题
1 parent eebb19f commit c79b87c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Zhihu-Enhanced.user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1577,7 +1577,7 @@ function questionInvitation(){
15771577
blockKeywords('index'); // 屏蔽指定关键词
15781578
blockType(); // 屏蔽指定类别(视频/文章等)
15791579
// 解决屏蔽视频后,因为首页信息流太少而没有滚动条导致无法加载更多内容的问题
1580-
document.lastElementChild.appendChild(document.createElement('style')).textContent = '.Topstory-container{min-height: 1500px;}';
1580+
if (menu_value('menu_blockTypeVideo')) document.lastElementChild.appendChild(document.createElement('style')).textContent = '.Topstory-container{min-height: 1500px;}';
15811581
}
15821582
}
15831583
})();

0 commit comments

Comments
 (0)