Created
December 28, 2023 11:24
-
-
Save leap0x7b/b248729d5fc6feab2a4f5f1df434a80e to your computer and use it in GitHub Desktop.
Revisions
-
leap0x7b created this gist
Dec 28, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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}`; } })();