From 667f90ada4981a4607eda905d082a2e5b883ef42 Mon Sep 17 00:00:00 2001 From: Omar Rizwan Date: Thu, 25 Feb 2021 15:43:02 -0800 Subject: [PATCH] md: evals -> watches --- tabfs.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tabfs.md b/tabfs.md index 925dc35..7ed20b3 100644 --- a/tabfs.md +++ b/tabfs.md @@ -167,13 +167,15 @@ $ cat mnt/tabs/by-id/*/text.txt > text-of-all-tabs.txt ### Evaluate JavaScript on a page: [demo](https://twitter.com/rsnous/status/1364008241588363264) +(was `evals` in linked demo, is now renamed to `watches`) + ``` -$ touch mnt/tabs/last-focused/evals/'document.body.style.background = "green"' +$ touch mnt/tabs/last-focused/watches/'document.body.style.background = "green"' -$ touch mnt/tabs/last-focused/evals/'alert("hi!")' +$ touch mnt/tabs/last-focused/watches/'alert("hi!")' -$ touch mnt/tabs/last-focused/evals/'2 + 2' -$ cat mnt/tabs/last-focused/evals/'2 + 2' +$ touch mnt/tabs/last-focused/watches/'2 + 2' +$ cat mnt/tabs/last-focused/watches/'2 + 2' 4 ```