Skip to content

Instantly share code, notes, and snippets.

@davidwatkins73
Last active April 2, 2020 13:56
Show Gist options
  • Save davidwatkins73/05ffd76cab25891ade4a7ef8ceed0ab7 to your computer and use it in GitHub Desktop.
Save davidwatkins73/05ffd76cab25891ade4a7ef8ceed0ab7 to your computer and use it in GitHub Desktop.
Useful bookmarklets
// ->|--|<- (Narrow)
javascript:w = document._w || 1100; w = w - 100; document.body.style.width = w + "px"; document._w = w;
// <-|--|-> (Widen)
javascript:w = document._w || 900; w = w + 100; document.body.style.width = w + "px"; document._w = w;
@davidwatkins73
Copy link
Author

The two bookmarklets above can be used to quickly adjust the document width. This is useful when viewing blocks of text in a wide window (and removes the need for you to resize the window).

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