Skip to content

Instantly share code, notes, and snippets.

@georgebrock
Created December 9, 2010 10:57
Show Gist options
  • Save georgebrock/734603 to your computer and use it in GitHub Desktop.
Save georgebrock/734603 to your computer and use it in GitHub Desktop.
Bookmarklet to overlay a 960px grid on any web page.
javascript:if(%20!window.goviasGrid%20){window.goviasGrid%20=%20document.createElement(%22div%22);document.getElementsByTagName(%22body%22)[0].appendChild(window.goviasGrid);window.goviasGrid.style.background%20=%20%22url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAABCAYAAAARiscXAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAa0lEQVRIDe3XsQ2AIBhE4WMMF3A0mQlHcxmlPxO4YGUeCc2fR8FXkFAkbX2P1619HP2naGe7vrxNPSp+C6D4LeD1o/jhlwjw/iVa3uLnJskEv0TLW/zcJJngl2h5i5+bJBP8Eq2Xtmjq//YAvUkuG1WPHY0AAAAASUVORK5CYII=)%20repeat-y%2050%%200%22;window.goviasGrid.style.width%20=%20%22960px%22;window.goviasGrid.style.margin%20=%20%220%20auto%22;window.goviasGrid.style.height%20=%20%22100%%22;window.goviasGrid.style.position%20=%20%22fixed%22;window.goviasGrid.style.top%20=%20%220%22;window.goviasGrid.style.bottom%20=%20%220%22;window.goviasGrid.style.left%20=%20%220%22;window.goviasGrid.style.right%20=%20%220%22;window.goviasGrid.style.display%20=%20%22none%22;window.goviasGrid.style.zIndex%20=%20%2299999%22;window.goviasGrid.onclick%20=%20function(el){%20window.goviasGrid.style.display%20=%20%22none%22;%20};}if(%20window.goviasGrid.style.display%20==%20%22none%22){window.goviasGrid.style.display%20=%20%22block%22;}else{window.goviasGrid.style.display%20=%20%22none%22;}undefined;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment