Greasy Fork is available in English.

new Facebook figuccio

new facebook color

Ajankohdalta 24.11.2022. Katso uusin versio.

// ==UserScript==
// @name          new Facebook figuccio
// @namespace     https://greasyfork.org/users/237458
// @version       17.7
// @author        figuccio
// @description   new facebook color
// @match         https://*.facebook.com/*
// @match         https://*.facebook.com/me/*
// @grant         GM_addStyle
// @grant         GM_setValue
// @grant         GM_getValue
// @grant         GM_registerMenuCommand
// @require       https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
// @run-at        document-start
// @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=facebook.com
// @require       https://greasyfork.org/scripts/12228/code/setMutationHandler.js
// @noframes
// @license        MIT
// ==/UserScript==
//accetta tutti cookie facebook
document.cookie = "datr=7JceYLHE4muIe3TIZpm1aiuj; domain=.facebook.com;max-age=315360000";
/////////////////////////////////////////////////////////////////////////////////
(function() {
    'use strict';
    var CONTENT_HAS_LINKS_SELECTORS = ".userContentWrapper, ._5pcr";
    var BLOCK_LIST_SELECTORS = "._5r69, ._5g-l, ._2r3x, .uiLikePageButton, .uiStreamSponsoredLink";
    var observer;
    var contentAreaFoundTimeout;

    function findAncestor (el, cls) {
        while ((el = el.parentElement) && !el.classList.contains(cls));
        return el;
    }

    function filterPosts(elements) {
        if(!Array.isArray(elements) && !(elements instanceof NodeList)) {
            return filterPosts([elements]);
        }
        for (var i = 0; i < elements.length; i++) {
            var element = elements[i];
            var elementDirty = false;
            if (element.matches(BLOCK_LIST_SELECTORS) || element.querySelectorAll(BLOCK_LIST_SELECTORS).length>0) {
                elementDirty = true;
            } else {
                var allLinks = element.querySelectorAll('a');
                for (var j = 0; j < allLinks.length; j++) {
                    var str = allLinks[j].getAttribute("href");
                    if (str !== undefined && !str.startsWith("/") && !str.startsWith("#") && !str.includes("www.facebook.com")) {
                        elementDirty = true;
                        break;
                    }
                }
            }

             // potrebbe anche farlo al contrario, nascondendo tutto per impostazione predefinita e
             // mostra solo le voci pertinenti
            if(elementDirty) {
                findAncestor(element, "_4-u2").style.display = "none";
            } else {

            }
        }
    }

    function mutationsHandler(mutations) {
        mutations.forEach(function(mutation) {
            var newNodes = mutation.addedNodes;
            if (newNodes !== null) {
                for (var i = 0; i < newNodes.length; i++) {
                    if (newNodes[i] && newNodes[i].className && (newNodes[i].className.contains("userContentWrapper") || newNodes[i].className.contains("_5pcr"))) {
                        filterPosts(newNodes[i]);
                    } else if (newNodes[i] && newNodes[i].querySelectorAll) {
                        filterPosts(newNodes[i].querySelectorAll(CONTENT_HAS_LINKS_SELECTORS));
                    }
                }
            }
        });
    }

    function setupHistoryStateListener(callback) {
        (function (old) {
            window.history.pushState = function () {
                old.apply(window.history, arguments);
                console.log("push state");
                callback();
            };
        })(window.history.pushState);
    }

    function main() {
        if (window.top != window.self) {
            return;
        }

        if(window.self.location.pathname !== "/") {
            console.log("not on main feed");
            return;
        }

        if(!window.self.location.search) {
            window.self.location.search = "?sk=h_chr";
        }

        var contentArea = document.getElementById("contentArea");
        if(!contentArea) {
            console.log("contentarea not found, retry soon");
            if(contentAreaFoundTimeout) {
                clearTimeout(contentAreaFoundTimeout);
                contentAreaFoundTimeout = null;
            }
            contentAreaFoundTimeout = setTimeout(main, 200);
            return;
        }

        console.log("contentarea found");

        observer.disconnect();
        observer.observe(contentArea, { attributes: false, childList: true, characterData: false, subtree: true });
        filterPosts(document.querySelectorAll(CONTENT_HAS_LINKS_SELECTORS));

        setTimeout(function() {
            document.body.scrollTop = 160;
            contentArea.style.display = "block";
        },100);

    }

    function setup() {
        observer = new MutationObserver(mutationsHandler);

        if (document.readyState === "complete") {
            main();
        } else {
            window.addEventListener("load", main);
        }

        setupHistoryStateListener(function() {
            setTimeout(main,1000);
        });

        var style = document.createElement('style');
        style.type = 'text/css';
        style.innerHTML =
            '.home .newsFeedComposer #contentArea { display:none; }'+
        document.getElementsByTagName('head')[0].appendChild(style);
    }

    setup();
})();
////////////////////////////////////////
//torna ai post piu popolari reinderizza ha topstorie
  function fixbacktotoppostslink() {
// correggi il collegamento alle storie principali per un nuovo design
  var y,x;
  x=document.querySelector('div[role="main"] a[href="/"][aria-label]');
  if(!x){
	if(debug)
	  console.log('didnt find (plain) top stories link');
	return;
  }


  console.log('fixing top stories link');
  x.id="aa";
  y=x.cloneNode(true);
  y.id="topstorieslink";
  y.title="post popolari";
  if(!document.querySelector('#topstorieslink'))
    x.parentNode.insertBefore(y,x.nextSibling);
  document.getElementById("aa").style="display:none!important";
  document.getElementById("topstorieslink").href="/?sk=h_nor#topstories";
  if(x.style && x.style.display=='none')
	 x.style="block";
  x=y=null;
}


