您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
7/11/2025, 11:02:20 AM
// ==UserScript== // @name Remove 'Open app' bar // @namespace Violentmonkey Scripts // @match *://*.facebook.com/* // @grant none // @version 1.3 // @author - // @description 7/11/2025, 11:02:20 AM // @license MIT // ==/UserScript== (function () { "use strict"; function removeRobotoV2() { // Step 1: Get first element with the class (assumes they share the same style) const first = document.querySelector('.native-text'); if (first) { // Step 2: Get computed font-family and remove Roboto-V2 const computedFonts = getComputedStyle(first).fontFamily.split(',').map(f => f.trim()); const newFonts = computedFonts.filter(f => f.replace(/["']/g, '') !== 'Roboto-V2'); // Step 3: Create a new style rule to override globally const style = document.createElement('style'); style.textContent = ` .native-text { font-family: ${newFonts.join(', ')} !important; } `; document.head.appendChild(style); } } function zap() { document.querySelector('#screen-root > div > div.m.fixed-container.bottom')?.remove(); } function fixAll() { zap(); } removeRobotoV2(); fixAll(); const observer = new MutationObserver(() => fixAll()); observer.observe(document.documentElement, { childList: true, subtree: true, }); ['pushState', 'replaceState'].forEach(fn => { const orig = history[fn]; history[fn] = function (...args) { const ret = orig.apply(this, args); Promise.resolve().then(fixAll); return ret; }; }); })();