From 2cee16336a4ce756cac166adccbb40a41122b6f4 Mon Sep 17 00:00:00 2001 From: Nick White Date: Tue, 2 Nov 2010 18:25:20 +0000 Subject: Switch to not running readable by default on load --- INSTALL | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'INSTALL') diff --git a/INSTALL b/INSTALL index 5f649dc..8b85241 100644 --- a/INSTALL +++ b/INSTALL @@ -8,11 +8,15 @@ To use this from uzbl, add the following line to the config file @cbind s = script file:///path/to/readable.js +You'll also have to add the statement 'readable();' to the bottom of +readable.js. + # Surf -To use it from surf, add the following to script.js (replacing the -keyIdentifier if you want to bind to a key other than Ctrl-S): +To use it from surf, and trigger it from a key combination, add the +following to script.js (replacing the keyIdentifier if you want to +bind to a key other than Ctrl-S): (function() { document.addEventListener('keydown', keybind, false); @@ -22,14 +26,14 @@ function keybind(e) { if (e.keyIdentifier == "U+0053" && e.ctrlKey) // ^s readable(); } -/* copy readable.js here, removing the final line 'readable()' */ +/* copy readable.js here */ # 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';})(); +javascript:(function(){document.body.appendChild(document.createElement('script')).src='file:///path/to/readable.js';readable()})(); 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 -- cgit v1.2.3