function addnewsfeedmenufeeds(){
	// vecchio codice per vecchio design, non più necessario, può eliminare...
    if(debug)
	  console.log('clicked - shows event listener is working');
	  if(document.getElementById('mstorieslink')) {
		if(document.querySelector("div.uiContextualLayerPositioner.hidden_elem #mstorieslink")) {
		  // fix top stories link
		  try{
		    if(document.querySelector('div.uiContextualLayerPositioner:not([class*="hidden_elem"])').querySelector('a[href*="?sk=h_nor"]').href)
		      document.querySelector('div.uiContextualLayerPositioner:not([class*="hidden_elem"])').querySelector('a[href*="?sk=h_nor"]').href="/?sk=h_nor#topstories";
		  }
		  catch(e){
			  ; //non fare niente in questo momento...
		  }

		  // correggi il menu a discesa del feed nascosto
		  var inpoint=document.querySelector('div.uiContextualLayerPositioner:not([class*="hidden_elem"]) a[href*="?sk=h_chr"]');
		  try{
		    inpoint.parentNode.parentNode.insertBefore(document.getElementById('pstorieslink').parentNode, inpoint.parentNode.nextSibling);
			if(document.getElementById("navItem_605397933004645")) // if explore feed exists
			  inpoint.parentNode.parentNode.insertBefore(document.getElementById('estorieslink').parentNode, inpoint.parentNode.nextSibling);
			inpoint.parentNode.parentNode.insertBefore(document.getElementById('gstorieslink').parentNode, inpoint.parentNode.nextSibling);
			inpoint.parentNode.parentNode.insertBefore(document.getElementById('pgstorieslink').parentNode, inpoint.parentNode.nextSibling);
		    inpoint.parentNode.parentNode.insertBefore(document.getElementById('mstorieslink').parentNode, inpoint.parentNode.nextSibling);
		  }
		  catch(e) {
			  ; //niente dovrebbe andare bene?
		  }
		}

		else if (window.location.href.match(/\?sk=h_chr/) || document.querySelector("#contentCol a[href='/?sk=h_nor']")){
		  try {
		    document.querySelector('div.uiContextualLayerPositioner:not([class*="hidden_elem"]) a[href*="?sk=h_chr"]').parentNode.className += " _54nd";
		  }
		  catch(e) {;
		    // do nothing
		  }
		}
		else if (window.location.href.match(/\?sk=h_nor/) ){
		  try{
		    document.querySelector('div.uiContextualLayerPositioner:not([class*="hidden_elem"]) a[href*="?sk=h_nor"]').parentNode.className += " _54nd";
		  }catch (e) {
			;// fare niente
		  }

		}

	    return;
	   }
	   else {

         var inpointA=document.querySelectorAll('div.uiContextualLayer.uiContextualLayerBelowRight a[href*="?sk=h_chr"]');
         if(!inpointA.length) {
		   console.log('Didnt find the newsfeed feed selector menu, try again in 1 seconds');
		   window.setTimeout(addnewsfeedmenufeeds,3000);//aumentato da 1 a 3secondi
	       return;
         }

/////////////////////////////////////////////////////////////////////////////////////////////////serve
		 // INSERT EXPLORE FEED LINK
		 if(document.getElementById("navItem_605397933004645")) // se esiste il feed di esplorazione
		   insertfeedintonewsfeedselector("estorieslink","Explore Feed","/explore");
//////////////////////////////////////////////////////////////////////////

		if (window.location.href.match(/\?sk=h_chr/) || document.querySelector("#contentCol a[href='/?sk=h_nor']")){ // evidenziare i più recenti
		  try{
		    document.querySelector('div.uiContextualLayerPositioner:not([class*="hidden_elem"])').querySelector('li:not([class*="_54nd"]) a[href*="?sk=h_chr"]').parentNode.className+= ' _54nd';
		  }
		  catch(e) {
			; // do nothing
		  }
		}
		else if (window.location.href.match(/\?sk=h_nor/) ){ // evidenziare le storie principali
		  try{
		    document.querySelector('div.uiContextualLayerPositioner:not([class*="hidden_elem"])').querySelector('li:not([class*="_54nd"]) a[href*="?sk=h_nor"]').parentNode.className+= ' _54nd';
		  }
		  catch(e) {
			; // fare niente
		  }
		}
		// correggere il collegamento alle storie principali
		if(document.querySelector('div.uiContextualLayerPositioner:not([class*="hidden_elem"])') && document.querySelector('div.uiContextualLayerPositioner:not([class*="hidden_elem"])').querySelector('a[href*="?sk=h_nor"]').href)
		  document.querySelector('div.uiContextualLayerPositioner:not([class*="hidden_elem"])').querySelector('a[href*="?sk=h_nor"]').href="/?sk=h_nor#topstories";
	   }
	 }
    window.setTimeout(fixbacktotoppostslink,3000);
    window.setTimeout(fixbacktotoppostslink,6000);
    window.setTimeout(fixbacktotoppostslink,8000);
    window.setTimeout(addnewsfeedmenufeeds,3000);
