Greasy Fork

Greasy Fork is available in English.

清爽奈菲

去除 奈菲影视 的广告 (我本身是不排斥清爽的广告的 但是该网站TG群的 "沁沁" 管理员说了点不太好听的)

目前为 2020-04-27 提交的版本,查看 最新版本

// ==UserScript==
// @name         清爽奈菲
// @namespace    https://borber.cn
// @version      0.0.2
// @description  去除 奈菲影视 的广告 (我本身是不排斥清爽的广告的 但是该网站TG群的 "沁沁" 管理员说了点不太好听的)
// @author       Borber
// @match        https://www.nfmovies.com/*
// @grant        none
// ==/UserScript==
(function() {
    'use strict';

    // Your code here...
    document.getElementById("adleft").style.cssText = 'position:fixed; top:-300px; right:5px;';
    document.getElementById("adright").style.cssText = 'position:fixed; top:-300px; right:5px;';
    if (window.location.href.endsWith("nfmovies.com/") || window.location.href.endsWith("nfmovies.com")){
        if(document.querySelector("body > div:nth-child(5) > div > div > div > a > img")){
            document.querySelector("body > div:nth-child(5) > div > div > div > a > img").style.cssText = 'position:fixed; top:-300px; right:5px;';
        }
        if(document.querySelector("body > div:nth-child(6) > div > div > div > a > img")){
            document.querySelector("body > div:nth-child(6) > div > div > div > a > img").style.cssText = 'position:fixed; top:-300px; right:5px;';
        }if(document.querySelector("body > div:nth-child(7) > div > div > div > a > img")){
            document.querySelector("body > div:nth-child(7) > div > div > div > a > img").style.cssText = 'position:fixed; top:-300px; right:5px;';
        }
    }else {
        if(document.querySelector("body > div:nth-child(4) > div > div > div > a > img")){
            document.querySelector("body > div:nth-child(4) > div > div > div > a > img").style.cssText = 'position:fixed; top:-300px; right:5px;';
        }if(document.querySelector("body > div:nth-child(5) > div > div > div > a > img")){
            document.querySelector("body > div:nth-child(5) > div > div > div > a > img").style.cssText = 'position:fixed; top:-300px; right:5px;';
        }if(document.querySelector("body > div:nth-child(6) > div > div > div > a > img")){
            document.querySelector("body > div:nth-child(6) > div > div > div > a > img").style.cssText = 'position:fixed; top:-300px; right:5px;';
        }   
    }
})();