您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Dynamically removes "Removed suggested for You" and "Removed reels" elements on Facebook
// ==UserScript== // @name Remove Facebook "Suggested for You" and "Reels" // @namespace - // @version 1.1 // @description Dynamically removes "Removed suggested for You" and "Removed reels" elements on Facebook // @author jamescasipong // @match https://www.facebook.com/* // @grant none // ==/UserScript== (function () { 'use strict'; // Function to remove elements based on text content function removeElementsByText(textArray) { textArray.forEach((text) => { const elements = Array.from(document.querySelectorAll('div')) .filter(el => el.textContent.trim().toLowerCase().includes(text.toLowerCase())); elements.forEach(element => element.remove()); }); } // Initialize MutationObserver const observer = new MutationObserver(() => { removeElementsByText([ "removed suggested for you", "removed reels" ]); }); // Start observing the body for changes observer.observe(document.body, { childList: true, subtree: true, }); // Initial cleanup on page load removeElementsByText([ "removed suggested for you", "removed reels" ]); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址