-
-
Save aht/1251197 to your computer and use it in GitHub Desktop.
Bookmarklet to uncripple Kindle Cloud Reader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this breaks library navigation among other things, if you look at the dev console.