diff options
author | Nick White <git@njw.me.uk> | 2010-10-23 22:49:25 +0100 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2010-10-23 22:49:25 +0100 |
commit | b5fdff68dec57116a092b08a99f1f4504da8881c (patch) | |
tree | 0febe8965ce4063ba7ddfcbbc3c5bd617753be81 /INSTALL |
Initial checkin
Diffstat (limited to 'INSTALL')
-rw-r--r-- | INSTALL | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -0,0 +1,29 @@ +# Uzbl + +To use this from uzbl, add the following line to the config file (replacing +'s' with the key to bind to): + +@cbind s = script file:///path/to/readable.js + + +# Surf + +To use it from surf, add the following to script.js: + +(function() { + document.addEventListener('keydown', keybind, false); + })(); + + if(original === undefined) var original = false; + function keybind(e) { + if (!(e.keyIdentifier == "U+0053" && e.ctrlKey)) return 0; // ^s +/* copy readable.js here, removing the line starting 'if(original' */ +} + +# Other browsers; 'bookmarklet' + +To use this as a 'bookmarklet', create a new bookmark with an address of: + +javascript:(function(){document.body.appendChild(document.createElement('script')).src='file:///path/to/readable.js';})(); + +Note that due to browsers being afraid of mixing local and remote files this may not work for http:// addresses. If this is the case, you can either run the script from a remote location (eg your webserver), or integrate it into a browser-specific extension. |