Can I change the order of items in Mac OS X Safari's right click menu?

4

2

If I'm in Safari then after right clicking on any button (Ctrl+Click), the pop-up menu will show "open link in new window" on top, and "open in new tab" below that.

Is it possible to swap them, or completely remove the "open link in new window"?

scilix

Posted 2011-01-12T20:24:21.997

Reputation: 41

1I think you mean Control-click, not Option-click. – NSGod – 2011-01-12T20:37:11.173

Of course. misprint out :) – scilix – 2011-01-12T21:07:31.273

(@scilix, next time please use the "edit" link. Thanks!) – Arjan – 2011-01-13T13:02:10.787

Answers

2

Most of a Mac OS X application's user interface is created in Interface Builder. The resulting files can be edited. But context menus are created in code, which is compiled to an executable.

Your options are very limited:

  • Write an Input Manager that hijacks part of the Safari process (insane)
  • Change the actual Safari executable (even more insane)

You cannot use Safari extensions to do this, they only support adding context menu entries, not changing existing ones.

You cannot use Automator/Services, because text input doesn't work, and the service doesn't apply for links when it expects URL input (for whatever reason). GUI scripting fails even more spectacularly.


Maybe, depending on what your motivation is, note that pressing o will highlight the second option, while pressing Down arrow will select the first option, if you're using your keyboard to navigate the menu.

Daniel Beck

Posted 2011-01-12T20:24:21.997

Reputation: 98 421

it's a pity. Command+Click performs this action, but sometimes I have only one hand :) , and then... horizontal movement of the mouse easier to succeed than vertical. Thanks – scilix – 2011-01-12T21:37:58.143

Even when not created in code: messing with application contents will break the (optional) digital signature, which may cause issues with firewall settings, and when applicable might even break the new App Store? – Arjan – 2011-01-13T13:04:44.107

0

Do you need to?

  • Command-click will open the link in a new tab.
  • Command-shift-click will open the link in a new tab and select it.
  • Command-option-click will will open the link in a new window, behind the current one.
  • Command-option-shift-click will open the link in a new window in front of the current one.

Geir Anders

Posted 2011-01-12T20:24:21.997

Reputation: 76

The behavior can be configured in Safari preferences and be different than what you describe. Also, see his comment on my post. Holding food and browsing probably doesn't go well together. – Daniel Beck – 2011-01-13T10:12:22.777

0

Buy a three-buttons mouse: middle click opens the link in a new tab.

I understand this is not exactly what you wanted, but it looks like it's as close as you can get, looking at the other answers.

o0'.

Posted 2011-01-12T20:24:21.997

Reputation: 1 868