Skip to content

Instantly share code, notes, and snippets.

@kn9ts
Last active February 14, 2017 15:48
Show Gist options
  • Save kn9ts/8a0d32fece2e963bc2e161b18882ae00 to your computer and use it in GitHub Desktop.
Save kn9ts/8a0d32fece2e963bc2e161b18882ae00 to your computer and use it in GitHub Desktop.
// Hey guys, *would you like to spice up your web whatsapp or slack font*?
// => Open the the browser console `CMD + ALT + I`, select the *Console* tab and paste the above snippet.
// Have fun.
(function() {
var link = document.createElement('link');
link.setAttribute('rel', 'stylesheet');
link.setAttribute('href', '//fonts.googleapis.com/css?family=Nova+Oval');
document.head.appendChild(link);
link.onload = function() {
document.body.style.fontFamily = '\'Nova Oval\', cursive';
var style = document.createElement('style');
style.innerHTML = 'div[class*="message"], div[class*="channel"], div[class*="comment"], span[class*="message"] { font-family: "Nova Oval", cursive; }';
document.head.appendChild(style);
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment