// ==UserScript== // @name 【聊天室反引用刷屏(用户样式版)】 // @namespace http://tampermonkey.net/ // @version 0.3 // @description 在hackchat聊天室、十字街聊天室、XChat(圈聊)聊天室增大引用块宽度,防止markdown生成的blockquote标签大量堆叠后产生刷屏现象。存在副作用,会一定程度上破坏引用块的外观。 // @author firetree // @license WTFPL // @grant GM_addStyle // @run-at document-start // @match *://*.hack.chat/* // @match *://*.crosst.chat/* // @match *://*.xq.kzw.ink/* // @match *://*.tanchat.fun/* // @downloadURL none // ==/UserScript== (function() { let css = ` blockquote { padding: 2px 2px;margin: 0px; } `; 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); } })();