link following from Jan Kolkmeier (jouz)
[uzbl-mobile] / examples / configs / sampleconfig
1
2 # example uzbl config. in a real config, we should obey the xdg spec
3
4 # all keys in the behavior group are optional.  if not set, the corresponding behavior is disabed.
5 # bindings_internal denote keys to trigger actions internally in uzbl
6 # bindings_external denote keys to trigger scripts outside uzbl
7
8 # keyboard behavior is vimstyle by default (all actions -> 1 key). set
9 # always_insert_mode to always be in insert mode and disable going out of it.
10 # if you do this, make sure you've set a modkey so you can reach the actions
11 # from insert mode by combining them with the modkey
12
13 [behavior]
14 history_handler = /usr/share/uzbl/examples/scripts/history.sh
15 download_handler = /usr/share/uzbl/examples/scripts/download.sh
16 cookie_handler = /usr/share/uzbl/examples/scripts/cookie.sh
17 fifo_dir = /tmp
18 socket_dir = /tmp
19 always_insert_mode = 0
20 modkey = Mod1
21 show_status = 1
22 status_top = 0
23
24 [bindings]
25 # scroll down/up/left/right
26 j = scroll_vert 20
27 k = scroll_vert -20
28 h = scroll_horz -20
29 l = scroll_horz 20
30 b = back
31 m = forward
32 s = stop
33 r = reload
34 R = reload_ign_cache
35 + = zoom_in
36 - = zoom_out
37 t = toggle_status
38 #hilight matches
39 /_ = search %s
40 #jump to next
41 ; = search
42 gh      = uri http://www.uzbl.org
43 o _     = uri %s
44 :wiki _ = uri http://wiki.archlinux.org/index.php/Special:Search?search=%s&go=Go
45 gg _    = uri http://www.google.com/search?q=%s
46 i = insert_mode
47 B = spawn /usr/share/uzbl/examples/scripts/insert_bookmark.sh
48 u = spawn /usr/share/uzbl/examples/scripts/load_url_from_history.sh
49 U = spawn /usr/share/uzbl/examples/scripts/load_url_from_bookmarks.sh
50 ZZ = exit
51 S = script alert("hi");
52
53 # Keyboard based link following: work in progress! No C DOM bindings yet, no click() event for hyperlinks so no referrer set..Quite basic but does the job for now...
54 #hit f followed by linknumber and ENTER to follow that link
55 f_ = script window.location = document.links[%s].href;
56 #hit F to show the link numbers
57 F = script for (var i=0; i < document.links.length; i++) {var uzblid = 'uzbl_link_hint_';var li = document.links[i];var pre = document.getElementById(uzblid+i);if (pre) {li.removeChild(pre);} else {var hint = document.createElement('div');hint.setAttribute('id',uzblid+i);hint.innerHTML = i;hint.style.display='inline';hint.style.lineHeight='90%';hint.style.backgroundColor='red';hint.style.color='white';hint.style.fontSize='small-xx';hint.style.fontWeight='light';hint.style.margin='0px';hint.style.padding='2px';hint.style.position='absolute';hint.style.textDecoration='none';hint.style.left=li.style.left;hint.style.top=li.style.top;li.insertAdjacentElement('afterBegin',hint);}}
58
59 [network]
60 proxy_server = 
61 #values 0-3
62 http_debug = 0
63 user-agent = uzbl (Webkit %webkit-major%.%webkit-minor%.%webkit-micro%)
64 # Example user agent containing everything:
65 #user-agent = Uzbl (Webkit %webkit-major%.%webkit-minor%.%webkit-micro%) (%sysname% %nodename% %kernrel% %kernver% %arch-system% [%arch-uzbl%]) (Commit %commit%)
66 max_conns =
67 max_conns_per_host =