JMTT

禁漫天堂

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

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