-
-
Save rszamszur/1d4cd601d5e04609717d08573bcfd572 to your computer and use it in GitHub Desktop.
remove hardsell overlay from glassdoor.com
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
// By the time you will be using this, there is a high probability that glassdoor will change selectors | |
// or even implementation of hardsell overlay. | |
// Usage: Copy and paste in console, or use some extension to do it for you, for example: | |
// https://chrome.google.com/webstore/detail/user-javascript-and-css/nbhcbdghjpllgmfilhnhkllmkecfmpld?hl=en | |
function remove(){ | |
document.getElementById('ContentWallHardsell').remove(); | |
document.getElementsByTagName("body")[0].style.overflow = "scroll"; | |
let style = document.createElement('style'); | |
style.innerHTML = ` | |
#LoginModal { | |
display: none!important; | |
} | |
`; | |
document.head.appendChild(style); | |
window.addEventListener("scroll", function (event) { | |
event.stopPropagation(); | |
}, true); | |
}; | |
remove(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment