stib / stackexchange hide annoying questions

// ==UserScript==
// @name            stackexchange hide annoying questions
// @license MIT
// @copyright 2019, stib (https://openuserjs.org/users/stib)
// @description     Hide the inane scifi and fantasy questions
// @version         2019-08-31
// @namespace       pureandapplied
// @author          stib
// @license         MIT
// @copyright       2019, stib (https://openuserjs.org/users/stib)
// @include         http*://stackoverflow.com/*
// @include         http*://serverfault.com/*
// @include         http*://superuser.com/*
// @include         http*://askubuntu.com/*
// @include         http*://*.stackexchange.com/*
// @include         http*://*.stackoverflow.com/*

// @grant           none
// @run-at document-idle

// ==/UserScript==
var hideList = ['rpg', 'scifi', 'worldbuilding', 'movies', 'gaming', 'anime', 'bricks', 'boardgames'];

function toggle_visibility(site) {
  var el = document.querySelectorAll("a[href^='https://" + site + ".stackexchange.com']");
  if (el) {
    for (var i = 0; i < el.length; i++) {
      el[i].parentElement.style.display = 'none';
      console.log("hid: " + el[i].parentElement.innerText);
    }
  }
}

for (var site in hideList) {
  toggle_visibility(hideList[site]);
}