Soul+Cleaner

清洁魂+首页

  1. // ==UserScript==
  2. // @name Soul+Cleaner
  3. // @name:en Soul+Cleaner
  4. // @name:zh Soul+Cleaner
  5. // @namespace Xiccnd@qq.com
  6. // @version 1.1.6
  7. // @description 清洁魂+首页
  8. // @description:en Clean Soul+ HomePage
  9. // @description:zh 清洁魂+首页
  10. // @author Xiccnd
  11.  
  12. // @license GPL-3.0 License
  13.  
  14. // @match *://*.white-plus.net/index.php
  15. // @match *://*.snow-plus.net/index.php
  16. // @match *://*.level-plus.net/index.php
  17. // @match *://*.east-plus.net/index.php
  18. // @match *://*.south-plus.net/index.php
  19. // @match *://*.north-plus.net/index.php
  20. // @match *://*.spring-plus.net/index.php
  21. // @match *://*.summer-plus.net/index.php
  22. // @match *://*.imoutolove.me/index.php
  23. // @match *://*.blue-plus.net/index.php
  24.  
  25. // @match *://*.white-plus.net
  26. // @match *://*.snow-plus.net
  27. // @match *://*.level-plus.net
  28. // @match *://*.east-plus.net
  29. // @match *://*.south-plus.net
  30. // @match *://*.north-plus.net
  31. // @match *://*.spring-plus.net
  32. // @match *://*.summer-plus.net
  33. // @match *://*.imoutolove.me
  34. // @match *://*.blue-plus.net
  35.  
  36. // @require https://code.jquery.com/jquery-3.6.0.min.js
  37. // @icon https://cdn.jsdelivr.net/gh/Xiccnd/Xiccnd-Pic@master/20220421113011992.1vh7zbll47r4.ico
  38. // @grant none
  39. // ==/UserScript==
  40.  
  41. $(function () {
  42.  
  43. 'use strict';
  44.  
  45. /*
  46. * 开关插件功能
  47. * */
  48.  
  49. //开启清洁功能
  50. xiccndClean()
  51.  
  52. //开启深度清洁功能
  53. //xiccndDeepClean()
  54.  
  55. //一件打开常用版块
  56. xiccndOneClickOpen()
  57.  
  58. /*
  59. * 清除功能
  60. * */
  61. function xiccndClean() {
  62.  
  63. /*
  64. * 去除页头广告
  65. * */
  66. $('div#header div').eq(-2).remove()
  67.  
  68. /*
  69. * 去除网页头部
  70. * */
  71. $('td.banner').remove()
  72. $('div.bdbA').remove()
  73.  
  74. /*
  75. * 去除蜜柑计划
  76. * */
  77. $('div#t_123.t').remove()
  78.  
  79. /*
  80. * 去除网页底部
  81. * */
  82. $('div#main>div.t_one').remove()
  83. $('div#main>div.t').remove()
  84. $('div#footer').remove()
  85. }
  86.  
  87. /*
  88. * 深度清除功能
  89. * */
  90. function xiccndDeepClean() {
  91. //去除漫区特设
  92. $('div#t_39.t').remove()
  93. //去除人民囧府
  94. $('div#t_1.t').remove()
  95. //去除网赚资源区
  96. $('tr#fid_170.tr3.f_one').remove()
  97. }
  98.  
  99. /*
  100. * 一件打开常用版块
  101. * */
  102. function xiccndOneClickOpen() {
  103. //生成一键打开按钮元素
  104. const BUTTON = "<button id='one_click' style='cursor: pointer; margin-left: 10px;'>一键打开</button>"
  105.  
  106. //判断一键打开按钮元素是否存在
  107. if ($('button#one_click').size > 0) {
  108. console.log('一键打开按钮已存在')
  109. } else {
  110. //添加div
  111. $('div#t_7.t>table>tbody h2').append(BUTTON)
  112. }
  113.  
  114. //按钮点击事件
  115. $('button#one_click').on('click', function () {
  116. window.location.href = "u.php"
  117. window.open('thread_new.php?fid-48.html')
  118. window.open('thread_new.php?fid-128.html')
  119. window.open('thread_new.php?fid-9.html')
  120. })
  121. }
  122. })