Cam4 Clean figuccio

rimuove popup bianco

2019-10-22 या दिनांकाला. सर्वात नवीन आवृत्ती पाहा.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name		   Cam4 Clean figuccio
// @description    rimuove popup bianco
// @version		   0.2
// @author      figuccio
// @namespace https://greasyfork.org/users/237458
// @match          https://*.cam4.com/*
// @match          https://cam4.com/*
// @grant          none
// @run-at         document-end
// ==/UserScript==

(function() {
    'use strict';

createCookie("bannerPops","under-exit",1);
createCookie("dirPageCount",11,1);

var thumbpage=false;
var campage=false;
var biopage=false;
var newelem="";
// for greasemonkey
var win = window.wrappedJSObject ? window.wrappedJSObject : window;

//prima controlla dove siamo
    if (document.getElementById("directoryHtml")){
        thumbpage=true;
    }
    if (document.getElementById("profileHeaderTop")){
        biopage=true;
    }
    if (document.getElementById("camPaneBig")){
        campage=true;
    }

// fare alcune azioni
    if (thumbpage){
        remads();
        stopload();
    }
    if (biopage){
        showvotes();
    }
    if (campage){
        remads2();
        stopgold();
      //  fsbutton();
    }

// functions

// 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("camPaneBig").style.width="100%";
        document.getElementById("profile-ad").style.display="none";
        if(document.getElementById("videoBannerMidrollAdWrapper")){
           document.getElementById("videoBannerMidrollAdWrapper").style.zIndex=-3;
        }
    }





// 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;
	}

})();