SergejVolkov / Shiki Character Topic Block

// ==UserScript==
// @name         Shiki Character Topic Block
// @namespace    http://shikimori.one/
// @version      1.1
// @description  Hides character topics from forum feed page
// @author       SergejVolkov
// @match        http://shikimori.me/*
// @match        https://shikimori.me/*
// @license      MIT
// @grant        none
// ==/UserScript==


function HideCharacter() {
  document.querySelectorAll(
    '.b-forum.b-search-results > article.b-topic[data-url$="-character-thread"]'
  ).forEach(
    function(el) {
      el.style.display = "none";
      return;
    });
}

document.addEventListener('page:load', HideCharacter);
document.addEventListener('turbolinks:load', HideCharacter);

const resizeObserver = new ResizeObserver(HideCharacter());
resizeObserver.observe(document.body);