Skip to content

Instantly share code, notes, and snippets.

@jbilcke
Last active December 18, 2015 12:19
Show Gist options
  • Save jbilcke/5782394 to your computer and use it in GitHub Desktop.
Save jbilcke/5782394 to your computer and use it in GitHub Desktop.
Add some iOS7 swag to your website
javascript: WebFontConfig = { google: { families: [ 'Lato:100,300:latin' ] } };(function() { var wf = document.createElement('script'); wf.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';wf.type = 'text/javascript'; wf.async = 'true'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(wf, s); })();var css = document.createElement("style");css.type ="text/css"; css.innerHTML ="body { filter: saturate(400%); -webkit-filter: saturate(400%); -moz-filter: saturate(400%); -o-filter: saturate(400%); -ms-filter: saturate(400%); font-family: 'Lato', sans-serif !important; font-weight; 300; }"; document.body.appendChild(css);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment