Live data from Hacker News

TabFS: Mount your Browser Tabs as a Filesystem

omar.website

1–10 of 242 posts

Re: TabFS: Mount your Browser Tabs as a Filesystem

#2
Sounds like a fantastic idea, especially if I can use it to save video and images from websites too.

Unfortunately it doesn't work for me though -- I get "Unchecked runtime.lastError: Native host has exited."

Output of install script: ``` $ ./install.sh chrome mnlmpigkagdnfjmicelbkejgfefcnlkp + [[ 2 -lt 1 ]] + [[ chrome == \f\i\r\e\f\o\x ]] + [[ chrome == \c\h\r\o\m\e ]] + [[ 2 -eq 2 ]] + [[ 32 -eq 32 ]] ++ uname -s + OS=Linux ++ echo chrome ++ tr '[:upper:]' '[:lower:]' + BROWSER=chrome + case "$OS $BROWSER" in + MANIFEST_LOCATION=/home/dheera/.config/google-chrome/NativeMessagingHosts + mkdir -p /home/dheera/.config/google-chrome/NativeMessagingHosts + APP_NAME=com.rsnous.tabfs ++ pwd + EXE_PATH=/home/dheera/code/clone/TabFS/fs/tabfs + case "$BROWSER" in + EXTENSION_ID=mnlmpigkagdnfjmicelbkejgfefcnlkp ++ cat + MANIFEST='{ "name": "com.rsnous.tabfs", "description": "TabFS", "path": "/home/dheera/code/clone/TabFS/fs/tabfs", "type": "stdio", "allowed_extensions": ["tabfs@rsnous.com"], "allowed_origins": ["chrome-extension://mnlmpigkagdnfjmicelbkejgfefcnlkp/"] }' + echo '{ "name": "com.rsnous.tabfs", "description": "TabFS", "path": "/home/dheera/code/clone/TabFS/fs/tabfs", "type": "stdio", "allowed_extensions": ["tabfs@rsnous.com"], "allowed_origins": ["chrome-extension://mnlmpigkagdnfjmicelbkejgfefcnlkp/"] }' ```

Re: TabFS: Mount your Browser Tabs as a Filesystem

#3
This is a brilliant piece of work. As someone who has thousands of tabs open, I've always wanted to "close all tabs with a single command", or view all the open tabs and mass select them and close, for years. Otherwise, going through them one by one and deleting takes forever. Now somebody make a vim pluggin so I can delete tabs by visual selecting a bunch of them and typing "d".

Re: TabFS: Mount your Browser Tabs as a Filesystem

#4
I'm loving this trend to do more things with filesystems.

There was https://amoffat.github.io/supertag/ [,] which I'm intending to use in my filesharing sftp server, and now this, which seems like something that exposes functionality from a web browser that I would love.

Re: TabFS: Mount your Browser Tabs as a Filesystem

#6

This is a brilliant piece of work. As someone who has thousands of tabs open, I've always wanted to "close all tabs with a single command", or view all the open tabs and mass select them and close, for years. Otherwise, going through them one by one and deleting takes forever. Now somebody make a vim pluggin so I can delete tabs by visual selecting a bunch of them and typing "d".

This does seem like a brilliant idea, doesn't it. I'm thinking about how difficult it would be to setup something like 'surf' but using chromium/firefox, and then driving it completely off the CLI. It honestly sounds like my dream browser.

Re: TabFS: Mount your Browser Tabs as a Filesystem

#7

This is a brilliant piece of work. As someone who has thousands of tabs open, I've always wanted to "close all tabs with a single command", or view all the open tabs and mass select them and close, for years. Otherwise, going through them one by one and deleting takes forever. Now somebody make a vim pluggin so I can delete tabs by visual selecting a bunch of them and typing "d".

You can kinda do that with the vimium plugin. Select a bunch of tabs and press "x", but it doesn't support visual selection of tabs.

Re: TabFS: Mount your Browser Tabs as a Filesystem

#8

This is a brilliant piece of work. As someone who has thousands of tabs open, I've always wanted to "close all tabs with a single command", or view all the open tabs and mass select them and close, for years. Otherwise, going through them one by one and deleting takes forever. Now somebody make a vim pluggin so I can delete tabs by visual selecting a bunch of them and typing "d".

If you just want to close all tabs then in Firefox right click a tab and select "Close Other Tabs". Also, you can control-click on tabs to apply commands the the whole set, such as closing them, sending them to your phone, etc.

Re: TabFS: Mount your Browser Tabs as a Filesystem

#9
post #2

Sounds like a fantastic idea, especially if I can use it to save video and images from websites too. Unfortunately it doesn't work for me though -- I get "Unchecked runtime.lastError: Native host has exited." Output of install script: ``` $ ./install.sh chrome mnlmpigkagdnfjmicelbkejgfefcnlkp + [[ 2 -lt 1 ]] + [[ chrome == \f\i\r\e\f\o\x ]] + [[ chrome == \c\h\r\o\m\e ]] + [[ 2 -eq 2 ]] + [[ 32 -eq 32 ]] ++ uname -s…

>save video

Problem with HTML5 video is you can use more than just a link to video file https://developer.mozilla.org/en-US/docs/Web/API/MediaSource There are "certain" websites serving videos using BLOB object mediasource created dynamically from encrypted https sources. So far I had no luck trying to capture resulting video datastream, mediasource is a write and forget type of interface, and on top of that MediaRecorder/captureStream() is bugged and crashes so you cant even record lossy reencoded capture.

https://stackoverflow.com/questions/50938089/how-to-download...

I should probably experiment with shimming whole MediaSource api and capture data before its pumped into the read only void.

Re: TabFS: Mount your Browser Tabs as a Filesystem

#10
post #2

Sounds like a fantastic idea, especially if I can use it to save video and images from websites too. Unfortunately it doesn't work for me though -- I get "Unchecked runtime.lastError: Native host has exited." Output of install script: ``` $ ./install.sh chrome mnlmpigkagdnfjmicelbkejgfefcnlkp + [[ 2 -lt 1 ]] + [[ chrome == \f\i\r\e\f\o\x ]] + [[ chrome == \c\h\r\o\m\e ]] + [[ 2 -eq 2 ]] + [[ 32 -eq 32 ]] ++ uname -s…

It's running a script in the background to exfiltrate the info from the browser to the system, and that script has an error. I believe it's a script like /home/dheera/code/clone/TabFS/fs/tabfs* – if you look around in the browser some more you should find the stderr output of the script, which probably explains the error
Post reply on HN