//////////////////////////////////////////////////aggiunto titolo icona facebook e home
(function a() {
	var title=document.querySelectorAll("div[role='banner'] a[role='link'][href='/'],div[role='banner']+div[data-isanimatedlayout] a[role='link'][href='/']");
	if(title && title.length>1)

    title=document.querySelectorAll("a[role='link'][href='/']");
	if(title && title.length>1)
	  for(i=0;i<3;i++){
	    title[i].title="Most Recent"
	  }

window.setTimeout(a,6000);
  })();
////////////////////////////////////////////////////////
//nasconde il vecchio torna ai post popolari
GM_addStyle(' div._4-u2.mvm._495i {position:relative; top:-21px; width:138px; height:10px; overflow:hidden !important; padding :0px; padding-top:1px; padding-bottom:6px; margin-top:0px; margin-bottom:-17px} /*Nascondi il link Torna allinizio dei post(new design) finché non è pronto*/ div[role="main"] a[href="/"][aria-label]{display:none!important;}');

//colore red scritta torna ai post popolari
GM_addStyle('.x1fey0fg {color:red!important;background-color:green;border-radius:5px;}');
//////////////////////////////////////////////////////////////////////////////
///////////////////////color picker///////////
var $f = jQuery.noConflict();
$f(document).ready(function() {
'use strict';
var $ = window.jQuery;
var jf = $.noConflict();
var body=document.body;
var style="position:fixed; top:-13px;left:720px;z-index:99999;"
var box=document.createElement("div");

box.id="my";
box.style=style;
jf(box).draggable();
body.append(box);

function prova(){
 if(my.style.display = (my.style.display!='none') ? 'none' : 'block');}
GM_registerMenuCommand("nascondi/mostra box",prova);

///////////////////////////////funzione chiudi menu da close
function myFunction() {
document.getElementById("my").style.display = "none";
}
///////////////////////////////////////////////////////////////
        //dati per la conservazione
        var userdata = { color: 'figuccio', }

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

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

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

                #colorinput{margin-left:4px; margin-top:12px; background-color:#3b3b3b; color:red; border:1px solid yellow; border-radius:5px;height:20px;}
input[type="datetime-local"] {background:#3b3b3b;color:lime;border:1px solid yellow; border-radius:5px;margin:0px;text-align:center;font-size:px;}
              .button {padding: 2px 2px; margin-top:-19px; display:inline-block;border: 1px solid yellow; border-radius:3px; cursor:pointer;background:red;}
            `);
setInterval(function(){
let today = new Date();
today.setMinutes(today.getMinutes() - today.getTimezoneOffset());
document.getElementById('datePicker').value = today.toISOString().slice(0, -1);
}, 70);

 //elemento html nel div readonly datatime non fa comparire licona del calendario
    box.innerHTML=`
                      </p>
                              <fieldset style="background:#3b3b3b; border:2px solid red;color:lime;border-radius:7px;text-align:;">
                              <legend>Time<input readonly id="datePicker" type="datetime-local" /></legend>
 <div id=setui>
 Hex <button id="colorspan">${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',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);
                                    //lasciare $f se no non cambia colore
$f('body,#blueBarDOMInspector>div, #blueBarDOMInspector div[role="banner"], #fb2k_pagelet_bluebar>#blueBarDOMInspector>div>div, div[aria-label="Facebook"][role="navigation"]').css("background-color", mycolor);
                               document.getElementById('colorinput').value =mycolor;
                               colorinput.addEventListener('input', function(){
                               GM_setValue(userdata.color, mycolor);
    console.log(this.value);
            //lasciare $f se no non cambia colore
$f('body,#blueBarDOMInspector>div, #blueBarDOMInspector div[role="banner"], #fb2k_pagelet_bluebar>#blueBarDOMInspector>div>div, div[aria-label="Facebook"][role="navigation"]').css("background-color",mycolor);
        });
/////////////////////rimuove sponsorizzati zona chat (9settembre ripristinato)
	var xpath = function (xpathToExecute) {
		var result = [];
		var nodesSnapshot = document.evaluate(xpathToExecute, document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
		for (var i = 0; i < nodesSnapshot.snapshotLength; i++) {
			result.push(nodesSnapshot.snapshotItem(i));
		}
		return result;
	};
                                //9settembre 2022
    var thePath = "//div[1]/div[1]/div/div[3]/div/div/div/div[1]/div[1]/div/div[3]/div/div/div[1]/div/div[1]/span/div/div";

	var runCount;
	var intv = 500;	// Esegui ogni 0,5 secondi
	var intvEnd = 5000;	// Cancella dopo 5 secondi
	var go = setInterval(pollDOM, intv);
	function pollDOM() {
		runCount+=intv;	// Aggiungi il valore intv a runCount ogni volta per contare la quantità di ms eseguiti
		if (runCount >= intvEnd) {	// Cancella intervallo dopo intvEnd
			clearInterval(go);
		}

		try {
			if (xpath(thePath)[0].children[0].children.length) {
				xpath(thePath)[0].children[0].remove();
			}
		} catch {}
	}

////////////////////////////////////////logout
function NEWaddtopnavbarlogoutbutt(){
    console.log('addtopnavbarlogoutbutt');
  if(document.querySelectorAll('div[role="banner"] div[role="navigation"]').length!=2) {
    console.log("Didn't find insert point for logout button");
	return;
  }

  var logoutlink=document.createElement('a');
  logoutlink.innerHTML="&nbsp;Log<br/>&nbsp;Out&nbsp;";
  logoutlink.href="";
  logoutlink.title = 'esci';
  logoutlink.id="fbpLogoutLink";
  logoutlink.style="text-decoration: none;margin-left:7px;color:var(--primary-text);position:relative;left:8px;background-color:var(--secondary-button-background);font-weight:700;padding-left: 4px;padding-right: 4px;padding-top: 4px; padding-bottom: 4px; leftmargin:15px;border-top-left-radius: 50%;border-bottom-left-radius: 50%;border-top-right-radius: 50%;border-bottom-right-radius: 50%;border:2px solid #c471ed!important;";

  document.querySelectorAll('div[role="banner"] div[role="navigation"]')[1].firstChild.parentNode.insertBefore(logoutlink,document.querySelectorAll('div[role="banner"] div[role="navigation"]')[1].firstChild);

  logoutlink.addEventListener("click", function(e) {e.preventDefault(); document.querySelector('form[action^="/logout.php?"').submit(); e.target.innerHTML='<img src="//www.facebook.com/images/loaders/indicator_blue_small.gif"/>'},false);

}
window.setTimeout(NEWaddtopnavbarlogoutbutt,8000);


/////////////////////////////////////////////
                      // Verifica che l'URL principale sia il più recente
   if (document.URL == "https://www.facebook.com/home.php") window.location.href = "/?sk=h_chr";//log in da google
         // reindirizzamento istantaneo al feed più recente se vengono rilevate le notizie principali
  if( window.location.href.match(/facebook\.com\/?$|\?sk=h_nor|\?sk=nf|\?ref=tn_tnmn|\?ref=logo|\.com\/?_rdr$/) && (!window.location.href.match(/\?sk=h_nor#topstories/))){
	if(!/m.facebook.com/.test(window.location.href))
	  window.location.href="/?sk=h_chr"; //https://www.facebook.com
    else
	  window.location.href="/home.php?sk=h_chr"; //https://m.facebook.com
                                                    }
////////////////////////////////////////////////////////////////
    //memorizza password
GM_addStyle('.xquyuld.x10wlt62.x6ikm8r.xh8yej3.xt3gfkd.xu5ydu1.xdney7k.x1qpq9i9.x2bj2ny.x1ja2u2z.x1n2onr6.x9f619 > .xh8yej3 {display:none!important}');
    //reels e brevi video
GM_addStyle('a[href*="/reel/"],li>div>a[href*="/reel/"]{display:none !important}');
     //barra facebook app block
GM_addStyle('._2t-a{position:fixed!important;}');
    ////////////////////////////////////////////////////////////////////////////////
     //immagine profilo bordo colorato
GM_addStyle('div[aria-label="Page profile photo"] circle, a[aria-label*="profile photo"] circle, div[aria-label="Page profile photo"] mask, a[aria-label*="profile photo"] mask {display:} svg[aria-label]>mask,svg[aria-label] circle,svg[style="height: 40px; width: 40px;"]>mask,svg[style="height: 40px; width: 40px; "] circle, svg[style="height:40px;width:40px"]>mask,svg[style="height:40px;width:40px"] {border-radius:22px!important;border:2px solid #c471ed!important;}');

//zona icona facebook  mod ottobre2022 destra
GM_addStyle('.xmy5rp.xmy5rp{background-color:darkred!important;border-radius:22px!important;border:2px solid #c471ed!important;}');
//zona messaggi notifiche ecc sinistra
GM_addStyle('.xzkaem6 {background-color:darkred!important;border-radius:22px!important;border:2px solid #c471ed!important;}');
//cerchi notifiche messaggi ecc
GM_addStyle('.x1qhmfi1{background-color:!important;border-radius:22px!important;border:2px solid #c471ed!important;}');
/////////////////////////////////////////////////////////////////////////////////////////////////
//post e commenti colorati
GM_addStyle(':root,.__fb-dark-mode{--surface-background: blue; important;}');//ok'
GM_addStyle(':root,.__fb-dark-mode{--comment-background: #4B0205; !important;}');//commenti
/////////////////////////////////////////////////////////////////

 //watch marketplace groups gaming
GM_addStyle('div[role="navigation"][aria-label="Facebook"]>ul>li:nth-child(2){display:none!important;}');
GM_addStyle('div[role="navigation"][aria-label="Facebook"]>ul>li:nth-child(3){display:none!important;}');
GM_addStyle('div[role="navigation"][aria-label="Facebook"]>ul>li:nth-child(4){display:none!important;}');
GM_addStyle('div[role="navigation"][aria-label="Facebook"]>ul>li:nth-child(5){display:none!important;}');
  //////////////////////
//giochi sopra la chat
GM_addStyle('div.dati1w0a.hv4rvrfc.bi6gxh9e.aov4n071.d2edcug0.pfnyh3mw.cbu4d94t.j83agx80.du4w35lb.l9j0dhe7.rq0escxv > .k4urcfbm.l9j0dhe7.j83agx80 > .sbcfpzgs.stjgntxs.ni8dbmo4.k4urcfbm.nwvqtn77.fbipl8qg.m5lcvass.io0zqebd.hybvsw6c.du4w35lb.l9j0dhe7.rq0escxv{display: none!important}');

 //nasconde pop up notifica a sinistra quando si gioca
GM_addStyle('ul[data-gt*=\"\\\"ref\\\":\\\"beeper\\\"\"] {display:none !important;}');
 //nasconde pop up notifica a sinistra sulla home
GM_addStyle('div[role="complementary"][aria-labelledby] {display:none!important;}');
/////////////////////////////////////////////////////////////////////////////////////////////////
//nascondi blocco publicita app giochi facebook
GM_addStyle('div._1k76,div._pagelet_ego_pane { display:none;}');
 // ti piace questo gioco popup
GM_addStyle('._3mqg {display:none!important}');

///////////////////////crea una storia e pass con immagine dalla sez centrale rimosse
GM_addStyle('.sbcfpzgs.k4urcfbm.stjgntxs.ni8dbmo4.l82x9zwi.uo3d90p7.pw54ja7n.ue3kfks5.hybvsw6c.du4w35lb.l9j0dhe7.rq0escxv > .k4urcfbm{display:none!important}');
GM_addStyle('.gs1a9yip.j83agx80.btwxx1t3.owycx6da.jifvfom9.dlv3wnog.rl04r1d5.ni8dbmo4.stjgntxs.jbae33se.cxgpxx05.l9j0dhe7 {display:none!important}');
GM_addStyle('.m9osqain.m7msyxje.tmrshh9y.m7zwrmfr.taijpn5t.sk4xxmp2.agehan2d.n8ej3o3l.rt8b4zig.spb7xbtv.bkmhp75w.emlxlaya.s45kfl79.bp9cbjyn.p8dawk7l.abiwlrkh.l9j0dhe7.lzcic4wl.f1sip0of.esuyzwwr.i1ao9s8h.a8nywdso.qt6c0cv9.rz4wbd8a.jb3vyjys.hcukyx3x.oygrvhab.cxmmr5t8.kvgmc6g5.p7hjln8o.j83agx80.nhd2j8a9.rq0escxv.r7d6kgcz.e9989ue4.esr5mh6w.qu0x051f.hn33210v.oajrlxb2{display:none!important}');

 //nascondi trova amici guida rapida e crea link vecchia barra facebook giochi facebook
GM_addStyle('#findFriendsNav,div._59fb._tmz,#creation_hub_entrypoint { display:none;}');
////////////////////////////////////////////////////////////////////////////////////////////////
    //modifica colore home ottobre 2022
GM_addStyle('.x5e5rjt{fill: #1ef12e!important;}');
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//1 nov 2022 sidebar sinistra funziona su alcuni profili
GM_addStyle('div[data-pagelet="LeftRail"]{background-color:#494993!important;border-radius:14px;border-style:dashed;border-color:red;margin-top:0px!important;}');
GM_addStyle('div[data-pagelet="LeftRail"]:hover{background-image: url(https://media2.giphy.com/media/asG02gUfDyIxdODF76/giphy.gif);background-blend-mode: overlay;}');
    //sidebar sinistra visibile su tutti gli altri account ottobre 2022 -1nov si vede su alcuni profili in altri no
GM_addStyle('#ssrb_left_rail_start~[role="navigation"] {background-color:#494993!important;border-radius:14px;border:2px solid red!important;margin-top:0px;}');
GM_addStyle('#ssrb_left_rail_start~[role="navigation"]:hover{background-image: url(https://media2.giphy.com/media/asG02gUfDyIxdODF76/giphy.gif);background-blend-mode: overlay;}');
/////////////////////////////////////
                    //sidebar destra
GM_addStyle('div[role="complementary"]{background-color:#765414!important;border-radius:14px;border:2px solid red!important;margin-top:4px!important;}');
GM_addStyle('div[role="complementary"]:hover{background-image: url(https://media2.giphy.com/media/asG02gUfDyIxdODF76/giphy.gif);background-blend-mode: overlay;}');
//////////////////////////////////////////////////////////feed piu grandi
GM_addStyle('.x6o7n8i.x1unhpq9.x1hc1fzr > div{width:140%!important;margin-left:-100px;border-radius:14px;border:2px solid lime!important;margin-top:4px!important;}');
////////////////////////////////////////////////////////////////////////
                   //storie reels stanze all inizio feed funziona su tutti i profili
GM_addStyle('.x1y1aw1k.x1yztbdb.xl56j7k.x1q0g3np.x78zum5{display:none!important;}');
    //tasto menu accanto ha messaggi
GM_addStyle('.x9e5oc1 > .x1qrby5j.x7ja8zs.x1t2pt76.x1lytzrv.xedcshv.xarpa2k.x3igimt.x12ejxvf.xaigb6o.x1beo9mf.xv2umb2.x1jfb8zj.x1h9r5lt.x1h91t0o.x4k7w5x .x1qhmfi1.x100vrsf.x1vqgdyp.x1n2onr6.xkhd6sd.x18d9i69.x4uap5.xexx8yu.xl56j7k.x78zum5.x9f619.xm0m39n.x1qhh985.xcfux6l.x972fbf.xww2gxu.x18nykt9.xudhj91.x14yjl9h.x6s0dn4.x1a2a7pz.x1lku1pv.x87ps6o.xggy1nq.x1hl2dhg.x16tdsg8.x1mh8g0r.xat24cr.x11i5rnm.xdj266r.xe8uvvx.x1ypdohk.xav7gou.xaqea5y.x1b1mbwd.x6umtig.x1i10hfl{display:none!important;}');

    //////////////////no login recent
var $l = jQuery.noConflict();
$l(document).ready(function() {
if(!document.querySelectorAll('.removableItem a[role="button"][ajaxify^="/login/device-based"]').length)
	return;
var x=document.querySelectorAll('.removableItem a[role="button"][ajaxify^="/login/device-based"]');
  for(var i=0;i<x.length;i++)
	x[i].click();

})();

})();
/////////