osnr / TabFS

🗄 Mount your browser tabs as a filesystem.
https://omar.website/tabfs/
GNU General Public License v3.0
3.82k stars 106 forks source link

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

Open philipsd6 opened 1 year ago

philipsd6 commented 1 year ago

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?