Unset All Font Families

Remove all font-family specifications on any page

目前為 2025-05-14 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Unset All Font Families
// @description  Remove all font-family specifications on any page
// @match        *://*/*
// @run-at       document-start
// @version 0.0.1.20250514205423
// @namespace https://greasyfork.org/users/1435046
// ==/UserScript==

(function() {
    const style = document.createElement('style');
    style.textContent = `
        /* Unset the font-family on every element and pseudo-element */
        * ,
        *::before,
        *::after {
            font-family: ui-sans-serif, system-ui !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
        }
    `;
    document.documentElement.appendChild(style);
})();