Skip to content

Instantly share code, notes, and snippets.

@aht
Forked from trrichard/gist:1226966
Created September 29, 2011 16:39
Show Gist options
  • Save aht/1251197 to your computer and use it in GitHub Desktop.
Save aht/1251197 to your computer and use it in GitHub Desktop.
Bookmarklet to uncripple Kindle Cloud Reader
javascript:(function(){
var importJs=function(jsUrl){
var s=document.createElement("script");
s.setAttribute("src",jsUrl);
document.body.appendChild(s);
};
importJs("http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js");
})();
$('iframe').contents().find('iframe').each(function() {
this.contentWindow.onclick = null;
var body = $(this).contents().find('body');
body.css('-webkit-user-select', 'auto');
body[0].oncontextmenu = body[0].onselectstart = null;
});
@mzheng
Copy link

mzheng commented Sep 30, 2011

this breaks library navigation among other things, if you look at the dev console.

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