Skip to content

Instantly share code, notes, and snippets.

@rszamszur
Forked from se79419ed/glassdoor.txt
Last active February 2, 2023 04:09
Show Gist options
  • Save rszamszur/1d4cd601d5e04609717d08573bcfd572 to your computer and use it in GitHub Desktop.
Save rszamszur/1d4cd601d5e04609717d08573bcfd572 to your computer and use it in GitHub Desktop.
remove hardsell overlay from glassdoor.com
// 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