This file contains hidden or 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
textToBeSpoken = new SpeechSynthesisUtterance(); | |
textToBeSpoken.volume = 1; // 0 to 1 | |
textToBeSpoken.rate = 10; // 0.1 to 10 | |
textToBeSpoken.pitch = 2; //0 to 2 | |
textToBeSpoken.lang = 'en-US'; | |
function checkForChanges() { | |
currentlySelectedItem = document.getElementsByClassName('NB-feed-story NB-river-story read NB-selected'); | |
if (currentlySelectedItem.length == 0) { | |
setTimeout(checkForChanges, 500); |
This file contains hidden or 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
### Keybase proof | |
I hereby claim: | |
* I am cmaury on github. | |
* I am cmaury (https://keybase.io/cmaury) on keybase. | |
* I have a public key whose fingerprint is E45F 8434 03D8 28CA 3136 C840 9322 A66A F43D 8E1C | |
To claim this, I am signing this object: |
This file contains hidden or 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
ReferenceError: document is not defined | |
at callback (/Users/cmaury/Dropbox/dev/Accessibilityfirst/AsYouWish/node_modules/node-speak/node-speak.js:100454:9) | |
at speak (/Users/cmaury/Dropbox/dev/Accessibilityfirst/AsYouWish/node_modules/node-speak/node-speak.js:100504:5) | |
at /Users/cmaury/Dropbox/dev/Accessibilityfirst/AsYouWish/app.js:49:2 | |
at callbacks (/Users/cmaury/Dropbox/dev/Accessibilityfirst/AsYouWish/node_modules/express/lib/router/index.js:161:37) | |
at param (/Users/cmaury/Dropbox/dev/Accessibilityfirst/AsYouWish/node_modules/express/lib/router/index.js:135:11) | |
at pass (/Users/cmaury/Dropbox/dev/Accessibilityfirst/AsYouWish/node_modules/express/lib/router/index.js:142:5) | |
at Router._dispatch (/Users/cmaury/Dropbox/dev/Accessibilityfirst/AsYouWish/node_modules/express/lib/router/index.js:170:5) | |
at Object.router (/Users/cmaury/Dropbox/dev/Accessibilityfirst/AsYouWish/node_modules/express/lib/router/index.js:33:10) | |
at next (/Users/cmaury/Dropbox/dev/Accessibilityfirst/AsYouW |