您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hides quotes deeper than 3 quotes in posts
// ==UserScript== // @name Wanikani Forums: Deep Quote Hider // @namespace http://tampermonkey.net/ // @version 1.0.1 // @description Hides quotes deeper than 3 quotes in posts // @author Kumirei // @match https://community.wanikani.com/t/* // @grant none // ==/UserScript== ;(function () { const depth = 3 // Visible quotes document.getElementsByTagName('head')[0].insertAdjacentHTML( 'beforeend', `<style id="DQH"> ${'blockquote '.repeat(depth + 1)}, ${'blockquote '.repeat(depth)} .quote { display: none; } ${'blockquote '.repeat(depth - 1)} > blockquote::before, ${'.quote '.repeat(depth)} > blockquote::before { content: 'DEEPER QUOTES HIDDEN'; font-weight: bold; font-size: 18px; display: block; } ${'blockquote '.repeat(depth)} { text-align: center; } ${'blockquote '.repeat(depth)} > * { text-align: left; } </style> `, ) })()