Skip to content

Instantly share code, notes, and snippets.

@peey
Last active July 11, 2020 06:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peey/57693cd5e7a35aee30bb3644bce78159 to your computer and use it in GitHub Desktop.
Save peey/57693cd5e7a35aee30bb3644bce78159 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Hide Hot Network Questions and Hot Meta Posts
// @namespace http://CHANGE.TO.YOUR.WEBPAGE
// @version 0.2
// @description Hide Hot-Network-Questions in StackExchange sites
// @match *://*.stackexchange.com/*
// @match *://*.stackoverflow.com/*
// @match *://*.superuser.com/*
// @match *://*.serverfault.com/*
// @match *://*.askubuntu.com/*
// @match *://*.stackapps.com/*
// @match *://*.mathoverflow.net/*
// @exclude *://chat.stackexchange.com/*
// @exclude *://chat.meta.stackexchange.com/*
// @exclude *://chat.stackoverflow.com/*
// ==/UserScript==
// thanks to https://meta.stackexchange.com/a/224430/
(function () {
var bar = document.getElementById('hot-network-questions');
if (bar) bar.style.display="none";
bar = document.querySelector('.s-sidebarwidget:first-child');
if (bar) bar.style.display="none";
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment