您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
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); } })();