// ==UserScript== // @name [Youtube] 去他妈的评论区 // @namespace ckylin-style-deletefuckingcomments-ytb // @version 1.0.0 // @description 移除网页版Youtube的评论区 // @author CKylinMC // @license WTFPL // @grant GM_addStyle // @run-at document-start // @match *://*.youtube.com/* // @downloadURL none // ==/UserScript== (function() { let css = ` ytd-comments#comments{ display:none; } `; if (typeof GM_addStyle !== "undefined") { GM_addStyle(css); } else { const styleNode = document.createElement("style"); styleNode.appendChild(document.createTextNode(css)); (document.querySelector("head") || document.documentElement).appendChild(styleNode); } })();