Skip to content

Instantly share code, notes, and snippets.

@aaronshaf
Last active February 25, 2024 18:56
Show Gist options
  • Star 57 You must be signed in to star a gist
  • Fork 14 You must be signed in to fork a gist
  • Save aaronshaf/1346968 to your computer and use it in GitHub Desktop.
Save aaronshaf/1346968 to your computer and use it in GitHub Desktop.
Copy text from Amazon's Cloud Reader. Helpful for students that need block quotes.
javascript: (function () {
new_window = window.open();
new_window.document.body.innerHTML = $("iframe")
.contents()
.find("iframe")
.contents()
.find("body")
.get(1).innerHTML;
new_window.document.body.querySelector("#content-overlays").remove();
})();
javascript:(function(){new_window=window.open();new_window.document.body.innerHTML=$("iframe").contents().find("iframe").contents().find("body").get(1).innerHTML;new_window.document.body.querySelector("#content-overlays").remove();})();
javascript: (function () {
document.body.innerHTML = $("iframe")
.contents()
.find("iframe")
.contents()
.find("body")
.get(1).innerHTML;
document.body.querySelector("#content-overlays").remove();
document.head.querySelectorAll("link[type]").item(0).remove();
Array.from(document.querySelectorAll("span.k4w")).forEach((span) => {
span.outerHTML = span.textContent;
});
})();
javascript:(function () { document.body.innerHTML = $("iframe") .contents() .find("iframe") .contents() .find("body") .get(1).innerHTML; document.body.querySelector("#content-overlays").remove(); document.head.querySelectorAll('link[type]').item(0).remove(); Array.from(document.querySelectorAll('span.k4w')).forEach((span) => { span.outerHTML = span.textContent }); })();
@ongnxco
Copy link

ongnxco commented Feb 25, 2024

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