Skip to content

Instantly share code, notes, and snippets.

@nicksheffield
Created September 24, 2013 02:46
Show Gist options
  • Save nicksheffield/6679753 to your computer and use it in GitHub Desktop.
Save nicksheffield/6679753 to your computer and use it in GitHub Desktop.
Google Font Tester
javascript:(function(){var font = prompt('What font?'), font_encoded = font.replace(' ','+');document.head.innerHTML += '<link rel="stylesheet" href="http://fonts.googleapis.com/css?family='+font_encoded+'">';document.body.innerHTML += '<style>*{font-family: "'+font+'" !important;}</style>';})();
var font = prompt('What font?'),
font_encoded = font.replace(' ','+');
document.head.innerHTML += '<link rel="stylesheet" href="http://fonts.googleapis.com/css?family='+font_encoded+'">';
document.body.innerHTML += '<style>*{font-family: "'+font+'" !important;}</style>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment