Skip to main content
update for Firefox 64
Source Link

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');
})

I've adopted - and am very grateful for - Pikamander2's solution. My version looks like this:

// ==UserScript==
// @name        Hide Hot Network Questions
// @namespace   GreaseMonkeyStackOverflow
// @description Hides certain Hot Network Questions on Stack Overflow
// @include     https://*.stackexchange.com/*
// @include     https://stackoverflow.com/*
// @include     https://superuser.com/*
// @include     https://serverfault.com/*
// @include     https://mathoverflow.com/*
// @include     https://*/*
// @version     2
// @grant       none
// see https://meta.stackexchange.com/questions/225297/filter-hot-network-questions-by-excluding-sites
// ==/UserScript==
$.each([ "gaming", "scifi", "movies"], function(i, sitename)
{
  $(".favicon-" + sitename).parent().css('visibility', 'hidden');
  $(".favicon-" + sitename).parent().css('height', '0');
})

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     4
// @grant       none
// @require     https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js
// @match       *://*.askubuntu.com/*
// @match       *://*.mathoverflow.net/*
// @match       *://*.serverfault.com/*
// @match       *://*.stackapps.com/*
// @match       *://*.stackexchange.com/*
// @match       *://*.stackoverflow.com/*
// @match       *://*.superuser.com/*
// @exclude     *://api.stackexchange.com/*
// @exclude     *://blog.*.com/*
// @exclude     *://chat.*.com/*
// @exclude     *://data.stackexchange.com/*
// @exclude     *://elections.stackexchange.com/*
// @exclude     *://openid.stackexchange.com/*
// @exclude     *://stackexchange.com/*
// see http://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", 
  "space",
  "tridion",
  "worldbuilding",
  "writing"
], function(i, sitename)
{
  //console.log("excluding " + sitename);
  $(".favicon-" + sitename).parent().css('visibility', 'hidden');
  $(".favicon-" + sitename).parent().css('height', '0');
})
http -> https
Source Link

I've adopted - and am very grateful for - Pikamander2's solution. My version looks like this:

// ==UserScript==
// @name        Hide Hot Network Questions
// @namespace   GreaseMonkeyStackOverflow
// @description Hides certain Hot Network Questions on Stack Overflow
// @include     httphttps://*.stackexchange.com/*
// @include     httphttps://stackoverflow.com/*
// @include     httphttps://superuser.com/*
// @include     httphttps://serverfault.com/*
// @include     httphttps://mathoverflow.com/*
// @include     httphttps://*/*
// @version     2
// @grant       none
// see https://meta.stackexchange.com/questions/225297/filter-hot-network-questions-by-excluding-sites
// ==/UserScript==
$.each([ "gaming", "scifi", "movies"], function(i, sitename)
{
  $(".favicon-" + sitename).parent().css('visibility', 'hidden');
  $(".favicon-" + sitename).parent().css('height', '0');
})

I've adopted - and am very grateful for - Pikamander2's solution. My version looks like this:

// ==UserScript==
// @name        Hide Hot Network Questions
// @namespace   GreaseMonkeyStackOverflow
// @description Hides certain Hot Network Questions on Stack Overflow
// @include     http://*.stackexchange.com/*
// @include     http://stackoverflow.com/*
// @include     http://superuser.com/*
// @include     http://serverfault.com/*
// @include     http://mathoverflow.com/*
// @include     http://*/*
// @version     2
// @grant       none
// see https://meta.stackexchange.com/questions/225297/filter-hot-network-questions-by-excluding-sites
// ==/UserScript==
$.each([ "gaming", "scifi", "movies"], function(i, sitename)
{
  $(".favicon-" + sitename).parent().css('visibility', 'hidden');
  $(".favicon-" + sitename).parent().css('height', '0');
})

I've adopted - and am very grateful for - Pikamander2's solution. My version looks like this:

// ==UserScript==
// @name        Hide Hot Network Questions
// @namespace   GreaseMonkeyStackOverflow
// @description Hides certain Hot Network Questions on Stack Overflow
// @include     https://*.stackexchange.com/*
// @include     https://stackoverflow.com/*
// @include     https://superuser.com/*
// @include     https://serverfault.com/*
// @include     https://mathoverflow.com/*
// @include     https://*/*
// @version     2
// @grant       none
// see https://meta.stackexchange.com/questions/225297/filter-hot-network-questions-by-excluding-sites
// ==/UserScript==
$.each([ "gaming", "scifi", "movies"], function(i, sitename)
{
  $(".favicon-" + sitename).parent().css('visibility', 'hidden');
  $(".favicon-" + sitename).parent().css('height', '0');
})
replaced http://meta.stackexchange.com/ with https://meta.stackexchange.com/
Source Link

I've adopted - and am very grateful for - Pikamander2's solutionPikamander2's solution. My version looks like this:

// ==UserScript==
// @name        Hide Hot Network Questions
// @namespace   GreaseMonkeyStackOverflow
// @description Hides certain Hot Network Questions on Stack Overflow
// @include     http://*.stackexchange.com/*
// @include     http://stackoverflow.com/*
// @include     http://superuser.com/*
// @include     http://serverfault.com/*
// @include     http://mathoverflow.com/*
// @include     http://*/*
// @version     2
// @grant       none
// see httphttps://meta.stackexchange.com/questions/225297/filter-hot-network-questions-by-excluding-sites
// ==/UserScript==
$.each([ "gaming", "scifi", "movies"], function(i, sitename)
{
  $(".favicon-" + sitename).parent().css('visibility', 'hidden');
  $(".favicon-" + sitename).parent().css('height', '0');
})

I've adopted - and am very grateful for - Pikamander2's solution. My version looks like this:

// ==UserScript==
// @name        Hide Hot Network Questions
// @namespace   GreaseMonkeyStackOverflow
// @description Hides certain Hot Network Questions on Stack Overflow
// @include     http://*.stackexchange.com/*
// @include     http://stackoverflow.com/*
// @include     http://superuser.com/*
// @include     http://serverfault.com/*
// @include     http://mathoverflow.com/*
// @include     http://*/*
// @version     2
// @grant       none
// see http://meta.stackexchange.com/questions/225297/filter-hot-network-questions-by-excluding-sites
// ==/UserScript==
$.each([ "gaming", "scifi", "movies"], function(i, sitename)
{
  $(".favicon-" + sitename).parent().css('visibility', 'hidden');
  $(".favicon-" + sitename).parent().css('height', '0');
})

I've adopted - and am very grateful for - Pikamander2's solution. My version looks like this:

// ==UserScript==
// @name        Hide Hot Network Questions
// @namespace   GreaseMonkeyStackOverflow
// @description Hides certain Hot Network Questions on Stack Overflow
// @include     http://*.stackexchange.com/*
// @include     http://stackoverflow.com/*
// @include     http://superuser.com/*
// @include     http://serverfault.com/*
// @include     http://mathoverflow.com/*
// @include     http://*/*
// @version     2
// @grant       none
// see https://meta.stackexchange.com/questions/225297/filter-hot-network-questions-by-excluding-sites
// ==/UserScript==
$.each([ "gaming", "scifi", "movies"], function(i, sitename)
{
  $(".favicon-" + sitename).parent().css('visibility', 'hidden');
  $(".favicon-" + sitename).parent().css('height', '0');
})
added 49 characters in body
Source Link
Shadow Wizard
  • 174.9k
  • 33
  • 437
  • 863
Loading
Source Link
Loading