5
1
In Chrome if I make a Google search and have a list of results, is there a keyboard shortcut to go to the links quickly and switch between the list of results? E.g. in Opera one can achieve it by pressing Tab and using the Up/Down arrows.
5
1
In Chrome if I make a Google search and have a list of results, is there a keyboard shortcut to go to the links quickly and switch between the list of results? E.g. in Opera one can achieve it by pressing Tab and using the Up/Down arrows.
2
Google have removed this feature, so you can't just turn it out like you used to be able to. The way you used to be able to do this was through:
Google Search > Settings > Search Settings > Google Instant Prediction > On
I was so sad to see this feature go that I wrote a hack to re-engineer it last night. So far it only works with Google Chrome, but can be adapted to work with all the others:
Keyboard Shortcut: tab
Behavior: Run JavaScript
Label as: Result Picker
Paste the following JavaScript into the JavaScript code to run:
document.selectedResultId=0
function selectResult(newId){
els = document.querySelectorAll("div.r h3")
if(newId < 0 || newId >= els.length)
return //Could modify for page nav...?
rp = document.getElementById("result-pointer")
if(rp != null){
rp.remove()
}
document.selectedResultId=newId
el = els[newId]
lnk = el.firstElementChild
el.innerHTML = "<div id=\"result-pointer\" style=\"position:absolute;left:-15px;\">></div>" + el.innerHTML
lnk.focus()
}
document.onkeyup=function(event){
if(event.keyCode==38)
selectResult(document.selectedResultId-1)
if(event.keyCode==40)
selectResult(document.selectedResultId+1)
if(event.keyCode==13){
var el = document.querySelectorAll("div.r h3")[document.selectedResultId]
var lnk = el.parentElement
var url = lnk.href
if(event.ctrlKey){
var win = window.open(url,"_blank")
win.blur()
window.open().close()
}
else{
document.location = url
}
}
}
selectResult(0)
Configure the Activation Settings:
Active while in form fields (Checked)
Websites (Only specific sites)
URLS (one per line): *.google.*
This is what the Options page should look like
Instructions:
When you restart you should see a little blue ">" appear by search results when you hit tab.
The up/down arrow keys make it cycle through the results.
Hitting "Enter" will navigate to the highlighted result.
Hitting "Ctrl+Enter" to open the result in a new tab. (note: on a Mac this is the actual control
key, not command
)
Happy Searching!
1+100 Thank you so much for implementing this! Now that Google Instant is gone (as of July 2017) we had no keyboard shortcuts, but you restored them!! – Brad Cupit – 2017-07-31T14:57:52.237
@BradCupit did you get it to work? – Robino – 2017-07-31T15:20:04.457
1your steps above? yes, they definitely work! Thank you so much!! – Brad Cupit – 2017-07-31T15:47:08.940
1On a Mac I was able to get Cmd+Enter to open tabs in the background. Change document.onkeyup
to document.onkeydown
, then change if(event.ctrlKey){
to if(event.metaKey){
and remove the calls to win.blur()
and window.open().close()
– Brad Cupit – 2017-07-31T21:49:12.477
I have a mac at home and will play around with it. I agree we need "Apple+enter" for new window. – Robino – 2017-08-01T09:54:38.943
1@BradCupit - updated to match new Google HTML. – Robino – 2018-11-27T22:03:07.580
1
Yes you press TAB
button once to get to the first result. And then you can select with the down/up buttons.
It does not work for me. Is it a glitch? – cerebrou – 2016-07-22T01:33:44.997
That's strange, because it definitely works for me. I'm in ubuntu, maybe there ar differences between OSes – Jonatan Öström – 2016-07-22T09:02:30.980
The answer below also works for me – Jonatan Öström – 2016-07-22T09:05:31.243
3
This only works in Chrome if you have Google Instant enabled in your browser settings. I don't know why.
– idbrii – 2016-07-31T18:07:13.577unfortunately Google has disabled Google Instant as of July 2017 – Brad Cupit – 2017-08-01T12:43:13.937
0
Just use your arrow keys ←↕→ and then press Enter when you are at the desired result.
See answer here: https://superuser.com/a/1237754/407543
– infokiller – 2017-08-04T18:12:40.720