Cam4 Clean figuccio

cam colorato 2022

As of 03/11/2022. See the latest version.

// ==UserScript==
// @name		   Cam4 Clean figuccio
// @description    cam colorato 2022
// @version		   9.6
// @author         figuccio
// @match          https://*.cam4.com/*
// @grant          GM_addStyle
// @grant          GM_setValue
// @grant          GM_getValue
// @grant          GM_registerMenuCommand
// @run-at         document-end
// @require        https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
// @namespace      https://greasyfork.org/users/237458
// @require        http://code.jquery.com/jquery-latest.js
// @require        https://code.jquery.com/ui/1.12.1/jquery-ui.js
// @icon           https://www.google.com/s2/favicons?domain=cam4.com
// @license        MIT
// ==/UserScript==
                         //continua cookie
document.cookie = "disclaimer18=Accepted; domain=.cam4.com;max-age=315360000"; //ok cookie continua
document.cookie = "disclaimerMobile18=adult; domain=.cam4.com;max-age=315360000"; //ok cookie
 if(!localStorage.reload) {
        setTimeout("document.location.reload()",2000);
        localStorage.reload = 1;
    }

//popup questo sito utilizza cookie visibile senza estensione blocca publicita rifunziona
GM_addStyle('.CookieConsent__wrapper__3TWbZ {display: none!important}');
//foto publicita in alto prova un esperienza piu intima rifunziona
GM_addStyle('.PageHeaders__wrapper__3I9TX .PageHeaders__title__Wms1b {display: none!important}');

//parte inutile sotto i numeri rifunziona
GM_addStyle('.SponsoredAds__premiumAds__6ubBS {display: none!important}');//cam4 premium
GM_addStyle('.Footer__footer__2mMwb  {display: none!important}');//1
GM_addStyle('.Directory__aboveFooterWrap__hDD7a {display: none!important}');//2
//parte inutile in fondo alla chat sotto categorie funziona
GM_addStyle('.LegalArea__legalWrapper__3dQoq {display: none!important}');
////////////////////////////////////////////////////////////////
   //ricordamelo dopo in chat  funziona
GM_addStyle('.TokenAwarenessDesktop__container__2wAV- {display: none!important}');
//pulsante scritta scorrevole rifunziona
GM_addStyle('.CampaignCTAButton__offer__2taf9{display: none!important}');
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
//popup badoo allinterno della cam
GM_addStyle('.AdEmbeded__AddWrapperNoButton__28ZlR {display: none!important}');
////////////////////////////////////////////////////////////////////////////////////////////////////////////
 //login autoclic 10 secondi
 setTimeout(function(){
 document.getElementById("loginButton").click();}, 10000);
//////////////////////////////////login2
setTimeout(function(){
document.querySelector("#tUZ2be9k_loginFrom_submitButton").click();}, 15000);
//////////////////////////////////////////////////////////////////////////////////////
 //funziona intercezza lultima pagina
setTimeout(function(){
document.querySelector("#Ayg3aS21_paginationWrap_pagination > ul > li:nth-child(6) > a").click();}, 6000);

//donne uomini e tutto
$(window).scroll(function() {
if($(window).scrollTop() + $(window).height() == $(document).height()) {
document.querySelector("#Ayg3aS21_paginationWrap_pagination > ul > li.Pagination__linkNextPrev__36dEK > a").click();

         }
});

