From 5e58b83688d1953bbae0dd492f51eb4ea7c222d3 Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 15 Nov 2010 21:38:13 +0000 Subject: Allow keybinding in chromium --- INSTALL | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'INSTALL') 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: -- cgit v1.2.3