Geu*_*rts 19 keyboard-shortcuts google-chrome
在 Chrome 中,您可以突出显示网页上的某些文本,然后使用右键单击上下文菜单在新标签中打开对所选文本的 google 搜索。
如果我可以使用键盘快捷键而不是右键单击菜单访问此功能,那将非常方便。我试过搜索现有的扩展程序,并在这里搜索了现有的键盘快捷键列表:https : //support.google.com/chrome/answer/157179?hl=en
有人知道实现这一目标的方法吗?
Kel*_*ari 10
这将在 Chrome 中工作:
想要自动化吗?使用AutoHotkey的,使其使用自动微距CTRL+ Alt+S 使用该脚本::
^!s::
Send ^c
Send ^t
Send ^v
Send {Enter}
Return
Run Code Online (Sandbox Code Playgroud)
仅供参考,我测试了这个脚本,它在 Chrome 中工作。
小智 7
我在 AHK 中也有两个答案。
这是全球适用的任何地方(不仅在 chrome 中)。只需选择文本并按Windows+G
#g:: ;;Google selected text
Send, ^c
Run, http://www.google.com/search?q=%Clipboard%
Return
Run Code Online (Sandbox Code Playgroud)
一个是我在这里的回答。选择文本并按Windows+ Shift+ G。这是不同的,因为它只为您提供剪贴板上的链接。
; Search google for the highlighted word
; then get the first link address and put it on the Clipboard
^!r:: Reload
#+g::
bak = %clipboard%
Send, ^c
;clipboard = %bak%`r`n%clipboard%
Query = %clipboard%
wb := ComObjCreate("InternetExplorer.Application")
;wb := IEGet()
wb.Visible := false
wb.Navigate("www.google.com/search?q=" Query)
While wb.readyState != 4 || wb.document.readyState != "complete" || wb.busy ; wait for the page to load
sleep 100
; loop % (Nodes := wb.document.getElementById("rso").childNodes).length
; Links_urls .= (A_index = 1) ? Nodes[A_index-1].getElementsByTagName("a")[0].href : "`n" . Nodes[A_index-1].getElementsByTagName("a")[0].href
; Msgbox %Links_urls%
Nodes := wb.document.getElementById("rso").childNodes
First_link := Nodes[0].getElementsByTagName("a")[0].href
Clipboard = %First_link%
TrayTip, First Link on Google Search, %First_link% `r`n Ctrl+V to paste the link
return
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
22245 次 |
最近记录: |