JMTT

禁漫天堂

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==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)
})();