sponsor updates, document debugger folder slightly better

This commit is contained in:
Omar Rizwan 2021-01-10 15:06:52 -08:00
parent 3c34988117
commit 5f6cad2c71
3 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,7 @@
# TabFS
See <https://omar.website/tabfs/>.
(**update**: You can now **[sponsor further development of
TabFS](https://github.com/sponsors/osnr)** and help to turn it from an
experiment into something really reliable and useful!)

View File

@ -2,6 +2,7 @@
set -eux
# (Brave uses same path as Chrome, so for Brave, say `chrome`)
if [[ "$#" -lt 1 || (
! ( ( "$1" == "firefox" && "$#" -eq 1 ) ||
( "$1" == "chrome" && "$#" -eq 2 && ${#2} -eq 32 ) ||

View File

@ -24,6 +24,10 @@ 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]
(**update**: You can now **[sponsor further development of
TabFS](https://github.com/sponsors/osnr)** and help to turn it from an
experiment into something really reliable and useful!)
[^firefox]: because of the absence of the [chrome.debugger API for
extensions](https://developer.chrome.com/docs/extensions/reference/debugger/).
With a bit more plumbing, you could maybe find a way to connect it
@ -169,7 +173,7 @@ $ echo 'document.body.style.background = "green"' > mnt/tabs/last-focused/execut
$ echo 'alert("hi!")' > mnt/tabs/last-focused/execute-script
```
### Get images / scripts / etc on page
### Get images / scripts / other resource files from page
(TODO: [document better](https://github.com/osnr/TabFS/issues/5), put in screenshots)
@ -177,9 +181,10 @@ The [`debugger/`
subdirectory](https://github.com/osnr/TabFS/blob/fef9289e3a7f82cda6319d5f19d5a5f13f3cc44b/extension/background.js#L355)
in each tab folder has synthetic files that let you access loaded
resources (in `debugger/resources/`) and scripts (in
`debugger/scripts/`).
`debugger/scripts/`).
(this is experimental.)
Images will show up as actual PNG or JPEG files, scripts as actual JS
files, and so on. (this is experimental.)
(TODO: edit the images in place? you can already kinda edit the
scripts in place)