///////////////////////////////////////////color picker
(function() {
   'use strict';
var $ = window.jQuery;
var j5= $.noConflict();
var body=document.body;
var style=" position:fixed; top:-20px;left:500px;background:;z-index: 99999;"
var box=document.createElement("div");

box.id="mycam";
box.style=style;
j5(box).draggable();
body.append(box);

function prova(){
if(mycam.style.display = (mycam.style.display!='none') ? 'none' : 'block');}
GM_registerMenuCommand("nascondi/mostra box",prova);
///////////////////////////////test funzione chiudi menu da close funziona
function myFunction() {
document.getElementById("mycam").style.display = "none";
}
//////////////////////////////////////////////////
 //dati per la conservazione
        var userdata = {color: 'camcolor', }

        var mycolor;//dichiarare la variabile colore

   //imposta la variabile del colore
        if(/^#+\w+$/.test(GM_getValue(userdata.color))){mycolor = GM_getValue(userdata.color); }

        else {mycolor="#000000"; }
            ///////////////////////////////////////////////////////////
            //Imposta lo stile CSS degli elementi nel menu
        GM_addStyle(`
                #myMenu {
                    font-family: Helvetica, 'Hiragino Sans GB', 'Microsoft Yahei', Arial, sans-serif;
                    font-size: 14px;
                    z-index: 2147483648;
                }
                 .button {
                    padding: 3px 6px;
                    line-height: 16px;
                    margin-top:-19px;
                    display: inline-block;
                    border: 1px solid black;
                    border-radius: 3px;
                    cursor: pointer;
                    background:chocolate;

                }

                #colorspan { margin-left:1px; margin-bottom:-19px; color:lime;background-color:brown; border: 1px solid blue;}

                #seletcolor{margin-top:-47px; margin-left:5px;}

                #setui{
                    width:auto;
                    height:25px;
                    margin-top:-15px;
                    margin-left:0px;
                    margin-right:0px;
                    margin-bottom:px;
                    background-color: ;
                    border-width:1px;
                    border-style:;
                    color:lime;

                }

                #colorinput{ margin-left:4px; margin-top:4px;   background-color:#3b3b3b; color:red; border:1px solid yellow; border-radius: 5px;}
                input[type="datetime-local"] { background:#3b3b3b ;color:lime;border:1px solid yellow; border-radius: 5px;margin:9px;}
            `);
    setInterval(function(){
let today = new Date();
today.setMinutes(today.getMinutes() - today.getTimezoneOffset());
document.getElementById('datePicker1').value = today.toISOString().slice(0, -1);
}, 70);
  //elemento html nel div
   box.innerHTML=`
                      </p>
                       <fieldset style="background:red; border: 2px solid green;color:lime;border-radius:7px;text-align:center;">
                       <legend>...............Select Color</legend>
   <div id=setui>
  HEX<button id="colorspan">${mycolor}</button>color picker <input type="color" list="colors" id="colorinput" value="${mycolor}" title="color picker">
  <input id="datePicker1" type="datetime-local" />
  <span class="button" title="chiudi" id='close'>close</span>

                                    </p>
                    </div>
                    </fieldset>
            `;

            //////////////////////////////
            //aggiunta span close per chiudere il box direttamente
            var colorinputsetMenuClose=document.querySelector('#close');
            colorinputsetMenuClose.addEventListener('click',myFunction,false);

            ////////////////////////////////////////
            var colorinput=document.querySelector('#colorinput');
            var colorspan = document.querySelector('#colorspan');
            ////////////////////////////////////////
           //evento della tavolozza dei colori
            function colorChange (e) {
            mycolor = e.target.value;
            colorspan.innerHTML=e.target.value;
            }

                 colorinput.addEventListener('input', function(event){colorChange(event)},false);
                 $('body').css("background-color", mycolor);
                 document.getElementById('colorinput').value =mycolor;
                  colorinput.addEventListener('input', function(){
                             GM_setValue(userdata.color, mycolor);
console.log(this.value);

 $('body').css("background-color",mycolor);
        });

})();
//////////////////////pulsante torna in alto
var a = document.createElement('span');
a.innerHTML = "🡹";
var c ='position:fixed;text-align:right;right:0px;bottom:320px;z-index:50000;color:red!important;background-color:green;border:2px solid blue;line-height:19px;padding:6px 15px;font-size:11pt;cursor:pointer;font-weight:bold;text-decoration:none;border-radius:20px;';
a.style.cssText = c;
a.title = 'Sali in alto';
a.addEventListener('click', function(){ window.scrollTo(0,0);});
document.body.appendChild(a);
//pulsante ha scomparsa
(function gotop(){
 if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
 a.style.display = 'block';}
 else {a.style.display = 'none';}
 setTimeout(gotop,1);
})();
////////////////////////////////////////////////