Skip to content

Instantly share code, notes, and snippets.

@leap0x7b
Created December 28, 2023 11:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leap0x7b/b248729d5fc6feab2a4f5f1df434a80e to your computer and use it in GitHub Desktop.
Save leap0x7b/b248729d5fc6feab2a4f5f1df434a80e to your computer and use it in GitHub Desktop.
Fortnitify
// ==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