mirror of
https://github.com/XIU2/UserScript.git
synced 2026-09-22 15:06:57 +00:00
修复 [移除登录弹窗] 功能误伤评论区 [查看回复] 的问题
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// ==UserScript==
|
||||
// @name 知乎增强
|
||||
// @version 1.1.9
|
||||
// @version 1.2.0
|
||||
// @author X.I.U
|
||||
// @description 移除登录弹窗、一键收起回答、置顶显示时间、区分问题文章、默认高清原图、默认站外直链、默认折叠邀请
|
||||
// @match *://www.zhihu.com/*
|
||||
@@ -378,7 +378,9 @@ function addTypeTips() {
|
||||
function removeLogin() {
|
||||
let removeLoginModal = e => {
|
||||
if (e.target.getElementsByClassName('Modal-wrapper').length > 0) {
|
||||
e.target.getElementsByClassName('Modal-wrapper')[0].remove();
|
||||
if (e.target.getElementsByClassName('Modal-wrapper')[0].querySelector('.signFlowModal')){
|
||||
e.target.getElementsByClassName('Modal-wrapper')[0].remove();
|
||||
}
|
||||
setTimeout(() => {document.documentElement.style.overflowY = 'scroll';}, 0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user