Skip to content

Instantly share code, notes, and snippets.

@saginadir
Last active August 26, 2018 08:15
Show Gist options
  • Save saginadir/aa21e845441c23df05c0ee351fce3664 to your computer and use it in GitHub Desktop.
Save saginadir/aa21e845441c23df05c0ee351fce3664 to your computer and use it in GitHub Desktop.
Quick add for OpenDyslexic-Font to any page
(function dyslexify() {
document.head.innerHTML = `<style>
@font-face {
font-family: myFirstFont;
src: url('https://s3-eu-west-1.amazonaws.com/open-dyslexic/OpenDyslexic3-Regular.woff');
}
* {
font-family: myFirstFont !important;
}
p {
font-size: 16px !important;
}
</style>` +document.head.innerHTML
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment