您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
ふたクロ使用時連番の投稿Noを強調表示する
// ==UserScript== // @name zorome // @namespace https://www.2chan.net/ // @version 1.11 // @description ふたクロ使用時連番の投稿Noを強調表示する // @author toniste // @match http://*.2chan.net/b/res/* // @grant none // @require http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js // ==/UserScript== function renban(){ $(".no_quote").each(function(){ let idArray = $(this).html().slice(3).split(""); let id = ""; let counter = 0; for(let i = 1; i < idArray.length; i++){ if(idArray[idArray.length - i] == idArray[idArray.length - i - 1]){ counter = i; } else if(counter == 0){ break; } else { for(let j = 0; j < idArray.length - counter - 1; j++){ id = id + idArray[j]; } id = "No." + id + "<font color='red'>" for(let j = idArray.length - counter - 1; j < idArray.length; j++){ id = id + idArray[j]; } id = id + "</font>"; $(this).html(id); break; } } }); } (function() { renban(); })(); let refleshObserver = new MutationObserver(function(mutationRecords, _observer){ renban(); }); refleshObserver.observe($('body').get(0), {childList:true, subtree:true});
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址