I've adopted - and am very grateful for - Pikamander2's solution. My version now looks like this.
(Update: in Firefox 64, I've had to add the @require
statement to include jQuery, and the @match
/@exclude
statements no longer work - I have to configure that from within the GreaseMonkey menu instead.)
// ==UserScript==
// @name Hide Hot Network Questions
// @version Hide4
// Hot@grant Network Questions none
// @namespace@require GreaseMonkeyStackOverflow https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js
// @description@match Hides certain Hot Network Questions on Stack*://*.askubuntu.com/*
// Overflow@match *://*.mathoverflow.net/*
// @include@match https *://*.serverfault.com/*
// @match *://*.stackapps.com/*
// @match *://*.stackexchange.com/*
// @include@match https *://*.stackoverflow.com/*
// @include@match https *://*.superuser.com/*
// @include@exclude https*://serverfaultapi.stackexchange.com/*
// @include@exclude https*://mathoverflowblog.*.com/*
// @include@exclude https*://chat.*.com/*
// @version@exclude 2*://data.stackexchange.com/*
// @grant@exclude *://elections.stackexchange.com/*
// @exclude none *://openid.stackexchange.com/*
// @exclude *://stackexchange.com/*
// see httpshttp://meta.stackexchange.com/questions/225297/filter-hot-network-questions-by-excluding-sites
// and http://stackoverflow.com/questions/29682724/why-does-my-greasemonkey-jquery-script-that-hides-the-sidebar-work-on-stack-exch
// ==/UserScript==
//console.log("filtering hot network questions ...");
$.each([
"astronomy",
"aviation",
"codegolf",
"electronics",
"gaming",
"judaism",
"movies",
"photo",
"puzzling",
"rpg",
"scifi",
"movies"] "space",
"tridion",
"worldbuilding",
"writing"
], function(i, sitename)
{
//console.log("excluding " + sitename);
$(".favicon-" + sitename).parent().css('visibility', 'hidden');
$(".favicon-" + sitename).parent().css('height', '0');
})