Last active
May 2, 2018 16:43
-
-
Save helton/50ee9d1553d9c3bc6654a42e5bd778f5 to your computer and use it in GitHub Desktop.
Remove forced login popups (Quora, Medium, LinkedIn)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
const dialogNode = document.querySelector('.overlay.overlay--lighter') | |
if (dialogNode) { | |
document.body.style.overflow = 'auto' | |
dialogNode.remove() | |
} | |
})() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
const dialogNode = document.querySelector('._DialogSignupForm.BaseSignupForm.vertical_alignment_wrapper') | |
if (dialogNode) { | |
document.body.style.overflow = 'auto' | |
document.querySelector('.modal_signup_background.new_web_signup_wall_design').style.background = '#fff' | |
document.querySelector('.signup_wall_prevent_scroll .ContentWrapper').style.filter = 'none' | |
document.querySelector('.signup_wall_prevent_scroll .SiteHeader').style.filter = 'none' | |
document.querySelector('.signup_wall_prevent_scroll .LoggedOutFooter').style.filter = 'none' | |
dialogNode.remove() | |
} | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment