about summary refs log tree commit diff stats
path: root/xxxterm.1
diff options
context:
space:
mode:
Diffstat (limited to 'xxxterm.1')
-rw-r--r--xxxterm.18
1 files changed, 8 insertions, 0 deletions
diff --git a/xxxterm.1 b/xxxterm.1
index 9960831..ac24163 100644
--- a/xxxterm.1
+++ b/xxxterm.1
@@ -1066,6 +1066,14 @@ does not exist,
 will be tried instead.  The content of the both default and
 host/domain files are read and executed on each page load.
 Default is 1.
+.Pp
+As an example, if you add the line
+.Pa alert("Hello, world");
+to your
+.Pa default.js ,
+a pop-up displaying "Hello, world" will be shown on every page reload.
+While not useful, any javascript can be run through this mechanism,
+making it useful for global or site-specific modifications.
 .It Cm enable_js_whitelist
 When enabled all domains must be in the js whitelist in order to run Java
 Script.