您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Debloat Facebook
// ==UserScript== // @name Facebook Debloater // @namespace http://tampermonkey.net/ // @version 0.1 // @description Debloat Facebook // @author mut-ex // @match https://www.facebook.com/* // @grant none // @license MIT // ==/UserScript== (function () { 'use strict'; function hideCrap() { // Select all divs with the classes "m" and "displayed" const divs = document.querySelectorAll('div.m.displayed'); divs.forEach(div => { // Hide stories const storiesDiv = div.querySelector('div.m.hscroller'); if (storiesDiv) { div.style.display = 'none'; } // Hide sponsored const sponsoredSpans = div.querySelectorAll('span.f5'); sponsoredSpans.forEach(span => { if (span.textContent.startsWith("Sponsored")) { div.style.display = 'none'; } }); // Hide 'Follow suggestions' const followSpans = div.querySelectorAll('span.f2'); followSpans.forEach(span => { if (span.innerText === "Follow") { div.style.display = 'none'; } }); }); } setInterval(hideCrap, 1000); })();