new Facebook figuccio

new facebook con logo e home facebook recenti

当前为 2021-12-25 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name new Facebook figuccio
  3. // @namespace https://greasyfork.org/users/237458
  4. // @version 7.7
  5. // @author figuccio
  6. // @description new facebook con logo e home facebook recenti
  7. // @include https://*.facebook.com/*
  8. // @include https://*.facebook.com/me/*
  9. // @grant GM_addStyle
  10. // @grant GM_setValue
  11. // @grant GM_getValue
  12. // @grant GM_registerMenuCommand
  13. // @run-at document-start
  14. // @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
  15. // @icon https://www.google.com/s2/favicons?domain=facebook.com
  16. // @require https://greasyfork.org/scripts/12228/code/setMutationHandler.js
  17. // @noframes
  18. // @license MIT
  19. // ==/UserScript==
  20. (function() {
  21. 'use strict';
  22. //blocco temporanio click su ok dopo 5sec
  23. setTimeout(function(){
  24. document.querySelector("body > div.l9j0dhe7.tkr6xdv7 > div.rq0escxv.l9j0dhe7.du4w35lb > div > div.iqfcb0g7.tojvnm2t.a6sixzi8.k5wvi7nf.q3lfd5jv.pk4s997a.bipmatt0.cebpdrjk.qowsmv63.owwhemhu.dp1hu0rb.dhp61c6y.l9j0dhe7.iyyx5f41.a8s20v7p > div > div > div > div.gjzvkazv.dati1w0a.f10w8fjw.hv4rvrfc.ecm0bbzt.cbu4d94t.j83agx80.c4hnarmi > div > div > div.bp9cbjyn.j83agx80.taijpn5t.c4xchbtz.by2jbhx6.a0jftqn4").click();}, 5000);
  25.  
  26. //////////////////////popup notifiche in basso ha sinistra rimozione
  27. (function() {var css = "";
  28. if (false || (document.domain == "facebook.com" || document.domain.substring(document.domain.indexOf(".facebook.com") + 1) == "facebook.com"))
  29. css += [
  30. "",
  31. " /*nasconde pop up notifica a sinistra*/",
  32. "ul[data-gt*=\"\\\"ref\\\":\\\"beeper\\\"\"] { display:none !important; }",
  33. "",
  34. "ul[data-gt*=\"\\\"ref\\\":\\\"beeper\\\"\"], ul.poy2od1o.p7hjln8o > li.pmk7jnqg.pedkr2u6.ilcmz9jb.j9ispegn > :not(.cwj9ozl2), .poy2od1o ul.p7hjln8o > li.pmk7jnqg.pedkr2u6.ilcmz9jb.j9ispegn > :not(.cwj9ozl2), .poy2od1o.kavbgo14[class*='-mode'] li > :not([class*='-mode']) { display:none !important; } ",
  35. ].join("\n");
  36.  
  37. if (typeof GM_addStyle != "undefined") {
  38. GM_addStyle(css);
  39. } else if (typeof PRO_addStyle != "undefined") {
  40. PRO_addStyle(css);
  41. } else if (typeof addStyle != "undefined") {
  42. addStyle(css);
  43. } else {
  44. var node = document.createElement("style");
  45. node.type = "text/css";
  46. node.appendChild(document.createTextNode(css));
  47. var heads = document.getElementsByTagName("head");
  48. if (heads.length > 0) {
  49. heads[0].appendChild(node);
  50. } else {
  51. // no head yet, stick it whereever
  52. document.documentElement.appendChild(node);
  53. }
  54. }
  55. })();
  56.  
  57. //home preferiti recenti pagina centrale
  58. GM_addStyle('.qsy8amke {display:none!important;}');
  59. //watch marketplace groups gaming
  60. GM_addStyle('div[role="navigation"][aria-label="Facebook"]>ul>li:nth-child(2){display:none!important;}');
  61. GM_addStyle('div[role="navigation"][aria-label="Facebook"]>ul>li:nth-child(3){display:none!important;}');
  62. GM_addStyle('div[role="navigation"][aria-label="Facebook"]>ul>li:nth-child(4){display:none!important;}');
  63. GM_addStyle('div[role="navigation"][aria-label="Facebook"]>ul>li:nth-child(5){display:none!important;}');
  64.  
  65. //cambio colore barra facebook+pagina centrale random 11 colori ogni minuto rimuovere la ,dopo body per avere solo la barra facebook che cambia colore
  66. $(function() {
  67. var colors = ["#0099cc","#587b2e","#990000","#000000","#1C8200","#987baa","#981890","#AA8971","#1987FC","#99081E","#ff5722"];
  68. setInterval(function() {
  69. var bodybgarrayno = Math.floor(Math.random() * colors.length);
  70. var selectedcolor = colors[bodybgarrayno];
  71. $("body, .thodolrn ").css("background",selectedcolor);
  72. }, 30000);
  73. })
  74. //////////////////////
  75. //tasto menu accanto ha messaggi
  76. GM_addStyle('.bx45vsiw > .iyyx5f41.dhp61c6y.dp1hu0rb.owwhemhu.qowsmv63.cebpdrjk.bipmatt0.pk4s997a.q3lfd5jv.k5wvi7nf.t1p8iaqh.a8s20v7p.abs2jz4q.a6sixzi8.tojvnm2t > .q676j6op.qypqp5cg.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.tdjehn4e.oajrlxb2 {display: none!important}');
  77. //giochi sopra la chat
  78. 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}');
  79. //elimina piccolo spazio occupato inutilmente sopra contatti dopo la rimozione dei giochi sopra la chat
  80. GM_addStyle('.cxgpxx05 > div > .discj3wi.d2edcug0.pfnyh3mw.cbu4d94t.j83agx80.du4w35lb.l9j0dhe7.rq0escxv{display: none!important}');
  81. /////////////////////rimuove sponsorizzati zona chat
  82. var xpath = function (xpathToExecute) {
  83. var result = [];
  84. var nodesSnapshot = document.evaluate(xpathToExecute, document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
  85. for (var i = 0; i < nodesSnapshot.snapshotLength; i++) {
  86. result.push(nodesSnapshot.snapshotItem(i));
  87. }
  88. return result;
  89. };
  90.  
  91. var thePath = "//div/div[1]/div/div[3]/div/div/div[1]/div[1]/div/div[3]/div/div/div[1]/div/div[1]/span/div";
  92.  
  93. var runCount;
  94. var intv = 500; // Esegui ogni 0,5 secondi
  95. var intvEnd = 5000 // Cancella dopo 5 secondi
  96. var go = setInterval(pollDOM, intv);
  97. function pollDOM() {
  98. runCount+=intv; // Aggiungi il valore intv a runCount ogni volta per contare la quantità di ms eseguiti
  99. if (runCount >= intvEnd) { // Cancella intervallo dopo intvEnd
  100. clearInterval(go);
  101. }
  102.  
  103. try {
  104. if (xpath(thePath)[0].children[0].children.length) {
  105. xpath(thePath)[0].children[0].remove();
  106. }
  107. } catch {}
  108. }
  109.  
  110. ////////////////////////////////////////
  111. function NEWaddtopnavbarlogout(){
  112. var logout=document.createElement('a');
  113. logout.innerHTML="&nbsp;Log<br/>&nbsp;Out&nbsp;";
  114. logout.href="";
  115. logout.id="Logout";
  116. logout.title = 'esci';
  117. logout.style="text-decoration: none;left:7px;color:var(--primary-text);position:relative;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%;"
  118. document.querySelectorAll('div[role="banner"] div[role="navigation"]')[1].firstChild.parentNode.insertBefore(logout,document.querySelectorAll('div[role="banner"] div[role="navigation"]')[1].firstChild);
  119. logout.addEventListener("click", function(e) {e.preventDefault(); document.querySelector('div[aria-label="Account"]').click(); window.setTimeout(function(){document.querySelector('div[data-nocookies="true"]').querySelector('span').click();e.target.innerHTML='<img src="//www.facebook.com/images/loaders/indicator_blue_small.gif"/>'},100)},false);
  120. }
  121. window.setTimeout(NEWaddtopnavbarlogout,10000);
  122. GM_registerMenuCommand("✅riavvia logout",NEWaddtopnavbarlogout);
  123.  
  124. ////////////////
  125. $(document).ready(function() {
  126. function updateClock() {
  127. let time = new Date().toLocaleTimeString();
  128. let d = new Date();
  129. let ms = d.getMilliseconds()
  130. node.innerHTML = time+ ":" +ms;
  131. }
  132. let node = document.createElement('a');
  133. node.style="text-decoration: none;margin-left:800px;position:fixed;line-height:12px;width:auto;padding:3px 6px;color:var(--primary-text);background-color:var(--secondary-button-background);font-family:sans-serif;top:6px;text-align:center;border-radius:10px;"
  134. document.querySelectorAll('div[role="banner"] div[role="navigation"]')[1].firstChild.parentNode.insertBefore(node,document.querySelectorAll('div[role="banner"] div[role="navigation"]')[1].firstChild);
  135. node.addEventListener('click',function(e) {e.preventDefault();document.querySelector('div[aria-label="Account"]').click();window.setTimeout(function() {document.querySelector('div[data-nocookies="true"]').querySelector('span').click();}, 100)}, false);
  136.  
  137. document.body.appendChild(node);
  138. setInterval(() => updateClock(), 70);
  139. node.id="clock";
  140. node.title = 'logout';
  141. //mostra nascondi orologio
  142. function myFunctionclock() {
  143. node.style.display = ((node.style.display!='none') ? 'none' : 'block');}
  144. //GM_registerMenuCommand("nascondi-clock/mostra-clock",myFunctionclock);
  145.  
  146. function dateClock() {
  147. let date = new Date();
  148. let datario = date.toLocaleString('it',{
  149. day:'2-digit',year:'numeric',month:'long',weekday:'long',
  150. });
  151. node1.innerHTML = datario;
  152. }
  153. let node1 = document.createElement('a');
  154. node1.style="text-decoration:none;margin-left:800px;position:fixed;line-height:12px;width:auto;padding:3px 6px;color:var(--primary-text);background-color:var(--secondary-button-background);font-family:sans-serif;top:6px;text-align:center;border-radius:10px;"
  155. document.querySelectorAll('div[role="banner"] div[role="navigation"]')[1].firstChild.parentNode.insertBefore(node1,document.querySelectorAll('div[role="banner"] div[role="navigation"]')[1].firstChild);
  156. node1.addEventListener('click',function(e) {e.preventDefault();document.querySelector('div[aria-label="Account"]').click();window.setTimeout(function() {document.querySelector('div[data-nocookies="true"]').querySelector('span').click();}, 100)}, false);
  157.  
  158. document.body.appendChild(node1);
  159. setInterval(() => dateClock(), 1000);
  160. node1.id="clock1";
  161. node1.title = 'logout';
  162. function myFunctiondata() {
  163. node1.style.display = ((node1.style.display!='none') ? 'none' : 'block');}
  164. //GM_registerMenuCommand("nascondi-data/mostra-data",myFunctiondata);
  165.  
  166. function Functionok() {
  167. if (node.style.display === 'none') {
  168. node.style.display = 'block';
  169. node1.style.display = 'none';
  170. } else {
  171. node.style.display = 'none';
  172. node1.style.display = 'block';
  173. }
  174. }
  175. //data e ora alternata ogni 5 secondi
  176. setInterval(() => Functionok(), 5000);
  177. //GM_registerMenuCommand("mostra data /time",Functionok);
  178. //al passaggio mouse
  179. node.addEventListener('mouseover', Functionok);//passaggio del mouse
  180. node1.addEventListener('mouseout',Functionok);//toglie il mouse
  181. node1.style.display = 'none';
  182. });
  183. //accetta tutti cookie facebook
  184. document.cookie = "datr=7JceYLHE4muIe3TIZpm1aiuj; domain=.facebook.com;max-age=315360000";
  185. if(!localStorage.reload) {
  186. setTimeout("document.location.reload()",2000);
  187. localStorage.reload = 1;
  188. }
  189. //popup accetta cookie nascosto
  190. GM_addStyle('div[data-testid=\"cookie-policy-dialog\"]{display: none!important}');
  191. //memorizza password
  192. GM_addStyle('.sjgh65i0 > .k4urcfbm.l9j0dhe7.j83agx80 > .sbcfpzgs.stjgntxs.ni8dbmo4.k4urcfbm.nwvqtn77.fbipl8qg.m5lcvass.io0zqebd.hybvsw6c.du4w35lb.l9j0dhe7.rq0escxv > .k4urcfbm {display: none!important}');
  193. //crea stanza
  194. GM_addStyle('.ecm0bbzt.e5nlhep0.l9j0dhe7.k4urcfbm.du4w35lb > .du4w35lb.l9j0dhe7.rq0escxv {display: none!important}');
  195. ////////////////////////////////////////////////////////////////////////
  196.  
  197. //logo e home sempre feed piu recenti
  198. var CONTENT_HAS_LINKS_SELECTORS = ".userContentWrapper, ._5pcr";
  199. var BLOCK_LIST_SELECTORS = "._5r69, ._5g-l, ._2r3x, .uiLikePageButton, .uiStreamSponsoredLink";
  200. var observer;
  201. var contentAreaFoundTimeout;
  202. function findAncestor (el, cls) {
  203. while ((el = el.parentElement) && !el.classList.contains(cls));
  204. return el;
  205. }
  206.  
  207. function filterPosts(elements) {
  208. //console.log("filterPosts");
  209. if(!Array.isArray(elements) && !(elements instanceof NodeList)) {
  210. return filterPosts([elements]);
  211. }
  212. //console.log("elements",elements);
  213. for (var i = 0; i < elements.length; i++) {
  214. var element = elements[i];
  215. var elementDirty = false;
  216. //console.log("element",element);
  217. if (element.matches(BLOCK_LIST_SELECTORS) || element.querySelectorAll(BLOCK_LIST_SELECTORS).length>0) {
  218. elementDirty = true;
  219. } else {
  220. var allLinks = element.querySelectorAll('a');
  221. for (var j = 0; j < allLinks.length; j++) {
  222. var str = allLinks[j].getAttribute("href");
  223. if (str !== undefined && !str.startsWith("/") && !str.startsWith("#") && !str.includes("www.facebook.com")) {
  224. elementDirty = true;
  225. break;
  226. }
  227. }
  228. }
  229.  
  230. if(elementDirty) {
  231. findAncestor(element, "_4-u2").style.display = "none";
  232.  
  233. } else {
  234.  
  235. }
  236. }
  237. }
  238.  
  239. function mutationsHandler(mutations) {
  240. mutations.forEach(function(mutation) {
  241. var newNodes = mutation.addedNodes;
  242. if (newNodes !== null) {
  243. for (var i = 0; i < newNodes.length; i++) {
  244. if (newNodes[i] && newNodes[i].className && (newNodes[i].className.contains("userContentWrapper") || newNodes[i].className.contains("_5pcr"))) {
  245. filterPosts(newNodes[i]);
  246. } else if (newNodes[i] && newNodes[i].querySelectorAll) {
  247. filterPosts(newNodes[i].querySelectorAll(CONTENT_HAS_LINKS_SELECTORS));
  248. }
  249. }
  250. }
  251. });
  252. }
  253.  
  254. function setupHistoryStateListener(callback) {
  255. (function (old) {
  256. window.history.pushState = function () {
  257. old.apply(window.history, arguments);
  258. console.log("push state");
  259. callback();
  260. };
  261. })(window.history.pushState);
  262. }
  263.  
  264. function main() {
  265. //console.log("main");
  266. if (window.top != window.self) {
  267. return;
  268. }
  269.  
  270. if(window.self.location.pathname !== "/") {
  271. console.log("not on main feed");
  272. return;
  273. }
  274.  
  275. if(!window.self.location.search) {
  276. window.self.location.search = "?sk=h_chr";
  277. }
  278.  
  279. var contentArea = document.getElementById("contentArea");
  280. if(!contentArea) {
  281. console.log("contentarea not found, retry soon");
  282. if(contentAreaFoundTimeout) {
  283. clearTimeout(contentAreaFoundTimeout);
  284. contentAreaFoundTimeout = null;
  285. }
  286. contentAreaFoundTimeout = setTimeout(main, 200);
  287. return;
  288. }
  289.  
  290. console.log("contentarea found");
  291.  
  292. observer.disconnect();
  293. observer.observe(contentArea, { attributes: false, childList: true, characterData: false, subtree: true });
  294. filterPosts(document.querySelectorAll(CONTENT_HAS_LINKS_SELECTORS));
  295.  
  296. setTimeout(function() {
  297. document.body.scrollTop = 160;
  298. contentArea.style.display = "block";
  299. },100);
  300.  
  301. }
  302.  
  303. function setup() {
  304. //console.log("set up");
  305. observer = new MutationObserver(mutationsHandler);
  306.  
  307. if (document.readyState === "complete") {
  308. main();
  309. } else {
  310. window.addEventListener("load", main);
  311. }
  312.  
  313. setupHistoryStateListener(function() {
  314. setTimeout(main,1000);
  315. });
  316.  
  317. var style = document.createElement('style');
  318. style.type = 'text/css';
  319. style.innerHTML =
  320. '.home .newsFeedComposer #contentArea { display:none; }'+
  321.  
  322. document.getElementsByTagName('head')[0].appendChild(style);
  323. }
  324.  
  325. setup();
  326. })();
  327.  
  328. // Verifica che l'URL principale sia il più recente
  329. if (document.URL == "https://www.facebook.com/") window.location.href = "https://www.facebook.com/?sk=h_chr";
  330. if (document.URL == "https://www.facebook.com/?ref=tn_tnmn") window.location.href = "https://www.facebook.com/?sk=h_chr";//home giochi facebook
  331. if (document.URL == "https://www.facebook.com/?sk=h_nor") window.location.href = "https://www.facebook.com/?sk=h_chr";
  332. if (document.URL == "https://www.facebook.com/?ref=logo") window.location.href = "https://www.facebook.com/?sk=h_chr"; //logo facebook giochi facebook
  333. if (document.URL == "https://www.facebook.com/#_=_") window.location.href = "https://www.facebook.com/?sk=h_chr"; //quando si accede ha facebook da google
  334. /////////////////////////////////////////////////
  335. //nasconde pop up notifica a sinistra quando si gioca
  336. GM_addStyle('ul[data-gt*=\"\\\"ref\\\":\\\"beeper\\\"\"] {display:none !important;}');
  337.  
  338. //nascondi blocco publicita app giochi facebook
  339. GM_addStyle('div._1k76,div._pagelet_ego_pane { display:none;}');
  340. // ti piace questo gioco popup
  341. GM_addStyle('._3mqg {display:none!important}');
  342.  
  343. ///////////////////////crea una storia e pass con immagine dalla sez centrale rimosse
  344. GM_addStyle('.sbcfpzgs.k4urcfbm.stjgntxs.ni8dbmo4.l82x9zwi.uo3d90p7.pw54ja7n.ue3kfks5.hybvsw6c.du4w35lb.l9j0dhe7.rq0escxv > .k4urcfbm{display:none!important}');
  345. GM_addStyle('.gs1a9yip.j83agx80.btwxx1t3.owycx6da.jifvfom9.dlv3wnog.rl04r1d5.ni8dbmo4.stjgntxs.jbae33se.cxgpxx05.l9j0dhe7 {display:none!important}');
  346. 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}');
  347. //persone che potresti conoscere
  348. GM_addStyle('.k4urcfbm.l9j0dhe7.jktsbyx5.dy7m38rt.stjgntxs.ni8dbmo4.o7xrwllt.c8r2yrt7{display:none!important}');
  349. GM_addStyle('.bp9cbjyn.j83agx80.jnigpg78.taijpn5t.ecm0bbzt.hv4rvrfc.a5h7je3r.dati1w0a{display:none!important}');
  350. GM_addStyle('.j83agx80.btwxx1t3.i1fnvgqd.pybr56ya.hv4rvrfc.e5nlhep0.dati1w0a{display:none!important}');
  351. //sponsorizzato sopra la chat
  352. GM_addStyle('.cxgpxx05 > div:nth-of-type(1) > div > .l9j0dhe7 > .sj5x9vvc.cxgpxx05{display:none!important}');
  353. GM_addStyle('.hzawbc8m.m9osqain.lrazzd5p.g1cxx5fr.a5q79mjw.ew0dbk1b.s89635nw.c1et5uql.qv66sw1b.hpfvmrgz.d2edcug0.ik7dh3pa.oi732d6d.l9j0dhe7.stjgntxs.ni8dbmo4.a8c37x1j{display:none!important}');
  354.  
  355. GM_addStyle('.ejjq64ki.v8c10jal.e3xpq0al.d2edcug0{display:none!important}');
  356. //pulsante crea
  357. GM_addStyle('div.oi9244e8.taijpn5t.datstx6m.j83agx80.bp9cbjyn:nth-of-type(3) > .iyyx5f41.dhp61c6y.dp1hu0rb.owwhemhu.qowsmv63.cebpdrjk.bipmatt0.pk4s997a.q3lfd5jv.k5wvi7nf.t1p8iaqh.a8s20v7p.abs2jz4q.a6sixzi8.tojvnm2t > .q676j6op.qypqp5cg.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.tdjehn4e.oajrlxb2{display:none!important}');
  358.  
  359. ///////////////////////////////////////////////////barra blu su giochi facebook////////
  360. GM_addStyle('body ._2s1x ._2s1y{background-color:blue!important;}');
  361. //nascondi trova amici guida rapida e crea link vecchia barra facebook giochi facebook
  362. GM_addStyle('#findFriendsNav,div._59fb._tmz,#creation_hub_entrypoint { display:none;}');
  363.  
  364. //barra ricerca nascosta giochi
  365. GM_addStyle('._4kny ._585- {display: none!important}');
  366.  
  367. //bordi tratteggiati
  368. GM_addStyle('#facebook ._-kb div.rirtxc74{ border-radius:14px;border-style:dashed;border-color:green;border-spacing:26px;margin:px;}');//margin 14px
  369.  
  370. //colore spondo nomi arrotondati
  371. GM_addStyle('.nnctdnn4 {min-height: 44px; background-color:#da2456;border-radius:22px;margin:3px!important;}');
  372. //bordi sez centrale
  373. GM_addStyle('.sbcfpzgs {--T68779821: 0 1px 2px var(--shadow-2); border:red; border-style: dashed;border-width: 2px;}');
  374.  
  375. //icone compresa la home .aaxa7vy3
  376. GM_addStyle('.aaxa7vy3,.em6zcovv{fill: #1ef12e!important;}');
  377. //sidebar sinistra
  378. GM_addStyle('div[data-pagelet="LeftRail"]{background-color:blue!important;}');
  379. //eliminato piccolo spazio sopra sidebar sinistra
  380. GM_addStyle('.tr9rh885{margin-top:0px!important;}');
  381. //sidebar destra chat
  382. GM_addStyle('div[role="complementary"]{background-color:orange!important;}');
  383.  
  384. ////////////////////////////////////////scritta contatti in chat e i tuoi collegamenti//
  385. GM_addStyle('.aodizinl{background-color:red!important;padding:15px!important;border-radius:20px}');
  386. //icone contatti cerchio piu visibile 3puntini ... sui post cerchio piu visibile
  387. GM_addStyle('.pkj7ub1o::after{background-color:#ee82ee63!important}');
  388.  
  389. ///////////////////////sezione notizie larga interferisce con tagga amici
  390. GM_addStyle('.oh7imozk {width:100%!important;}');
  391. //margine superiore sezione notizie rivisto
  392. GM_addStyle('.oh7imozk {margin-top:5px!important;}');
  393. //////////no login recent
  394. $(document).ready(function() {
  395.  
  396. if(!document.querySelectorAll('.removableItem a[role="button"][ajaxify^="/login/device-based"]').length)
  397. return;
  398. var x=document.querySelectorAll('.removableItem a[role="button"][ajaxify^="/login/device-based"]');
  399. for(var i=0;i<x.length;i++)
  400. x[i].click();
  401.  
  402. })();
  403.  
  404.  
  405.  
  406.