Skip to content

Instantly share code, notes, and snippets.

@leap0x7b
Created December 28, 2023 11:24
Show Gist options
  • Select an option

  • Save leap0x7b/b248729d5fc6feab2a4f5f1df434a80e to your computer and use it in GitHub Desktop.

Select an option

Save leap0x7b/b248729d5fc6feab2a4f5f1df434a80e to your computer and use it in GitHub Desktop.

Revisions

  1. leap0x7b created this gist Dec 28, 2023.
    27 changes: 27 additions & 0 deletions fort.user.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    // ==UserScript==
    // @name Fortnitify
    // @version 1.0
    // @description Replaces every single F to the Fortnite F
    // @author leap123
    // @match *://*/*
    // @connect *
    // @grant GM_xmlhttpRequest
    // @grant GM_addStyle
    // ==/UserScript==

    (function() {
    'use strict';
    GM_addStyle(`
    @font-face {
    font-family: firtnite;
    src: url("https://raw.githubusercontent.com/leap0x7b/misc/main/firtnite.woff2") format("woff2"),
    url("https://raw.githubusercontent.com/leap0x7b/misc/main/firtnite.woff") format("woff"),
    url("https://raw.githubusercontent.com/leap0x7b/misc/main/firtnite.ttf") format("truetype");
    }`);
    //GM_addStyle("* { font-family: firtnite, sans-serif; }");
    const every = document.querySelectorAll("body > *");
    for (var elem of every) {
    const ff = window.getComputedStyle(elem).getPropertyValue("font-family");
    elem.style.fontFamily = `firtnite, ${ff}`;
    }
    })();