Created
December 28, 2023 11:24
-
-
Save leap0x7b/b248729d5fc6feab2a4f5f1df434a80e to your computer and use it in GitHub Desktop.
Fortnitify
This file contains 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 characters
// ==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}`; | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment