Safari(6+)的工具栏上可以有“新窗口”按钮吗?
答案1
Backup Safari.
Install XCode. A bit of overkill for that one button, yes.
Open Safari's package contents (control-click and select Show Package Contents)
Navigate into Contents/Resources/English.lproj
Open ToolbarItems.nib (double clicking should open with Interface Builder)
In the 'ToolbarItems.nib (English)' window, double click on 'First Responder.'
Press Command-Shift-I to bring up the Inspector window, if it's not already open
In the Inspector window, press Command-1 to make sure you're looking at 'Attributes.' Click on Add, and create a new item called newWindow.
In the 'Toolbar Items' window, click on one of the 'torn pictures' and press Command-Shift-I to bring up the Inspector window if it's not already open.
Select the one nearest the Address bar (this should correspond to the placement in the Customise Toolbar menu); this is the 'Add Bookmark' button.
Press Command-2 or choose Connections. Select 'newWindow' and click 'Change Action' or simply double-click on it; there should be a round pushbutton icon next to it now.
Save, quit and test.
这是修改自这里
这需要进行很多操作,而不仅仅是在 Safari 打开时按下键盘上的 [Command+N]。
答案2
终于!我编写了自己的扩展: