Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get text/body content when in Reader mode? (firefox) #77

Open
philipsd6 opened this issue Oct 13, 2022 · 0 comments
Open

How to get text/body content when in Reader mode? (firefox) #77

philipsd6 opened this issue Oct 13, 2022 · 0 comments

Comments

@philipsd6
Copy link

philipsd6 commented Oct 13, 2022

With Firefox, it's possible to toggle reader mode for a tab, but I don't know how to get the content of a tab in reader mode:

wc -l mnt/tabs/last-focused/text.txt
288 mnt/tabs/last-focused/text.txt
echo toggleReaderMode > mnt/tabs/last-focused/control
wc -l mnt/tabs/last-focused/text.txt
wc: mnt/tabs/last-focused/text.txt: Input/output error

Putting a tab into reader mode, changes the url to about:reader?url=https://original/url. The Firefox developer tools shows the HTML content, and in the console, I can display document.body.innerText just fine, but it doesn't work in TabFS.

Anyone have any idea how to do this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant