Skip to content

Instantly share code, notes, and snippets.

@rocco
Created September 23, 2013 23:09
Show Gist options
  • Save rocco/6678264 to your computer and use it in GitHub Desktop.
Save rocco/6678264 to your computer and use it in GitHub Desktop.
promt for a font and change all fonts-families on a website - jQuery needed
var useFont = window.prompt('Font:');
$('html *').each(function(){
this.style.setProperty('font-family', useFont, 'important');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment