From 063051d80b7b160fda4cbb8e5bbcc39d455ab7d4 Mon Sep 17 00:00:00 2001 From: Omar Rizwan Date: Mon, 22 Feb 2021 16:31:30 -0800 Subject: 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) --- tabfs.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'tabfs.md') diff --git a/tabfs.md b/tabfs.md index 83debe2..cabba87 100644 --- a/tabfs.md +++ b/tabfs.md @@ -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 -- cgit v1.2.3