aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/config
diff options
context:
space:
mode:
authorGravatar Mason Larobina <mason.larobina@gmail.com>2010-01-19 21:37:07 +0800
committerGravatar Mason Larobina <mason.larobina@gmail.com>2010-01-19 21:37:07 +0800
commita7e844dae0d77918673d1d0a41b3bd6f1e763893 (patch)
tree3aad8559b0fc972c9ab292019a6a5ca970290b49 /examples/config
parentc92b449db2dc60403b5c2c465d878f8691021306 (diff)
Remove all mentions of the Uzbl object and @jsh helper variable.
Diffstat (limited to 'examples/config')
-rw-r--r--examples/config/uzbl/config11
1 files changed, 1 insertions, 10 deletions
diff --git a/examples/config/uzbl/config b/examples/config/uzbl/config
index f65566c..081ea8a 100644
--- a/examples/config/uzbl/config
+++ b/examples/config/uzbl/config
@@ -34,8 +34,6 @@ set shell_cmd = sh -c
# Spawn path shortcuts. In spawn the first dir+path match is used in "dir1:dir2:dir3:executable"
set scripts_dir = $XDG_DATA_HOME/uzbl:@prefix/share/uzbl/examples/data/uzbl:scripts
-# Javascipt helpers.
-#set jsh = js var run=Uzbl.run; function get(k){return run("print \\\@"+k)}; function set(k, v) {run("set "+k+" = "+v)};
# === Handlers ===============================================================
@@ -69,10 +67,6 @@ set new_window = sh 'uzbl-browser -u $8'
@on_event LOAD_FINISH @set_status <span foreground="gold">done</span>
@on_event LOAD_FINISH spawn @scripts_dir/history.sh
-# Generate a FORM_ACTIVE event if an editable
-# element on the loaded site has initial focus
-#@on_event LOAD_FINISH js if(document.activeElement.type == 'text') {Uzbl.run("event FORM_ACTIVE");}
-
# Switch to insert mode if a (editable) html form is clicked
@on_event FORM_ACTIVE @set_mode insert
# Switch to command mode if anything else is clicked
@@ -81,6 +75,7 @@ set new_window = sh 'uzbl-browser -u $8'
# Example CONFIG_CHANGED event handler
#@on_event CONFIG_CHANGED print Config changed: %1 = %2
+
# === Behaviour and appearance ===============================================
set show_status = 1
@@ -322,10 +317,6 @@ menu_editable_add Open in @external_editor = script @scripts_dir/extedit.js
#@bind X1 = sh 'echo "set zoom_level = 1.0" > "$4"'
#@bind X2 = sh 'echo "js alert (\\"This is sent by the shell via a fifo\\")" > "$4"'
-# Working with the javascript helper variable jsh.
-#@bind X3 = @jsh alert(get('zoom_level'));
-#@bind X4 = @jsh if(get('mode') == "insert") { alert("You are in insert mode") } else { alert(get('mode')+" is a silly mode.") };
-
# === Context menu items =====================================================