Created
March 17, 2022 10:28
-
-
Save tommorris/52a117d094169d48766446b7c6aca845 to your computer and use it in GitHub Desktop.
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 Add underlines to keyboard in keybr | |
// @version 1 | |
// @match *://keybr.com/ | |
// @match *://keybr.com/* | |
// @match *://www.keybr.com/ | |
// @match *://www.keybr.com/* | |
// @grant none | |
// ==/UserScript== | |
window.addEventListener('load', function() { | |
addGlobalStyle("*[data-key='KeyF'], *[data-key='KeyJ'] { text-decoration: underline; }"); | |
}, false); | |
function addGlobalStyle(css) { | |
var head, style; | |
head = document.getElementsByTagName('head')[0]; | |
if (!head) { return; } | |
style = document.createElement('style'); | |
style.type = 'text/css'; | |
style.innerHTML = css; | |
head.appendChild(style); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment