[EXT] Menu Wizard
-
- Posts: 1642
- Joined: December 26th, 2013, 10:46 pm
Re: [EXT] Menu Wizard
Sorry... "OnPopupShowing" - from MainContextMenu?
the code to hide must be located in the parent menu-folder
If your menu is in MainContextMenu, then you must add your code to the "OnPopupShowing" for "MainContextMenu", before return gContextMenu.shouldDisplay; !!!
the code to hide must be located in the parent menu-folder
If your menu is in MainContextMenu, then you must add your code to the "OnPopupShowing" for "MainContextMenu", before return gContextMenu.shouldDisplay; !!!
-
- Posts: 5
- Joined: September 8th, 2017, 3:03 am
Re: [EXT] Menu Wizard
OK, that seems to work, but erratically. Sometimes it shows up when it shouldn't and other times not showing when it should. Any ideas on this?pag77 wrote:Sorry... "OnPopupShowing" - from MainContextMenu?
the code to hide must be located in the parent menu-folder
If your menu is in MainContextMenu, then you must add your code to the "OnPopupShowing" for "MainContextMenu", before return gContextMenu.shouldDisplay; !!!
Ben
-
- Posts: 1642
- Joined: December 26th, 2013, 10:46 pm
Re: [EXT] Menu Wizard
Please show all code from "OnPopupShowing" for "MainContextMenu"
-
- Posts: 5
- Joined: September 8th, 2017, 3:03 am
Re: [EXT] Menu Wizard
var aNode=document.getElementById("context-searchselect").searchTerms;pag77 wrote:Please show all code from "OnPopupShowing" for "MainContextMenu"
var qrzcq=document.getElementById("s3mw_new_menu_1504775828967");
qrzcq.style.display = (aNode.length < 4 || aNode.length > 8 ) ? 'none' : '';
if (event.target != this) return true; gContextMenu = new nsContextMenu(this, event.shiftKey); if (gContextMenu.shouldDisplay) updateEditUIVisibility(); return gContextMenu.shouldDisplay;
Incidentally, it seems to work correctly on the second right-click. That is, if it comes up wrong on the first right-click, all I have to do is right-click again and it comes up correctly.
Ben
-
- Posts: 1642
- Joined: December 26th, 2013, 10:46 pm
Re: [EXT] Menu Wizard
try to delay the launch of the code:Ben Myers wrote:Incidentally, it seems to work correctly on the second right-click. That is, if it comes up wrong on the first right-click, all I have to do is right-click again and it comes up correctly.
Code: Select all
setTimeout(function(){
var aNode=document.getElementById("context-searchselect").searchTerms;
var qrzcq=document.getElementById("s3mw_new_menu_1504775828967");
qrzcq.style.display = (aNode.length < 4 || aNode.length > 8 ) ? 'none' : '';
}, 100);
-
- Posts: 5
- Joined: September 8th, 2017, 3:03 am
Re: [EXT] Menu Wizard
That did it. Thank you very much for your help.pag77 wrote:try to delay the launch of the code:Ben Myers wrote:Incidentally, it seems to work correctly on the second right-click. That is, if it comes up wrong on the first right-click, all I have to do is right-click again and it comes up correctly.Code: Select all
setTimeout(function(){ var aNode=document.getElementById("context-searchselect").searchTerms; var qrzcq=document.getElementById("s3mw_new_menu_1504775828967"); qrzcq.style.display = (aNode.length < 4 || aNode.length > 8 ) ? 'none' : ''; }, 100);
Ben
-
- Posts: 16
- Joined: September 5th, 2015, 8:35 pm
Re: [EXT] Menu Wizard
So I heard that this extension will not be functional in version 57. Have you ever thought about making a request to have menu customization an official part of Firefox?
-
- Posts: 1642
- Joined: December 26th, 2013, 10:46 pm
Re: [EXT] Menu Wizard
Unfortunately, WebExtensions (the new API for Firefox 57+) does not have the functionality for the correct operation of this addon in Firefox.
So this addon will no longer work with the release of Firefox 57 in November 2017!
This is the inevitable change in Firefox - all Xul-addons will die out in Firefox 57
https://blog.mozilla.org/addons/2017/02 ... ilestones/
But you can install Firefox 52 ESR and enjoy work until June 2018
https://www.mozilla.org/en-US/firefox/o ... tions/faq/
So this addon will no longer work with the release of Firefox 57 in November 2017!
This is the inevitable change in Firefox - all Xul-addons will die out in Firefox 57
https://blog.mozilla.org/addons/2017/02 ... ilestones/
But you can install Firefox 52 ESR and enjoy work until June 2018
https://www.mozilla.org/en-US/firefox/o ... tions/faq/
No, and it seems to me that for Firefox it is feature not necessaryTanookirby wrote:Have you ever thought about making a request to have menu customization an official part of Firefox?
-
- Posts: 1934
- Joined: February 10th, 2008, 6:30 am
- Location: Hungary
Re: [EXT] Menu Wizard
Won't happen. Neither as a built in feature, nor as an API for Webextensions. You are condemned have a random order of context menu items.Tanookirby wrote:So I heard that this extension will not be functional in version 57. Have you ever thought about making a request to have menu customization an official part of Firefox?
The problem with that is that Menu Wizard does not support WE context menu items (and stuff I remember you calling "dynamic" context menu items), so a bunch of things you can't be moved or hidden.pag77 wrote:But you can install Firefox 52 ESR and enjoy work until June 2018
https://www.mozilla.org/en-US/firefox/o ... tions/faq/
-
- Posts: 1934
- Joined: February 10th, 2008, 6:30 am
- Location: Hungary
Re: [EXT] Menu Wizard
Hello pag77!
Since MW doesn't support WE context menu items, is it possible to edit some file in the profile manually to move them or remove them? (I can't even hide them via CSS because Dom Inspector can't see them)
What about the so called "dynamic" items, which are also not supported.
Since MW doesn't support WE context menu items, is it possible to edit some file in the profile manually to move them or remove them? (I can't even hide them via CSS because Dom Inspector can't see them)
What about the so called "dynamic" items, which are also not supported.
-
- Posts: 1642
- Joined: December 26th, 2013, 10:46 pm
Re: [EXT] Menu Wizard
I do not want to upset you, but most likely "no"avada wrote:Hello pag77!
Since MW doesn't support WE context menu items, is it possible to edit some file in the profile manually to move them or remove them? (I can't even hide them via CSS because Dom Inspector can't see them)
What about the so called "dynamic" items, which are also not supported.
-
- Posts: 1934
- Joined: February 10th, 2008, 6:30 am
- Location: Hungary
Re: [EXT] Menu Wizard
Hmmm... Then how does FF store the added context menu items an their order?pag77 wrote:I do not want to upset you, but most likely "no"avada wrote:Hello pag77!
Since MW doesn't support WE context menu items, is it possible to edit some file in the profile manually to move them or remove them? (I can't even hide them via CSS because Dom Inspector can't see them)
What about the so called "dynamic" items, which are also not supported.
-
- Posts: 1642
- Joined: December 26th, 2013, 10:46 pm
Re: [EXT] Menu Wizard
Menu from WebExtensions? I do not know. can be in the order of loading extensionsavada wrote:Hmmm... Then how does FF store the added context menu items an their order?
-
- Posts: 4
- Joined: October 16th, 2017, 6:34 am
Re: [EXT] Menu Wizard
Hello,
Menu Wizard is not applying changes for the following:
Menu Wizard is not applying changes for the following:
-
- Posts: 1642
- Joined: December 26th, 2013, 10:46 pm
Re: [EXT] Menu Wizard
> Menu Wizard is not applying changes for the following...
after restart browser?
after restart browser?