Greasy Fork 还支持 简体中文。

feed facebook grandi

feed large

目前為 2024-03-29 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name            feed facebook grandi
// @namespace       https://greasyfork.org/users/237458
// @version         0.4
// @description     feed large
// @author          figuccio
// @match           https://*.facebook.com/*
// @grant           GM_addStyle
// @run-at          document-start
// @icon            https://facebook.com/favicon.ico
// @noframes
// @license         MIT
// ==/UserScript==

(function() {
    'use strict';

    // Funzione per aggiungere stili a un selettore
    function addStyle(selector, styles) {
        const elements = document.querySelectorAll(selector);
        elements.forEach(element => {
            Object.assign(element.style, styles);
        });
    }

   // Aggiunge bordo rosso e bordo verde ai feed e al contenitore "cosa stai pensando"
   //ha cosa stai pensando bordo
GM_addStyle('.xz9dl7a.x1swvt13.x1pi30zi.x1a8lsjc.x1a02dak.x78zum5.x6s0dn4{border-radius:14px;border:2px solid red!important;}');
//bordo verde sui feed
GM_addStyle('.x6o7n8i.x1unhpq9.x1hc1fzr > div{border-radius:14px;border:2px solid lime!important;margin-top:4px!important;}');


    // 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);

    // Nasconde un elemento del menu accanto ai 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.x17r0tee.x1sy0etr.xd10rxx.x1ejq31n.x1i10hfl { display: none !important; }');
})();