JMTT

禁漫天堂

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(У мене вже є менеджер скриптів, дайте мені встановити його!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         JMTT
// @namespace    http://tampermonkey.net/
// @version      1.0.1
// @description  禁漫天堂
// @author       You
// @include      /^http(s)://18-comic-minions.club
// @include      /^http(s)://18-comic-minions.club/photo/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=1.123
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';

    setTimeout(() => {
    const banners1 = document.querySelectorAll('.div-bf-pv');
    if (banners1.length) {
        for (let i = 0; i < banners1.length; i++) {
            banners1[i].style.display = 'none';
        }
    }

    // 首页banner
    const banners2 = document.querySelectorAll('.photo_center_div');
    if(banners2.length) {
        for (let i = 0; i < banners2.length; i++) {
            banners2[i].style.display = 'none';
        }
    }

    // 漂浮层
    const op = document.querySelectorAll('.ts-im-container');
    if(op.length) {
        for (let i = 0; i < op.length; i++) {
            op[i].style.display = 'none';
        }
    }

    // 漂浮层
    const abs = document.querySelectorAll('.hidden-lg');
    if(abs.length) {
        for (let i = 0; i < abs.length; i++) {
            if(abs[i].classList.length === 1) {
                abs[i].style.display = 'none';
            }
        }
    }
}, 1000)
})();