-
Notifications
You must be signed in to change notification settings - Fork 3
/
readme
68 lines (53 loc) · 2.46 KB
/
readme
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
knogs: keyboard navigation on google search
google used to provide a keyboard shortcuts experiment
deprecated long ago, removed dec 2011
the recommended replacements aren't great
http://blog.nqzero.com/2011/12/googles-experimental-page-used-to-list.html
google still provides the js: https://www.google.com/js/shortcuts.5.js
knogs is a google chrome extension that provides similar functionality
uses google's shortcuts.5.js (see above)
google chrome only - tested on: chrome 17+ on linux/64-bit
install via chrome store:
https://chrome.google.com/webstore/detail/lmcekibeekmfpmhanampimjjegknceik
manual install:
option 1:
chrome://extensions
check: developer mode
click: load unpacked extension and select the path of the unpacked source
option 2:
google-chrome --load-extension=.
post (or pre) install:
disable google's instant search stuff
from a google search, click the gear icon --> search settings
select "never show instant results"
keybindings for search:
'j' and 'k' navigate up and down in the search results
'enter' to open the selected link
'o', 'shift-enter' and 'shift-o' to open the selected link with window.open
the browser will determine whether this is in a new tab or a new window
chrome 44 appears to open a new window if shift is pressed
'o' should reliably open a new tab in both chrome 43 and 44
'/' to select the search box
'esc' to leave the search box (when it has focus)
usage:
places a cursor to the left of the selected item (thanks yjsoon)
bugs:
opening an item and then using the back button doesn't set the cursor
open links on new tabs without changing focus
license: mit/x
note: shortcut.5.js and googleKeyboard.js are "unlicensed" and included here for reference only
the extension loads these directly from google at page-load
authors:
seth lytle - originator, maintainer
YJ Soon (yjsoon.com) - safari and styling improvements
see also:
http://userscripts.org/scripts/show/43131
a similar extension for firefox. couldn't get it to load in chrome
http://dl.dropbox.com/u/90126/GoogleJK/GoogleJK.safariextz
packaged for safari by YJ Soon
to package for chrome store:
grep '"version"' manifest.json | sed "s/.*://g" |
xargs -I xxx zip -r bin/knogs.xxx.zip knogs.user.js manifest.json readme kludge.js docs
then visit: https://chrome.google.com/webstore/developer/dashboard
// overload 'o' to open in a new tab
// allow for debugging (uncomment in content script)