Skip to content

Instantly share code, notes, and snippets.

@pamelafox
Created April 10, 2015 07:24
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pamelafox/38e676b787c6217b0ae6 to your computer and use it in GitHub Desktop.
Save pamelafox/38e676b787c6217b0ae6 to your computer and use it in GitHub Desktop.
Screenshot Bookmarklet
// How to add a bookmarklet to Chrome: https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=chrome%20bookmarklet
javascript:(function getScreenshot() {var openScreenshot = function(e) {window.open(e.originalEvent.data);}; $(window).unbind("message.getScreenshot", openScreenshot); $(window).bind("message.getScreenshot", openScreenshot); ScratchpadUI.liveEditor.postFrame({ screenshot: true, screenshotSize: 400 });})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment