Skip to content

Instantly share code, notes, and snippets.

@FLamparski
Last active October 25, 2015 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FLamparski/9de7213923bf51f72a19 to your computer and use it in GitHub Desktop.
Save FLamparski/9de7213923bf51f72a19 to your computer and use it in GitHub Desktop.
A bookmarklet to un-uglify default styles for text-heavy but style-light web pages

Loads of HTML out there is unstyled, so you get a whole lot of 1990 in your browser. If you prefer it to be prettier, try this:

(function(){
  var s = document.body.style;
  s.maxWidth='660px';
  s.margin='8px auto';
  s.fontFamily='Source Sans Pro'; // adjust to your liking
  s.fontSize='16px';
  s.lineHeight='22px';
}())

Or as a bookmarklet: javascript:(function(){var s = document.body.style; s.maxWidth='660px'; s.margin='8px auto'; s.fontFamily='Source Sans Pro'; s.fontSize='16px'; s.lineHeight='22px';}()))".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment