Skip to content

Instantly share code, notes, and snippets.

@kizbitz
Forked from aaronshaf/bookmarklet-expanded.js
Last active June 27, 2016 10:51
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save kizbitz/6fd81f193d064bb55bcb to your computer and use it in GitHub Desktop.
Copy text from Amazon's Cloud Reader
// Useful for students in need of block quotes for their paper, etc.
// Executing with the JavaScript console
new_window=window.open();new_window.document.body.innerHTML = $('iframe').contents().find('iframe').contents().find('body').get(1).innerHTML;
// With a bookmarklet:
javascript:new_window=window.open();new_window.document.body.innerHTML = $('iframe').contents().find('iframe').contents().find('body').get(1).innerHTML;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment