Skip to content

Instantly share code, notes, and snippets.

@weeble
Created February 11, 2013 14:32
Show Gist options
  • Save weeble/4754719 to your computer and use it in GitHub Desktop.
Save weeble/4754719 to your computer and use it in GitHub Desktop.
Resize the body element to be 800px wide. Created with http://www.squarefree.com/userstyles/make-bookmarklet.html and tested in Google Chrome only.
javascript:styles='body {width: 800px; margin-left: auto; margin-right: auto; position:relative; margin-top:0;}'; newSS = document.createElement('link'); newSS.rel = 'stylesheet'; newSS.href = 'data:text/css,' + escape(styles); document.documentElement.childNodes[0].appendChild(newSS); void 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment