Options - To Open results in New Tab

Asked by Nicolette

Hello,

I understand that you can open items in a new tab by middle or right clicking the menu item, but I really would like to have an option in the Options menu so it will work with links and searches too.

Maybe a simple check-box for "open links in new tab" like this "free ebook search" extension has... https://addons.mozilla.org/en-US/firefox/addon/1987

Or a more advanced drop down selection of options like the "conquery" extension has... http://mozilla-ext-ja.way-nifty.com/blog/files/conquery-1.7.3-mod4b6.xpi

I really want to build in this feature to my menu but have no coding abilities. How can I do this? Is it very difficult?

Thank you so much in advance!

~Nicole

Question information

Language:
English Edit question
Status:
Solved
For:
Easy Menu Edit question
Assignee:
No assignee Edit question
Solved by:
Nicolette
Solved:
Last query:
Last reply:
Revision history for this message
Volans (volans) said :
#1

I think is not so easy to add this feature without any coding ability but I can try to add it to EasyMenu in the next release.

Take care that there are 2 different point of view: the EasyMenu user that create an extension and the users of the final extensions.

You want to have this functionality in the EasyMenu command line so you can create an extension where all the links open in new tab or have this option for the final user?

Revision history for this message
Nicolette (seoverdose) said :
#2

Thank you Volans. Yes, I'd like to have this in the options menu for the final user. For example, maybe under the "Show Logo In Main Menus" option.

Revision history for this message
Volans (volans) said :
#3

I have released the 1.0.4 version of EasyMenu where, among other new features and bugfixes, I have added the possibility for the final user of the generated extensions to choose if open the links in a new tab or in the active tab.

Revision history for this message
Volans (volans) said :
#4

There was a little bug in EasyMenu 1.0.4 release about the custom search forms, due to the new feature requested here (open all links in new tabs) that now is fixed in EasyMenu 1.0.5 release. Thank you for your feature request.

Revision history for this message
Nicolette (seoverdose) said :
#5

Wow it's great! Thanks Volan for adding this feature and so quickly too! You're a great developer/coder!

Revision history for this message
DarkWolf (darkwolf) said :
#6

I've this old extensions: http://www.darkwolf.it/hwu/ and it open in new tab if i click with right mouse button.

Common.js:

function hwu_open(event, url)
{
 if (event && event.button != 0)
 {
  getBrowser().addTab(url);
 } else {
  loadURI(url);
 }
}

xml:
<menuitem class="menuitem-iconic ob" label="News" onclick="hwu_open(event, 'http://www.hwupgrade.it/forum/forumdisplay.php?f=51');"/>

i think is simple to integrate in easymenu ;)