I'm trying to use Menu Wizard to add a context menu item to search for images on IQDB. Is there something I'm doing wrong here? Basically I just want to concatenate a string containing the search URL and the URL of the image targeted by the context menu event, but nothing is happening when I click this menu item.
[Menu Wizard] What am I doing wrong, here?
-
- Posts: 6405
- Joined: February 3rd, 2009, 6:29 pm
Re: [Menu Wizard] What am I doing wrong, here?
Try this:
Menu Wizard
http://addons.mozilla.org/firefox/addon/508352
Menu Wizard (support thread)
http://forums.mozillazine.org/viewtopic ... &t=2828771
Reference
http://dxr.mozilla.org/mozilla-release/ ... extMenu.js
Code: Select all
if (gContextMenu.onImage) {
urlSecurityCheck(gContextMenu.mediaURL, gContextMenu.principal);
openUILinkIn("https://iqdb.org/?url=" + encodeURIComponent(gContextMenu.mediaURL), "tab");
} else if (gContextMenu.onLink) {
urlSecurityCheck(gContextMenu.linkURL, gContextMenu.principal);
openUILinkIn("https://iqdb.org/?url=" + encodeURIComponent(gContextMenu.linkURL), "tab");
}
http://addons.mozilla.org/firefox/addon/508352
Menu Wizard (support thread)
http://forums.mozillazine.org/viewtopic ... &t=2828771
Reference
http://dxr.mozilla.org/mozilla-release/ ... extMenu.js
-
- Posts: 2
- Joined: August 31st, 2017, 5:33 pm
Re: [Menu Wizard] What am I doing wrong, here?
Works perfectly. Guess it's a little more in-depth than I thought it would be. (t. C# dev) Thanks!
-
- Posts: 6405
- Joined: February 3rd, 2009, 6:29 pm
Re: [Menu Wizard] What am I doing wrong, here?
You're welcome.