feed facebook grandi

feed large

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name            feed facebook grandi
// @namespace       https://greasyfork.org/users/237458
// @version         0.7
// @description     feed large
// @author          figuccio
// @match           https://*.facebook.com/*
// @grant           GM_addStyle
// @run-at          document-start
// @icon            https://facebook.com/favicon.ico
// @require         https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js
// @noframes
// @license         MIT
// ==/UserScript==
(function() {
    'use strict';
GM_addStyle(`
 /* Stile  per gli elementi con bordo rosso ha cosa stai pensando bordo*/
  .xz9dl7a.xf7dkkf.xv54qhq.x1a8lsjc.x1a02dak.x78zum5.x6s0dn4{
   border-radius:14px;
   border:2px solid red!important;
  }

  /* Stile specifico per il bordo verde sui feed */
  .x6o7n8i.x1unhpq9.x1hc1fzr > div {
   border-radius:14px;
   border:2px solid lime!important;
  }

`);
var $ = window.jQuery;//$ evita triangolo giallo
$(document).ready(function() {
    // Aumenta la larghezza di alcuni elementi del feed per renderli più grandi
    function adjustWidths() {
        const feedElements = document.querySelectorAll('.x193iq5w.xvue9z.xq1tmr.x1ceravr');
        feedElements.forEach(element => {
            if (element.style.width !== '1000px') {
                element.style.width = '1000px';
            }
        });
    }

    // Osserva le modifiche nel documento e aggiusta le larghezze dei feed
    const observer = new MutationObserver(adjustWidths);
    observer.observe(document.body, { childList: true, subtree: true });

    // Aggiusta le larghezze quando la pagina è completamente caricata
    window.addEventListener('load', adjustWidths);
 });
})();