您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
enable umineko colored truths on 4chan
当前为
// ==UserScript== // @name 4chan umineko colored truths // @description enable umineko colored truths on 4chan // @version 2 // @grant none // @include *//boards.4chan.org/* // @include *//boards.4channel.org/* // @namespace https://gf.qytechs.cn/users/141341 // ==/UserScript== function process() { posts=document.getElementsByClassName('postMessage'); for (var post of posts) { post.innerHTML = post.innerHTML.replaceAll(/\[red\](.*)\[\/red\]/g, '<span style="color:red;font-weight:bold">$1</span>'); post.innerHTML = post.innerHTML.replaceAll(/\[blue\](.*)\[\/blue\]/g, '<span style="color:blue;font-weight:bold">$1</span>'); post.innerHTML = post.innerHTML.replaceAll(/\[purple\](.*)\[\/purple\]/g, '<span style="color:purple;font-weight:bold">$1</span>'); post.innerHTML = post.innerHTML.replaceAll(/\[gold\](.*)\[\/gold\]/g, '<span style="color:gold;font-weight:bold">$1</span>'); } } process(); document.addEventListener('4chanXInitFinished', function(e) { process(); }); document.addEventListener('ThreadUpdate', function(e) { process(); });
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址