diff options
-rw-r--r-- | COPYING | 2 | ||||
-rw-r--r-- | chromium/background.html | 1 | ||||
-rw-r--r-- | keybind.js | 8 | ||||
-rwxr-xr-x | simplyread.js | 6 |
4 files changed, 5 insertions, 12 deletions
@@ -1,4 +1,4 @@ -SimplyRead is Copyright 2010 Nick White. It is licensed under the +SimplyRead is Copyright 2010,2011 Nick White. It is licensed under the GNU Affero General Public License version 3, or any later version. GNU AFFERO GENERAL PUBLIC LICENSE diff --git a/chromium/background.html b/chromium/background.html index 7850bd2..ce0042e 100644 --- a/chromium/background.html +++ b/chromium/background.html @@ -4,7 +4,6 @@ sendResponse({}); }; - /* called on page load if viable */ chrome.extension.onRequest.addListener(onRequest); chrome.pageAction.onClicked.addListener(function(tab) { @@ -1,11 +1,9 @@ -/* - * See COPYING file for copyright, license and warranty details. - */ +/* See COPYING file for copyright, license and warranty details. */ + (function() { document.addEventListener('keydown', keybind, false); })(); function keybind(e) { - if (e.keyIdentifier == "U+0052" && e.ctrlKey && e.altKey) // ctrl-alt-r - simplyread(); + if(e.keyCode == 82 && e.ctrlKey && e.altKey) simplyread(); } diff --git a/simplyread.js b/simplyread.js index f7e3d3e..e7e9e27 100755 --- a/simplyread.js +++ b/simplyread.js @@ -1,8 +1,4 @@ -/* - * SimplyRead - Stop browsing, start reading - * - * See COPYING file for copyright, license and warranty details. - */ +/* See COPYING file for copyright, license and warranty details. */ if(window.content && window.content.document.simplyread_original === undefined) window.content.document.simplyread_original = false; |