From e2e0ca32a9073de01ceb93b2c4a8045caf761b40 Mon Sep 17 00:00:00 2001 From: Nick White Date: Tue, 2 Nov 2010 19:06:02 +0000 Subject: Update install docs, remove testing line --- INSTALL | 29 ++++++++++++++--------------- gecko/chrome/content/readable.xul | 1 - 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/INSTALL b/INSTALL index 8b85241..ed062bf 100644 --- a/INSTALL +++ b/INSTALL @@ -1,34 +1,33 @@ Readable is written in ECMAScript, and how to launch it varies a little depending on browser. -# 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 - -You'll also have to add the statement 'readable();' to the bottom of -readable.js. - - # Surf -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): +To use it from surf, and trigger it from ctrl-alt-r, add the +following to script.js (function() { document.addEventListener('keydown', keybind, false); })(); function keybind(e) { - if (e.keyIdentifier == "U+0053" && e.ctrlKey) // ^s + if (e.keyIdentifier == "U+0052" && e.ctrlKey && e.altKey) // ctrl-alt-r readable(); } /* copy readable.js here */ +# Uzbl + +To use this from uzbl, add the following line to the config file +(replacing 'r' with the key to bind to): + +@cbind r = script file:///path/to/readable.js + +You'll also have to add the statement 'readable();' to the bottom of +readable.js. + + # Other browsers; 'bookmarklet' To use this as a 'bookmarklet', create a new bookmark with an address of: diff --git a/gecko/chrome/content/readable.xul b/gecko/chrome/content/readable.xul index e911b93..5ea1597 100644 --- a/gecko/chrome/content/readable.xul +++ b/gecko/chrome/content/readable.xul @@ -2,7 +2,6 @@