Cam4 Clean figuccio

rimuove popup bianco

目前為 2020-01-28 提交的版本,檢視 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name		   Cam4 Clean figuccio
// @description    rimuove popup bianco
// @version		   1.1
// @author      figuccio
// @match          https://*.cam4.com/*
// @match          https://cam4.com/*
// @grant       GM_addStyle
// @run-at         document-end
// @namespace https://greasyfork.org/users/237458
// ==/UserScript==
(function() {
    'use strict';
createCookie("bannerPops","under-exit",1);
createCookie("dirPageCount",11,1);
var campage=false;
var biopage=false;
var newelem="";
// for greasemonkey
var win = window.wrappedJSObject ? window.wrappedJSObject : window;

//prima controlla dove siamo

    if (document.getElementById("profileHeaderTop")){
        biopage=true;
    }
   if (document.getElementById("camPaneBig")){
        campage=true;
   }

// fare alcune azioni

    if (biopage){
        showvotes();
    }
   if (campage){
       remads2();
       stopgold();

    }

// bloccare il pop-up go gold
    function stopgold(){
        win.Registration.showGoldUpgradeOverlay=function(){return false};
    }

// annunci sul campeggio
    function remads2(){
        document.getElementById("besideBroadcastingContainer").style.display="none";
        document.getElementById("profile-ad").style.display="none";
        if(document.getElementById("videoBannerMidrollAdWrapper")){
               document.querySelector("#videoBannerMidrollAdWrapper").remove();
        }
    }



// interrompe il caricamento della sovrapposizione nella pagina personale
    function stopload(){
        setInterval(function(){
            document.getElementById("directoryHtml").className="newThumbs";
        }, 3000);
    }

//annunci sulla pagina personale
    function remads(){
        document.getElementsByClassName("skyscraper-ad-1")[0].style.display="none";
        document.getElementsByClassName("skyscraper-ad-2")[0].style.display="none";
        document.getElementsByClassName("promo-center")[0].style.display="none";
        document.getElementsByClassName("sponsorAd")[0].style.display="none";
        document.getElementsByClassName("sponsorAd")[1].style.display="none";
        setTimeout(function(){
            document.getElementById("homeRandomAd-1").style.visibility="hidden";
            document.getElementById("homeRandomAd-1").style.height="0px";
        }, 2000);
        setTimeout(function(){
            document.getElementById("homeRandomAd-2").style.visibility="hidden";
            document.getElementById("homeRandomAd-2").style.height="0px";
        }, 2000);
        document.getElementById("subfoot").style.display="none";
        document.getElementById("main-content").className="";
    }

// mostra il numero di voti nella classifica sulla pagina bio
    function showvotes(){
        document.getElementById("rating_status").innerHTML=document.getElementById("hiddenvotes").innerHTML+" people voted";
    }
// cookie functions
	function createCookie(name,value,days,domain){
        var expires="";
        if (domain){
            domain=";domain=."+domain;
        }else{
            domain = "";
        }
        if (days) {
            var date = new Date();
            date.setTime(date.getTime()+(days*24*60*60*1000));
            expires = "; expires="+date.toGMTString();
        }
        document.cookie = name+"="+value+expires+"; path=/"+domain;
	}
                   //cambio colore pagina
                 var style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = ' /*\n*/ body:not(.Settings) {background-color:#c51b1b ;}';
document.getElementsByTagName('head')[0].appendChild(style);
    GM_addStyle('.partner-segment{ display:none !important; }');//riga bianca sotto rimossa
                  GM_addStyle('li.Pagination__active__3Wrob a{background-color:green!important}');//casella visitati verde
                  GM_addStyle('.Pagination__pagination__2VBDm li a{color:blue!important}');//tutti i numeri blu
                  GM_addStyle('.Pagination__pagination__2VBDm li{background-color:violet!important}');//tutto lo spondo dei num colorati
                  GM_addStyle('.Pagination__pagination__2VBDm li a:hover{background-color:red!important}');//non ancora visitati diventa rosso come si poggia mouse
})();