您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
白色主题,去广告,标记楼主;
// ==UserScript== // @name 晋江文学城BBS清爽版本 // @namespace bbs.jjwxc.net // @version 0.3 // @description 白色主题,去广告,标记楼主; // @author chikango // @license chikango // @match https://bbs.jjwxc.net/* // @icon https://www.google.com/s2/favicons?domain=jjwxc.net // @grant none // @run-at document-idle // ==/UserScript== (document.head || document.documentElement).insertAdjacentHTML('beforeend', `<style> body{background-color:#ffffff!important;} .ad360_box,#imgurl,.width_800,.closeJJAd,.textbook {display:none} table{ border-collapse:collapse; } #showmore_button { border:0!important; background-color:#f1f2f3!important; } [class^=image]{ opacity:0.5; } #selecthead td,.boardlist,tr{ background-color:#ffffff; } </style>`); (function() { 'use strict'; document.querySelector("[border='2']")?document.querySelector("[border='2']").border = 0:''; let set = new Set(); document.querySelectorAll('.authorname font:nth-child(3)').forEach((element)=>{ set.add(element.innerText) }) let opId = Array.from(set)[0]; document.querySelectorAll('.authorname font:nth-child(3)').forEach((element)=>{ if(element.innerText===opId){ element.style.color = 'red'; element.innerText = element.innerText + ' (楼主)'; } }) })();