about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJosh Rickmar <jrick@devio.us>2012-05-14 10:01:08 -0400
committerJosh Rickmar <jrick@devio.us>2012-05-15 11:51:59 -0400
commit298d4dd6df9f5b814310fcbd763de3edce606139 (patch)
tree9af30edb0959e283f2482aa19dc40cbd4ec3eeb7
parentbe4b65a88e997bb7cdafdf784fc06e158fe100e5 (diff)
downloadxombrero-298d4dd6df9f5b814310fcbd763de3edce606139.tar.gz
Add a simple example for enable_js_autorun to the manpage
-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.
n124' href='#n124'>124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181