Cold Network Questions

Hides the Hot Network Questions sidebar on Stack Exchange and Stack Overflow; it's just so distracting!

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(У мене вже є менеджер скриптів, дайте мені встановити його!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        Cold Network Questions
// @namespace   kunaifirestuff
// @description Hides the Hot Network Questions sidebar on Stack Exchange and Stack Overflow; it's just so distracting!
// @include     *
// @version     4
// @grant       none
// ==/UserScript==

// If the document contains an element with the id "hot-network-questions",
// and this element has a child which has a child which is a link
// the url of which contains "stackoverflow.com", then we are sure this
// is a stackexchange site.
// Is it too redundant? Probably.

var hot = document.getElementById("hot-network-questions");
var isItStackexchange = false;

Loopy:
for(var i = 0; i < hot.children.length; i++){
  if(hot.children[i].children.length > 0 && hot.children[i].children[0].tagName == "A"){
    if(hot.children[i].children[0].href.indexOf("stackexchange.com") > -1){
      isItStackexchange = true;
      break Loopy;
    }
  }
}

if(isItStackexchange){
  hot.outerHTML = "";
}