Greasy Fork

包图纯享版-Evelynal

删除多余功能按钮,送你一个干净的包图

目前为 2024-02-06 提交的版本。查看 最新版本

// ==UserScript==
// @name         包图纯享版-Evelynal
// @namespace    http://www.evelynal.top/Navigation/
// @version      0.2
// @description  删除多余功能按钮,送你一个干净的包图
// @author       Evelynal
// @match        https://ibaotu.com/*
// @match        https://ibaotu.com/tupian/*
// @icon            https://s.ibaotu.com/next/img/new/pwa-1.f50a.png
// @grant         none
// @require     http://libs.baidu.com/jquery/2.0.0/jquery.min.js
// @license      AGPL-3.0 license
// ==/UserScript==

(function () {
    'use strict';
    // Your code here...
    //删除顶栏
    //$(".ihead").remove();
    $(".pwa-wrap").remove();
    $(".ep").remove();
 //   $(".container").remove();
    $(".swiper-wrapper").remove();
    $(".swiper-prev").remove();
    $(".swiper-next").remove();
    $(".ibanner-text").remove();
    $(".main").remove();
    $(".sets").remove();
    $(".p-bottom-vip").remove();
    $(".head-list").remove();
    $(".head-vip").remove();
    $(".pb-aside-right").remove();
    $(".login-pop").remove();
    $(".b-header-menu-item-qyvip").remove();
    $(".bg-gray").remove();

    //删除新增广告

    $(".ibaotu-md-click").remove();
    $(".b-header-btn").remove();
    $(".ibaotu-md-click").remove();
    $(".b-header-btn, .btn-logo, .ibaotu-md-click, .btn-logo-gif, div-vip-qy-drop-down").remove();

    //删除登录要求
    $(".login-popbox-detail-new").remove();



    //修改margin-top
    const feedCards = $('.swiper-container');
    feedCards.css('margin-bottom', '600px');
    const aaa = $('.float-ibanner-search');
    aaa.css('width', '60vw')

    // 创建img
    var img = $('<img>');
    img.attr('src', 'https://s.ibaotu.com/next/img/new/btlogo2.9f48.png');

    // 设置img的css
    img.css({
        width: '200px',
        height: 'auto',
        'margin-top': '30vh',
        'margin-left':'45%',
        'margin-bottom':'-250px'
    });

    // 选择id为qt-app的div
    var $div = $('.ibanner');

    // 在div之前插入img
    $div.before(img);

})();