summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2010-11-02 19:06:02 +0000
committerNick White <git@njw.me.uk>2010-11-02 19:06:02 +0000
commite2e0ca32a9073de01ceb93b2c4a8045caf761b40 (patch)
tree91d5e5a305ec629190275624a773e9dd5990506f
parent9b74d624c1b248f81771082c7adc1bab3ae670d6 (diff)
Update install docs, remove testing line
-rw-r--r--INSTALL29
-rw-r--r--gecko/chrome/content/readable.xul1
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 @@
<overlay id="readable" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script src="chrome://readable/content/readable.js" />
<keyset>
- <key id="readable" modifiers="accel alt" key="t" oncommand="alert('hi!')" />
<key id="readable" modifiers="accel alt" key="r" oncommand="readable()" />
</keyset>
</overlay>