Skip to content

Instantly share code, notes, and snippets.

@felipesabino
Last active January 15, 2024 11:42
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 felipesabino/ec5be2464e08fede3c021d588f3842c3 to your computer and use it in GitHub Desktop.
Save felipesabino/ec5be2464e08fede3c021d588f3842c3 to your computer and use it in GitHub Desktop.
Learn Plover - Steno text font switch
// ==UserScript==
// @name Learn Plover - Steno text font switch
// @namespace http://tampermonkey.net/
// @version 2024-01-10
// @description Replace raw steno keys with a steno font drawing at Learn Plover! website
// @author felipesabino@
// @match https://www.openstenoproject.org/learn-plover/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=openstenoproject.org
// @grant GM_addStyle
// ==/UserScript==
// Download and install Stenodisplay fonts at https://github.com/Kaoffie/steno_font
(function() {
'use strict';
function classToggle(e) {
this.classList.toggle('steno-keyboard');
}
document.querySelectorAll('font[color="#eeeeee"]').forEach(e => e.onclick = classToggle);
const st = GM_addStyle('.steno-keyboard, .steno-keyboard b { font-family: "Stenodisplay Square Large"; font-size: 70px; color: black; font-weight: normal; background: none !important }');
console.log(st);
})();
@felipesabino
Copy link
Author

Use it with any of the following browser extensions:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment