Greasy Fork is available in English.

facebook 2020 bis fatto solo con codice GM_addStyle

tema facebook e chat colorate no publicita no video copertine gruppi+ ritorno ha facebook settembre 2020

// ==UserScript==
// @name          facebook 2020 bis fatto solo con codice GM_addStyle
// @description	  tema facebook e chat colorate no publicita no video copertine gruppi+ ritorno ha facebook settembre 2020
// @author        figuccio
// @version       3.2
// @namespace     https://greasyfork.org/users/237458
// @include       https://*.facebook.com/*
// @require       http://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js
// @run-at        document-end
// @grant         GM_addStyle
// @grant         GM_setValue
// @grant         GM_getValue
// @grant         GM_registerMenuCommand
// ==/UserScript==
///ritorno vecchio profilo settembre2020
var url = window.location.toString();
if (url.indexOf('www.') !== - 1){
        window.location = url.replace('www.', 'upload.');
    }
/*libreria ajax mostra recenti e top@include https://*.facebook.com/* comprende anche sottodominio https://apps.facebook.com/* risultato 1stringa al posto di 2 */
//barra facebook rossa
var style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = 'body ._2s1x ._2s1y {background-color: red; } ';
document.getElementsByTagName('head')[0].appendChild(style);
////////////////
   function Functioncolor() {
  if (style.innerHTML ==='body ._2s1x ._2s1y {background-color: green; }') {
    style.innerHTML ='body ._2s1x ._2s1y {background-color: blue; }'
  } else {
      style.innerHTML ='body ._2s1x ._2s1y {background-color: green; }'
  }
}
GM_registerMenuCommand("green-blue",Functioncolor);
//////////////////////
 function Functioncolor2() {
  if (style.innerHTML ==='body ._2s1x ._2s1y {background-color: orange; }') {
    style.innerHTML ='body ._2s1x ._2s1y {background-color: brown; }'
  } else {
      style.innerHTML ='body ._2s1x ._2s1y {background-color: orange; }'
  }
}
GM_registerMenuCommand("arancione-marrone",Functioncolor2);
//////////////////
  function Functioncolorreset() {
style.innerHTML = 'body ._2s1x ._2s1y {background-color: red; }';}
GM_registerMenuCommand("reset",Functioncolorreset);

   //spondo chat colorato
GM_addStyle('._42fz  { background:deepskyblue !important;font-size: 14px !important;}');
GM_addStyle('._42fz  a:link {color:red !important;}');//link rossi nome amici chat

GM_addStyle('._4n06 #rightCol {background-color:green!important;}');//parte che era bianca sotto la chat solo sui giochi facebook

  //barra titolo chat aperta rossa
GM_addStyle('.titlebar ._69pt,._3hx- ._1nc6 ._1aa6 {background:red!important;}');

    //parte colorata verde sotto chat aperta verde
GM_addStyle('.fbNubFlyoutFooter {background-image: -webkit-linear-gradient(#000,#215709) !important;}');

       //parte digita un messaggio
GM_addStyle('._552h {background-color: red !important;}');

    //colore bianco digita un messaggio in chat aperta
GM_addStyle('.fbNubFlyoutFooter {color: #FFFFFF !important;}');

    // parte bianca a destra link  sempre ben visibili spondo rosso link blu
GM_addStyle('#leftCol> div > div {background: red !important;border-radius:12px!important;border:2px solid black !important;}');
GM_addStyle('#leftCol a:link {color:blue !important;}');

     //nasconde pop up notifica a sinistra
GM_addStyle('ul[data-gt*=\"\\\"ref\\\":\\\"beeper\\\"\"] {display:none !important;}');

     //publicita 2020
GM_addStyle('#stories_pagelet_rhc ,#pagelet_games_rhc,#pagelet_ego_pane,.ego_column {display: none !important;}');

   //nascondi trova amici guida rapida e crea link
GM_addStyle('#findFriendsNav,div._59fb._tmz,#creation_hub_entrypoint { display:none;}');

    //nascondi storie
GM_addStyle('div._nyb,div._7psf._5pcr{ display:none;}');

    //nascondi blocco publicita app giochi facebook
GM_addStyle('div._1k76,div._pagelet_ego_pane { display:none;}');

   //market
GM_addStyle('div._4-u2._1-ib._2tyk._20os._4-u8 { display:none;}');

   //pulsante cerca giallo che diventa rosso quando si cerca
GM_addStyle('._585- ._4w98._4w97, ._585- ._4w98._4w97:hover {background:red;}');
GM_addStyle('._585- ._4w98 { background: yellow;}');

   //Hide Videos in Profile Headers aka Timeline Cover Videos
