Soul+Cleaner

清洁魂+首页

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Soul+Cleaner
// @name:en         Soul+Cleaner
// @name:zh         Soul+Cleaner
// @namespace    [email protected]
// @version      1.1.6
// @description  清洁魂+首页
// @description:en  Clean Soul+ HomePage
// @description:zh  清洁魂+首页
// @author       Xiccnd

// @license      GPL-3.0 License

// @match        *://*.white-plus.net/index.php
// @match        *://*.snow-plus.net/index.php
// @match        *://*.level-plus.net/index.php
// @match        *://*.east-plus.net/index.php
// @match        *://*.south-plus.net/index.php
// @match        *://*.north-plus.net/index.php
// @match        *://*.spring-plus.net/index.php
// @match        *://*.summer-plus.net/index.php
// @match        *://*.imoutolove.me/index.php
// @match        *://*.blue-plus.net/index.php

// @match        *://*.white-plus.net
// @match        *://*.snow-plus.net
// @match        *://*.level-plus.net
// @match        *://*.east-plus.net
// @match        *://*.south-plus.net
// @match        *://*.north-plus.net
// @match        *://*.spring-plus.net
// @match        *://*.summer-plus.net
// @match        *://*.imoutolove.me
// @match        *://*.blue-plus.net

// @require      https://code.jquery.com/jquery-3.6.0.min.js
// @icon         https://cdn.jsdelivr.net/gh/Xiccnd/Xiccnd-Pic@master/20220421113011992.1vh7zbll47r4.ico
// @grant        none
// ==/UserScript==

$(function () {

    'use strict';

    /*
    * 开关插件功能
    * */

    //开启清洁功能
    xiccndClean()

    //开启深度清洁功能
    //xiccndDeepClean()

    //一件打开常用版块
    xiccndOneClickOpen()

    /*
    * 清除功能
    * */
    function xiccndClean() {

        /*
        * 去除页头广告
        * */
        $('div#header div').eq(-2).remove()

        /*
        * 去除网页头部
        * */
        $('td.banner').remove()
        $('div.bdbA').remove()

        /*
        * 去除蜜柑计划
        * */
        $('div#t_123.t').remove()

        /*
        * 去除网页底部
        * */
        $('div#main>div.t_one').remove()
        $('div#main>div.t').remove()
        $('div#footer').remove()
    }

    /*
    * 深度清除功能
    * */
    function xiccndDeepClean() {
        //去除漫区特设
        $('div#t_39.t').remove()
        //去除人民囧府
        $('div#t_1.t').remove()
        //去除网赚资源区
        $('tr#fid_170.tr3.f_one').remove()
    }

    /*
    * 一件打开常用版块
    * */
    function xiccndOneClickOpen() {
        //生成一键打开按钮元素
        const BUTTON = "<button id='one_click' style='cursor: pointer; margin-left: 10px;'>一键打开</button>"

        //判断一键打开按钮元素是否存在
        if ($('button#one_click').size > 0) {
            console.log('一键打开按钮已存在')
        } else {
            //添加div
            $('div#t_7.t>table>tbody h2').append(BUTTON)
        }

        //按钮点击事件
        $('button#one_click').on('click', function () {
            window.location.href = "u.php"
            window.open('thread_new.php?fid-48.html')
            window.open('thread_new.php?fid-128.html')
            window.open('thread_new.php?fid-9.html')
        })
    }
})