Poll Remover (RoyalRoad)

Hides the polls on royalroad posts

// ==UserScript==
// @name Poll Remover (RoyalRoad)
// @namespace http://ironbrain.io/
// @version 1.0
// @description Hides the polls on royalroad posts
// @author Lati
// @license GNU
// @grant GM_addStyle
// @run-at document-start
// @match http://royalroad.com/*
// @match https://royalroad.com/*
// @match http://*.royalroad.com/*
// @match https://*.royalroad.com/*
// ==/UserScript==

(function() {
let css = `
    .portlet-body .portlet:has(#poll) {
        display: none !important;
    }
`;

if (typeof GM_addStyle !== "undefined") {
  GM_addStyle(css);
} else {
  let styleNode = document.createElement("style");
  styleNode.appendChild(document.createTextNode(css));
  (document.querySelector("head") || document.documentElement).appendChild(styleNode);
}
})();