Skip to content

Instantly share code, notes, and snippets.

@ElectricCoffee
Last active January 11, 2023 10:25
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 ElectricCoffee/3ace505754950548b146576167a8c9b7 to your computer and use it in GitHub Desktop.
Save ElectricCoffee/3ace505754950548b146576167a8c9b7 to your computer and use it in GitHub Desktop.
A fix for icehousegames.org to fix the missing font.

To use this script you must download two things:

  1. A userscript manager
  • Firefox: Install Greasemonkey
  • Chrome: Install Tampermonkey
  1. The Pyramid Love font: https://seagullincident.com/pyramidlove/

First, install the font; then click on the {grease,tamper}monkey icon and click "new user script". Copy the code in the other file and paste it in.

The website will then load the font from your local machine and apply it overtop of the website wherever the graphics are broken.

// ==UserScript==
// @name IcehouseGames Fix
// @description Fixes the font on Icehouse Games
// @version 1
// @grant none
// @match *://*.icehousegames.org/*
// ==/UserScript==
const glyphs = Array.from(document.getElementsByTagName('span'))
.filter(x => typeof x.innerHTML === 'string' && /:?:[A-Z0-9]/.test(x.innerHTML));
for (const {style} of glyphs) {
const newStyle = style.fontFamily?.replace('Pyramid Love', 'Pyramid-Love');
style.fontFamily = newStyle;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment