summaryrefslogtreecommitdiff
path: root/INSTALL
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2010-11-15 21:38:13 +0000
committerNick White <git@njw.me.uk>2010-11-15 21:38:13 +0000
commit5e58b83688d1953bbae0dd492f51eb4ea7c222d3 (patch)
tree8bfd3afe24c8816cd3be28664dbc6b839634421d /INSTALL
parent9e11b949979529561e1a4d50ec43995983d1042e (diff)
Allow keybinding in chromium
Diffstat (limited to 'INSTALL')
-rw-r--r--INSTALL15
1 files changed, 2 insertions, 13 deletions
diff --git a/INSTALL b/INSTALL
index 834d009..439a7ed 100644
--- a/INSTALL
+++ b/INSTALL
@@ -9,7 +9,6 @@ page, or build it by running:
make xpi
-
# Chromium
SimplyRead also exists as an extension for chromium (and derived
@@ -22,18 +21,9 @@ you can get it from the SimplyRead web page, or by running:
# Surf
To use SimplyRead 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+0052" && e.ctrlKey && e.altKey) // ctrl-alt-r
- simplyread();
-}
-/* copy simplyread.js here */
+contents of keybind.js and simplyread.js to script.js:
+ cat keybind.js simplyread.js >> $HOME/.surf/script.js
# Uzbl
@@ -44,7 +34,6 @@ To use this from uzbl, add the following line to the config file:
You'll also have to add the statement 'simplyread();' to the bottom of
simplyread.js.
-
# Other browsers; 'bookmarklet'
To use this as a 'bookmarklet', create a new bookmark with an address of: