Greasy Fork is available in English.
去除 奈菲影视 的广告 (我本身是不排斥清爽的广告的 但是该网站TG群的 "沁沁" 管理员说了点不太好听的)
当前为
// ==UserScript==
// @name 清爽奈菲
// @namespace https://borber.cn
// @version 0.0.4
// @description 去除 奈菲影视 的广告 (我本身是不排斥清爽的广告的 但是该网站TG群的 "沁沁" 管理员说了点不太好听的)
// @author Borber
// @match https://www.nfmovies.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Your code here...
if(document.getElementById("adleft")){
document.getElementById("adleft").style.cssText = 'position:fixed; top:-300px; right:5px;';
}
if(document.getElementById("adright")){
document.getElementById("adright").style.cssText = 'position:fixed; top:-300px; right:5px;';
}
var imgs = document.getElementsByTagName("img");
for (var i = 0; i < imgs.length; i++){
if (imgs[i].src.startsWith("https://www.nfmovies.com/pic/tu/")) {
imgs[i].style.cssText = 'position:fixed; top:-300px; right:5px;';
}
}
if (window.location.href.startsWith("https://www.nfmovies.com/video/")){
setTimeout(function () {
if(document.getElementById('cciframe')){
document.getElementById('cciframe').contentWindow.closeAd();
}
},3000)
}
})();