Cam4 Clean figuccio

cam colorato 2023

Mint 2023.10.04.. Lásd a legutóbbi verzió

// ==UserScript==
// @name		   Cam4 Clean figuccio
// @description    cam colorato 2023
// @version		   11.7
// @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==
         //accetta cookie 2023
//donne
setTimeout(function(){document.querySelector("#ssdq12FB_disclaimerWithAgeVerification_badge-agreeBtn-female").click();}, 10);
    ////////////////////////////
//popup questo sito utilizza cookie visibile senza estensione blocca publicita rifunziona
GM_addStyle('.index__cookieConsent__2M-8D {display: none!important}');//sett 2023
//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('#directory-content > div.SponsoredAds__premiumAds__ZXHiX.Directory__sponsoredAds__tHvki{display: none!important}');//cam4 premium settembre 2023
GM_addStyle('.Directory__aboveFooterWrap__sLRuI {display: none!important}');//correlate set 2023
GM_addStyle('.Footer__footer__202HR {display: none!important}');//set 2023
// categorie funziona +parte sotto
GM_addStyle('.ContentCard__title__2CLsx ,.ContentCard__container__rOtbe,.LegalArea__legal__2bQcD {display:none!important}');
////////////////////////////////////////////////////////////////
  //x dentro video
GM_addStyle('.index__closeButton__2hQ9F {display:none!important}');
   //ricordamelo dopo in chat  funziona
GM_addStyle('.TokenAwarenessDesktop__container__2wAV- {display:none!important}');
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
//popup badoo allinterno della cam
GM_addStyle('.AdEmbeded__AddWrapperNoButton__28ZlR {display:none!important}');
////////////////////////////////////////////////////////////////////////////////////////////////////////////
//current page color red
GM_addStyle('.Pagination__pagination__3if3L li.Pagination__active__xYxuK a {background-color:red!important;color:lime!important;}');
//////////////////////////////////////////////////////////////////////////////////////
//login autoclick 10 secondi
setTimeout(function(){document.getElementById("loginButton").click();}, 10000);//10000
//////////////////////////////////login2
setTimeout(function(){document.querySelector("#tUZ2be9k_loginFrom_submitButton").click();}, 15000);//15000

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

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

function provac4(){
var box = document.getElementById('mycam');
box.style.display = ((box.style.display!='none') ? 'none' : 'block');
}
GM_registerMenuCommand("nascondi/mostra box",provac4);
//////////////////////////////////////////////////
 //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"; }
///////////////////////////////////////////////////////////
    // salvare i dati personalizzati
    function saveSetting() {GM_setValue(userdata.color, mycolor);
    $('body').css("background-color", mycolor);
          }
///////////////////////////////////////////////////////////
            //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 yellow;border-radius:3px;cursor:pointer;background:chocolate;}

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

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

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

                #colorinput{margin-left:4px; margin-top:4px;height:20px;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;text-align:center;}
            `);
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   readonly datatime non fa comparire licona del calendario  linea 109 width:330px evita cambio forma quando viene spostato tutto a destra
   box.innerHTML=`
                      </p>
                       <fieldset style="background:#3b3b3b; border:2px solid red;color:lime;border-radius:7px;text-align:center;height:0px;width:300px;">
                       <legend>Clock<input readonly id="datePicker1" type="datetime-local" title="Data-Ora"/></legend>
   <div id=setui>
  Hex <button id="colorspan" title="Hex value">${mycolor}</button> Color<input type="color" list="colors" id="colorinput" value="${mycolor}" title="Color picker">
  <span class="button" title="Chiudi" id='close'>x</span>

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

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

            ////////////////////////////////////////
            var colorinput=document.querySelector('#colorinput');
            var colorspan = document.querySelector('#colorspan');
            ////////////////////////////////////////
    colorinput.addEventListener('input', function(event){colorChange(event)},false);
     $('body').css("background-color", mycolor);
           //evento della tavolozza dei colori
            function colorChange (e) {
            mycolor = e.target.value;
            colorspan.innerHTML=e.target.value;
            $('body').css("background-color", mycolor);
            GM_setValue(userdata.color, mycolor);
            }

})();
//////////////////////////////
//passa alla pagina successiva richiede jquery
$(window).scroll(function() {
     if($(window).scrollTop() + $(window).height() == $(document).height()) {
       /////////////////////////////////////////////////////li:nth-last-child(1) > a ///
document.querySelector("#Ayg3aS21_paginationWrap_pagination > ul > li:nth-last-child(1) > a").click();//funziona
         }
});
///////////////////////
//scrollbar nera
(function() {var css = "";
	css += [
		"/*####----BROWSER SCROLL BAR----####*/",
		"::-webkit-scrollbar {",
		"background:#303134!important;",
		"border-left: 1px solid #1A1A1A !important; width:17px!important;",
		"}",
       "::-webkit-scrollbar-thumb {background-color:green!important;border-radius:px!important;border:1px solid !important;}",
        ///////////////////pulsanti sotto freccine su e giu
       "::-webkit-scrollbar-button {background-color:#777777;}",
        ///////////////////////freccia nera sopra
       "::-webkit-scrollbar-button:vertical:decrement {",
       "background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4QgFDgo6IB/FRgAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAAc0lEQVQoz+XRoQ2DYBiE4YfUkEDqEfW1TNA5EFUdAM0aTNEpSKqwKAZogkJgmpDUgPkFqFa3py757r1PHP+jEgPqb4ELGizocf0EnHDHO0ALHjhvQ4eNT3BDgSPmcE8RoQ1lOyhHhRgjXpjCtwwdnr864go2lhOp4XYeZgAAAABJRU5ErkJggg==)!important;",
		"background-size: cover!important;",
		"background-repeat: no-repeat!important;",
		"}",
        ////////////////////freccia nera sotto
       "::-webkit-scrollbar-button:vertical:increment {",
       "background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4QgFDgUlKo/UfAAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAAaUlEQVQoz+XPsQmDUAAE0NfHFdI7gZ1kEmdI6Q6WTuEUQiZIl8o0CYGAvYUg3+aXitZ6zcFxx91xbOR44oMO78jfqGdLoQQVekwYEPBHictaW4pHNAeMaHDdmlngFUMtbnv/1fjh7iSYAfRHFgTlUa3mAAAAAElFTkSuQmCC)!important;",
		"background-size: cover!important;",
		"background-repeat: no-repeat!important;",
		"}",
	].join("\n");

if (typeof GM_addStyle != "undefined") {
	GM_addStyle(css);
} else if (typeof PRO_addStyle != "undefined") {
	PRO_addStyle(css);
} else if (typeof addStyle != "undefined") {
	addStyle(css);
} else {
	var node = document.createElement("style");
	node.type = "text/css";
	node.appendChild(document.createTextNode(css));
	var heads = document.getElementsByTagName("head");
	if (heads.length > 0) {
		heads[0].appendChild(node);
	} else {
		// no head yet, stick it whereever
		document.documentElement.appendChild(node);
	}
}
})();