晋江文学城BBS清爽版本

白色主题,去广告,标记楼主;

  1. // ==UserScript==
  2. // @name 晋江文学城BBS清爽版本
  3. // @namespace bbs.jjwxc.net
  4. // @version 0.3
  5. // @description 白色主题,去广告,标记楼主;
  6. // @author chikango
  7. // @license chikango
  8. // @match https://bbs.jjwxc.net/*
  9. // @icon https://www.google.com/s2/favicons?domain=jjwxc.net
  10. // @grant none
  11. // @run-at document-idle
  12. // ==/UserScript==
  13. (document.head || document.documentElement).insertAdjacentHTML('beforeend',
  14. `<style>
  15. body{background-color:#ffffff!important;}
  16. .ad360_box,#imgurl,.width_800,.closeJJAd,.textbook {display:none}
  17. table{
  18. border-collapse:collapse;
  19. }
  20. #showmore_button {
  21. border:0!important;
  22. background-color:#f1f2f3!important;
  23.  
  24. }
  25. [class^=image]{
  26. opacity:0.5;
  27. }
  28. #selecthead td,.boardlist,tr{
  29. background-color:#ffffff;
  30. }
  31. </style>`);
  32.  
  33. (function() {
  34. 'use strict';
  35. document.querySelector("[border='2']")?document.querySelector("[border='2']").border = 0:'';
  36. let set = new Set();
  37. document.querySelectorAll('.authorname font:nth-child(3)').forEach((element)=>{
  38. set.add(element.innerText)
  39. })
  40. let opId = Array.from(set)[0];
  41. document.querySelectorAll('.authorname font:nth-child(3)').forEach((element)=>{
  42. if(element.innerText===opId){
  43. element.style.color = 'red';
  44. element.innerText = element.innerText + ' (楼主)';
  45. }
  46. })
  47.  
  48.  
  49.  
  50.  
  51.  
  52. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址