summaryrefslogtreecommitdiff
path: root/tabfs.md
diff options
context:
space:
mode:
Diffstat (limited to 'tabfs.md')
-rw-r--r--tabfs.md35
1 files changed, 26 insertions, 9 deletions
diff --git a/tabfs.md b/tabfs.md
index 81c05f1..7ed20b3 100644
--- a/tabfs.md
+++ b/tabfs.md
@@ -22,7 +22,7 @@ pre { white-space: pre-wrap; }
mounts your browser tabs as a filesystem on your computer.
Out of the box, it supports Chrome and (to a lesser extent[^firefox])
-Firefox, on macOS and Linux.[^otherbrowsers]
+Firefox and Safari, on macOS and Linux.[^otherbrowsers]
(**update**: You can now **[sponsor further development of
TabFS](https://github.com/sponsors/osnr)** and help to turn it from an
@@ -37,11 +37,10 @@ experiment into something really reliable and useful!)
[^otherbrowsers]: plus some related browsers and platforms: it also
supports [Brave](https://github.com/osnr/TabFS/issues/30),
- Vivaldi, FreeBSD, etc. It could probably be made to work on other
- browsers like [Safari](https://github.com/osnr/TabFS/issues/6)
- that support the WebExtensions API, and [on Windows using Dokan or
- WinFUSE/WSL stuff (?)](https://github.com/osnr/TabFS/issues/13),
- but I haven't looked into that yet.
+ Vivaldi, FreeBSD, etc. It could probably be made to work [on
+ Windows using Dokan or WinFUSE/WSL stuff
+ (?)](https://github.com/osnr/TabFS/issues/13), but I haven't
+ looked into that yet.
Each of your open tabs is mapped to a folder.
@@ -166,11 +165,18 @@ could do in the first place)
$ cat mnt/tabs/by-id/*/text.txt > text-of-all-tabs.txt
```
-### Run script
+### Evaluate JavaScript on a page: [demo](https://twitter.com/rsnous/status/1364008241588363264)
+
+(was `evals` in linked demo, is now renamed to `watches`)
```
-$ echo 'document.body.style.background = "green"' > mnt/tabs/last-focused/execute-script
-$ echo 'alert("hi!")' > mnt/tabs/last-focused/execute-script
+$ touch mnt/tabs/last-focused/watches/'document.body.style.background = "green"'
+
+$ touch mnt/tabs/last-focused/watches/'alert("hi!")'
+
+$ touch mnt/tabs/last-focused/watches/'2 + 2'
+$ cat mnt/tabs/last-focused/watches/'2 + 2'
+4
```
### Get images / scripts / other resource files from page
@@ -341,6 +347,12 @@ Load-unpacked the `extension/` folder in this repo.
**Make a note of the extension ID Chrome assigns.** Mine is
`jimpolemfaeckpjijgapgkmolankohgj`. We'll use this later.
+#### in Safari (WIP)
+
+See [the Safari
+instructions](https://github.com/osnr/TabFS/tree/master/extension/safari). You
+should compile the C filesystem (as below) before trying to run the extension.
+
#### in Firefox
You'll need to install as a "temporary extension", so it'll only last
@@ -390,6 +402,11 @@ contents of
[install.sh](https://github.com/osnr/TabFS/blob/master/install.sh) for
the latest on browser and OS support.)
+#### Safari (WIP)
+
+See [the Safari
+instructions](https://github.com/osnr/TabFS/tree/master/extension/safari).
+
#### Firefox
```