ken107 / read-aloud

An awesome browser extension that reads aloud webpage content with one click
https://readaloud.app
MIT License
1.35k stars 232 forks source link

Support for special sites #24

Open ken107 opened 6 years ago

ken107 commented 6 years ago

ixl.com Google Play books Getepic (children picture book site) Yuzu Elsevier Scribd Bookshelf ReadAnyBook Word Online VitalSource ReadWorks.org Overdrive (need library card) Redshelf / Virdocs Chegg i-ready.com voice.google.com LuminPDF scholastic hawkeslearning.com fviewer.com reader.texidium.com

ken107 commented 5 years ago

bookshelf.textbooks.com kaggle.com https://sau39-my.sharepoint.com/:w:/r/personal/.../Doc.aspx vlebooks https://reader.bookmate.com/kV4X2UvL https://docs.google.com/viewerng/viewer?url=https://library.genesys.com/m/434d2eae02cbe504/original/Beyond-NPS-report-final.pdf

ken107 commented 4 years ago

Manning LiveBook kortext.com outlook.office.com/mail/inbox OneNote ebookcentral.proquest.com readwise.io

ken107 commented 3 years ago

webnovel.com pearson.com (Pearson+)

ken107 commented 2 years ago

Overdrive reader is fairly complicated, will do only if more users request.

Grabbing text is OK. Determining which text is currently visible requires adding the text's left offset with the parent's x transform, and check if the result falls inside the viewport. The plan is to read what's visible, then flip page, then repeat.

However, I'm unable to simulate neither mouse or keyboard event to trigger page flip. It's possible to flip page by changing the x transform of the aforementioned container, but it wont' affect the reader's internal page counter.

The only fully-working flow I can devise is: do the above, which will read the whole chapter; then display a transparent button to get user to click on the page to show the navigation bar; then simclick on the next-chapter button. User will want to click on the page again to hide the nav. It's not a good UX, but at least it works.

ken107 commented 1 year ago

Can have a setting pulled from server that specifies how to flip pages for various websites (e.g. OpenStax.org). Specifically CSS selectors that identify the Next/Previous buttons.