Chrome 版本 35.0.1916.114
在网页上,F12。应该显示元素选项卡,如果不使用 ctrl+[ 切换到它。
从页面获取要在 F12 上显示的元素选项卡后,如果需要,您可以使用 Esc 进入控制台。
然后,当元素面板被聚焦时,在您遇到有趣的三个选项卡之前,我得到了样式面板,“用户代理样式表”。还有两个标签,我在右上角看到了一个小虚线图标,空间来显示它。
此时我们距离开始有 5 个标签。另外两个选项卡,我得到“在样式中查找”,再一个选项卡,我得到计算属性面板。然后另一个选项卡到达它下面的过滤器。
现在我们有 9 个标签。
猜猜第 10 个标签是什么。
或者,如果你的小指累了,它只是向后移动 8 个 shift-tabs。
这就是我们在业务中所说的“可发现性”。
再说一遍,这里是 AutoHotkey 脚本:
; Match any part of title
SetTitleMatchMode, 2
#IfWinActive - Google Chrome
;#IfWinActive ahk_class Chrome_WidgetWin_1
+F10:: ; goto html body, use upper left corner mouse click
CoordMode, Mouse, Screen
MouseGetPos, xpos, ypos
CoordMode, Mouse, Relative
MouseClick, left,10, 95, 1, 0
CoordMode, Mouse, Screen
MouseMove, %xpos%, %ypos%, 0
Return
F10:: ; from html, goto dev tools (Elements Panel must be default here, with console open ESC),
; might need to adjust tab number to suit your icons to the right of location bar
Send, ^l
Send, {tab 7}
Return
^F10:: ; from html, goto dev tools - previously opened console (Elements Panel must be default here, with console open ESC)
Send, ^l
Send, {tab 7}
Send, {tab 13}
Return
#IfWinActive ;Chrome