mirror of
https://github.com/XIU2/UserScript.git
synced 2026-09-22 15:06:57 +00:00
优化 [移除登录弹窗] 功能
This commit is contained in:
@@ -359,7 +359,7 @@ function addEventListener_DOMNodeInserted() {
|
||||
// 知乎免登录,修改自:https://greasyfork.org/zh-CN/scripts/417126
|
||||
let removeLoginModal = e => {
|
||||
if (e.target.innerHTML && e.target.getElementsByClassName('Modal-wrapper').length > 0) {
|
||||
let button = e.target.getElementsByClassName('Modal-wrapper')[0].getElementsByClassName('Button Modal-closeButton Button--plain')[0];
|
||||
let button = e.target.getElementsByClassName('Button Modal-closeButton Button--plain')[0];
|
||||
if (button)button.click();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user