summaryrefslogblamecommitdiffstats
path: root/.config/qutebrowser/greasemonkey/glassdoor-css.js
blob: ad82b26dd408a1ab5ad64278bffacd3e04a87e80 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                             









                                                                                         
// ==UserScript==
// @name         glassdoor
// @match        https://*.glassdoor.com/*
// @grant        none
// ==/UserScript==

window.addEventListener('load', function () {
  window.onscroll = null;
})

window.addEventListener('load', function() {
  let functions = [
    () => document.getElementById("ContentWallHardsell").remove(),
    () => document.getElementsByTagName('body')[0].style.removeProperty("overflow"),
    () => document.addEventListener("scroll", event => event.stopPropagation(), true),
    () => document.addEventListener("mousemove", event => event.stopPropagation(), true),
  ];
  functions.forEach(f => f());
});
remember that computers suck.