风之动漫去广告+优化

给风之动漫去广告+优化,主要是我自己看海贼王用的

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         风之动漫去广告+优化
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  给风之动漫去广告+优化,主要是我自己看海贼王用的
// @author       WindErosion
// @match        https://manhua.fffdm.com/*
// @match        https://www.fffdm.com/
// @require      https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js
// @icon         https://s3.bmp.ovh/imgs/2021/11/936852f503b6fd78.png
// @grant        none
// ==/UserScript==

let loca1 = RegExp("https://manhua.fffdm.com/*");
let loca2 = RegExp("https://www.fffdm.com/");
(function() {
    'use strict';

    if(loca1.test(location.href) || loca2.test(location.href)){
        document.head.insertAdjacentHTML('beforeend','<style>#HMRichBox,#pop_ad,#HMCOVER_ID1{display:none !important;}</style>');
        document.head.insertAdjacentHTML('beforeend','<style>#fix_top_dom{display:none !important;}</style>');
        document.head.insertAdjacentHTML('beforeend','<style>#HMimageleft,#HMimageright{display:none !important;}</style>');
        //document.head.insertAdjacentHTML('beforeend','<style>.pure-g{display:none !important;}</style>');
        document.head.insertAdjacentHTML('beforeend','<style>center{display:none !important;}</style>');
        document.head.insertAdjacentHTML('beforeend','<style>.mdc-snackbar__surface{display:none !important;}</style>');
        //$("#mdc-snackbar").hidden();
        document.head.insertAdjacentHTML('beforeend','<style>#header{position:relative !important;}</style>');
    }
})();