Revert to Old Roblox Font

Change the font on Roblox back to the old font (Gotham) Based off verticalfx's userscript

当前为 2024-04-19 提交的版本,查看 最新版本

// ==UserScript==
// @name         Revert to Old Roblox Font
// @namespace    https://tampermonkey.net
// @version      1.0
// @description  Change the font on Roblox back to the old font (Gotham) Based off verticalfx's userscript
// @author       void1z
// @match        *://*.roblox.com/*
// @grant        none
// @license MIT
// @run-at document-startv
// ==/UserScript==


(function() {
    'use strict';

    // they are bound to remove it from their css file, so i'll probably update it when it comes to that time
    var customFont = 'HCo Gotham SSm';

    var css = '* { font-family: "' + customFont + '" !important; }';
    var head = document.head || document.getElementsByTagName('head')[0];
    var style = document.createElement('style');

    head.appendChild(style);
    style.type = 'text/css';

    if (style.styleSheet) {
        style.styleSheet.cssText = css;
    } else {
        style.appendChild(document.createTextNode(css));
    }

})();