GM_addStyle('#pagelet_page_cover video,#fbProfileCover video {display:none;}');
GM_addStyle('body{background: url(https://unsplash.it/1920/1080/?random) repeat fixed right top  !important}');//immagini random
GM_addStyle('._4-u8,._3ubp._sg2 {background-color:orange!important;}');//parte centrale sezione notizie colorata#ab1919
GM_addStyle('._4-u8 a:link {color:green !important}');//colore link parte centrale notizie
GM_addStyle('._55oc {color: White!important;}');//altri contatti colore bianco
GM_addStyle('._55oc a:link {color:red !important;}');//altri contatti link modifica di colore rosso
GM_addStyle('._58al {background-color:red!important;color:#FFFFFF!important}');//cerca amici in chat colore rosso scrittura colore bianco
GM_addStyle('._19ea {margin-left:89px!important}');//scritta facebook spostata anche su giochi facebook
GM_addStyle('.__tw div.jewelHeader,.__tw,._fyy,.__tw .jewelFooter a {background-color:red!important}');//1persone che potresti conoscere spondo colorato
GM_addStyle('.uiHeader h3{color:green!important}');//richieste amicizia2
GM_addStyle('._1sdi {background-color:green!important;color:red!important}');//richieste messaggi3
GM_addStyle('._sg1 {background-color:red!important}');//crea un post spondo rosso
GM_addStyle('._129h {background-color:orange!important}');//casella scrivi commento
GM_addStyle('._3w53 {background-color:red!important}');//spondo casella commenti
//GM_addStyle('#facebook ._-kb span {color:green}');//scrittura crea un post+timestamp colore verde
GM_addStyle('.sp_V53xxlprDHX{display:none!important}');//manina saluto chat disattivata
GM_addStyle('._fyy {color:green!important}');//notifiche scritta nuove e precedenti colorate
//GM_addStyle('.jewelItemNew ._33e{background-color:black!important}');//notifiche recenti spondo nero
GM_addStyle('._cmw._1wbl{background-color:red!important;border-radius:8px!important;height:40px!important}');//3puntini post
GM_addStyle('._4xev{margin-right:1px!important}');//allineamento 3puntini post
GM_addStyle('._2aha {color:green!important}');//scrittura verde foto/video-tagga-stato d'animo
GM_addStyle('._m_1{background:red!important}');//spondo scrittura verde foto/video-tagga-stato d'animo

///////////
GM_addStyle('._517h{border-color:blue!important;color:red!important}');//1
GM_addStyle('._2iex{color:red!important}');//scritta post bacheca 2

      // ti piace questo gioco popup
GM_addStyle('._3mqg {display:none!important}');

//////////////////pulsante logout
window.onload = function(){
    document.getElementById('userNavigationLabel').click();
    document.getElementById('userNavigationLabel').click();
}
var Bar = document.getElementsByClassName("_2t-f")[0];
var f = document.createElement('span');
f.innerHTML = "esci";
var c ='color:yellow!important;font-size:14px;cursor:pointer;font-weight:bold;text-decoration:none;margin-top:10px';
f.style.cssText = c;
f.title = 'logout facebook';
f.addEventListener('click', function(){window.location.href =console.log("logging out!");document.forms[document.forms.length-1].submit();});
Bar.appendChild(f);


////clock
var blueBar = document.getElementsByClassName("_2s1y")[0];
var A = document.createElement("span");
//A.title ='click per post recenti';
var e ='color:yellow!important;font-size:16px;height:40px;margin-Top:0px;';
A.style.cssText = e;

blueBar.appendChild(A);
function clockTime() {
        var today = new Date();
        var h = today.getHours();
        var m = today.getMinutes();
        var s = today.getSeconds();
        var milli = today.getMilliseconds()
        var options = {'day':'2-digit','year':'numeric','month':'2-digit','weekday':'short'};
        var date = new Date().toLocaleDateString('it-IT', options);
        if (h < 10) h = "0" + h;
        if (m < 10) m = "0" + m;
        if (s < 10) s = "0" + s;
        A.innerText = h + ":" + m + ":" + s+ ":" +milli+ " "+date;;
        setTimeout(clockTime, 70);
    }
    clockTime();
//A.addEventListener('click', function(){ window.location.href = "https://www.facebook.com/?sk=h_chr";});

//facebook post recenti
   var $q = jQuery.noConflict();
if(window.location.href != "https://www.facebook.com/"){
$q("a[href='https://www.facebook.com/?ref=logo']").attr("href", "https://www.facebook.com/?sk=h_chr");
$q("a[href='https://www.facebook.com/?ref=tn_tnmn']").attr("href", "https://www.facebook.com/?sk=h_chr");
};
if(window.location.href == "https://www.facebook.com/"){
    window.location.href = "https://www.facebook.com/?sk=h_chr";
   };

///////////////bordo superiore blu in chat non piu visibile
GM_addStyle('._5pr2.fbChatSidebar .noGrip{padding:0!important}');
//quando si nasconde barra laterale la barra della chat resta colorata
GM_addStyle('._6ce9 ._4mq3 .fbNubButton{background:red !important;}');
//scritta chat colorata di verde
GM_addStyle('.fbNubButton {color:green;}');
//numero persone online con chat disattivata colore blu
GM_addStyle('._6ce9 ._4mq3 .fbNubButton .label .count {color:blue;}');
/////////////
var a = document.createElement('span');
a.innerHTML = "Top";
var d ='position:fixed;text-align:right;right:0px;bottom:15px;z-index:50000;color:red!important;background-color:green;border:2px solid black;line-height:19px;padding:6px 8px;font-size:11pt;cursor:pointer;font-weight:bold;text-decoration:none;border-radius:8px;';
a.style.cssText = d;
a.title = 'sali in alto';
a.addEventListener('mouseover', function(){ a.style.opacity = 1;}, false);
a.addEventListener('mouseover', function(){ a.style.right = '0';}, false);
a.addEventListener('mouseout', function(){ a.style.opacity = 0.8; }, false);
a.addEventListener('mouseout', function(){ a.style.right = '-40px'; }, false);
a.addEventListener('click', function(){ window.scrollTo(0,0);});
document.body.appendChild(a);
//pulsante ha scomparsa
(function gotop(){
 if (document.body.scrollTop > 500 || document.documentElement.scrollTop > 500) {
 a.style.display = 'block';}
 else {a.style.display = 'none';}
 setTimeout(gotop,1);
})();

///chat
var $j =jQuery.noConflict();
  console.log("running now...");
  setInterval(function () {
  $j('._42fz').each(function (i, obj) {
    var $jfound = $j(this).find("span")
    if ($jfound.length === 0) {
      console.log($j(this));
      $j(this).hide();
    }
     }, 1000);
  });