diff options
author | Omar Rizwan <omar@omar.website> | 2021-02-22 16:31:30 -0800 |
---|---|---|
committer | Omar Rizwan <omar@omar.website> | 2021-02-22 16:31:49 -0800 |
commit | 063051d80b7b160fda4cbb8e5bbcc39d455ab7d4 (patch) | |
tree | 019843322c5d966526a1ffe3faf916fac130560f /tabfs.md | |
parent | ad80383242a719192cf08af0747c4e1d8478a0cd (diff) | |
download | TabFS-063051d80b7b160fda4cbb8e5bbcc39d455ab7d4.tar.gz TabFS-063051d80b7b160fda4cbb8e5bbcc39d455ab7d4.zip |
remove TAB/console and TAB/execute-script which are ugly
(and not really necessary now that we have evals, I think? like, as
long as you have some way to run JS on the content script, you can
build other functionality out of that)
Diffstat (limited to 'tabfs.md')
-rw-r--r-- | tabfs.md | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -165,11 +165,16 @@ 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](https://twitter.com/rsnous/status/1364008241588363264) ``` -$ 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/evals/'document.body.style.background = "green"' + +$ touch mnt/tabs/last-focused/evals/'alert("hi!")' + +$ touch mnt/tabs/last-focused/evals/'2 + 2' +$ cat mnt/tabs/last-focused/evals/'2 + 2' +4 ``` ### Get images / scripts / other resource files from page |