COLA漫画去广告,防跳转

233

질문, 리뷰하거나, 이 스크립트를 신고하세요.
// ==UserScript==
// @name         COLA漫画去广告,防跳转
// @namespace    http://tampermonkey.net/
// @description  233
// @version      0.5.3
// @match        https://www.cocomanga.com/*
// @match        https://www.colamanhua.com/*
// @grant        none
// @run-at       document-start
// @license      MIT
// ==/UserScript==


(function() {
    'use strict';
    window.open = null
    let timer = setInterval(()=>{
      document.querySelectorAll('.website-pc-read-common')?.forEach(e => e.remove())
      document.querySelector('#HMRichBox')?.remove()
      document.querySelector("#HMimageright")?.remove()
      document.querySelector("#HMimageleft")?.remove()
      document.querySelector("#wrap-fixed")?.remove()
      document.querySelector("#fixeddataother + div")?.remove()
      document.querySelector("#HMcoupletDivleft")?.remove()
      document.querySelector("#HMcoupletDivright")?.remove()
      document.querySelector(".wrap-fixelist1")?.remove()
      document.querySelector("script[src='/logo/ad.js']+div").remove()
      document.querySelector('[src="/js/dyguosj/load.js"] + div').remove()

    },50)
    setTimeout(() => clearInterval(timer), 10000)
    // Your code here...
})();