Last active
May 24, 2020 00:36
-
-
Save bh-schmidt/81c42a4b0f785b86997d8cb493b802c8 to your computer and use it in GitHub Desktop.
Kindle Cloud Reader for students
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
If you are a student and you want to copy and paste words from a book in the Kindle Cloud Reader then follow these steps. | |
#Usage | |
1- Open your book on Kindle Cloud Reader | |
2- Go to the page you want to read | |
3- Open your browser console (F12 if Chrome) | |
4- Go to the 'Console' tab | |
5- Paste the code of 'file1.js' in the console and press enter | |
6- Go to the new oppened tab | |
7- Open your console again | |
8- Paste the code of 'file2.js' and press enter | |
9- Done | |
* When the text ends go to the Kindle Cloud Reader, find the page you're reading, refresh the page and repeat the process. |
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
//open the iframe in the new tab | |
new_window=window.open();new_window.document.body.innerHTML = $('iframe').contents().find('iframe').contents().find('body').get(1).innerHTML; | |
javascript:new_window=window.open();new_window.document.body.innerHTML = $('iframe').contents().find('iframe').contents().find('body').get(1).innerHTML; |
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
//turns the background gray and the text color white | |
var titles = ['H1', 'H2', 'H3', 'H4', 'H5', 'H6'] | |
var html = 'HTML' | |
var tags = document.getElementsByTagName('*') | |
for (let index = 0; index < tags.length; index++) { | |
const element = tags[index]; | |
element.style.color = '#ffffff' | |
if(element.tagName == html) | |
element.style.background = '#222222' | |
if(!titles.some(x => x == element.tagName)) | |
element.style.fontSize = '16pt' | |
} | |
var lines = document.getElementsByClassName('was-a-p') | |
for (let index = 0; index < lines.length; index++) { | |
const element = lines[index]; | |
element.style.margin = '20px 20px' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment