隐藏PT站大横幅

将几个PT站的大块banner隐藏或替换为小logo

// ==UserScript==
// @name         隐藏PT站大横幅
// @description  将几个PT站的大块banner隐藏或替换为小logo
// @version      0.1.2
// @license      MIT
// @match        https://人人人/*php*
// @match        https://不可说/*php*
// @match        https://教育站/*php*
// @match        https://leaves.red/*php*
// @match        https://open.cd/*php*
// @require      https://code.jquery.com/jquery-3.6.0.min.js
// @namespace https://greasyfork.org/users/1270887
// ==/UserScript==

(function () {
    'use strict';
    /* eslint-env jquery */
    
    if (window.location.href.startsWith("https://人人人/")) {
    jQuery(".head").empty().append('<img src="https://人人人/pic/logos.png" alt="Replacement Image" width="300" height="81" style="margin-left: 30px; margin-top: 10px;">');
    }
    jQuery("div.banner-header:first").insertAfter("div.banner-header:last");
    jQuery("#header .logo_img img")
    .attr("src", "https://教育站/assets/logo/logo_1x.png")
    .css({
        "max-width": "181px",
        "max-height": "37px",
        "margin-left": "20px",
        "margin-top": "15px"
    });
    jQuery(".logo_img").css("box-shadow", "none");
    jQuery("div.leaves-helper").css('height', 0).hide();
    jQuery("td.clear table").css("background-color", "transparent");
    jQuery("td.clear td").css({
        "border-right": "none",
        "border-top": "none",
        "border-left": "none",
        "border-bottom": "none"
    });
})();