mfluehr / Clean Up Stack Exchange

// ==UserScript==
// @namespace     https://openuserjs.org/users/mfluehr
// @name          Clean Up Stack Exchange
// @description   Hide hot network questions on Stack Exchange sites.
// @license       MIT
// @version       1.0.3
// @match         *://stackoverflow.com/*
// @match         *://serverfault.com/*
// @match         *://superuser.com/*
// @match         *://askubuntu.com/*
// @match         *://*.stackexchange.com/*
// @run-at        document-start
// @grant         none
// ==/UserScript==

// ==OpenUserJS==
// @author mfluehr
// ==/OpenUserJS==

const styles = `
  .s-sidebarwidget,
  .js-sidebar-zone,
  #hireme,
  #hot-network-questions {
		display: none;
  }
`;

const styleSheet = document.createElement('style');
styleSheet.type = 'text/css';
styleSheet.innerText = styles;

document.addEventListener("DOMContentLoaded", e => {
  document.head.appendChild(styleSheet);
});