Skip to content

nqzero/knogs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)