Custom Buttons Context Menu Extended

Custom Buttons Context Menu Extended

Postby Odyseus » Sat Jul 04, 2015 12:37 am

This button extends the Custom Buttons context menu capabilities by adding new menu items to perform different actions.

Disclaimer!! The following link/s leads to an external page (GitHub). This forum is NOT responsible for any external content.

Image Install Custom Buttons Context Menu Extended

Compatibility
Tested and working on Firefox Stable/Dev. Edition, SeaMonkey, Palemoon and Thunderbird.
Not compatible with Nightly nor Windows Vista

Changelog June 3, 2016
  • Fixes/improvements for SeaMonkey and Thunderbird.
  • Improvements to the "Toggle initialization" feature. Now there is no warnings in the console about unreachable code. Thanks to InfoCatcher.
  • Improvements to the import from overlay feature.
  • Now there is no need to edit the button to add custom CSS tweaks.
  • General improvements of the kind "do more with less code".


Images
Grouped items
Image

Ungrouped items
Image

Features
  • Ability to install buttons by dropping Custom Button URIs or XML files into ANY toolbar. XML files can be installed in bulk. Beware!!! If 10 XML files are dropped into ANY toolbar, all 10 buttons will be installed and all 10 alert boxes will be displayed after each installation.
  • Ability to group menu items into "menugroup" elements. See images.
  • Ability to show/hide individual menu items.
  • Ability to import individual buttons in bulk from backed-up overlay files (ProfileFolder/custombuttons/buttonsoverlay.xul).

Options
Enable/Disable individual items
  • Show info header: Show/Hide the Info header at the top of the CB context menu. This header will display the number ID of the current button and when clicked, will copy the full ID to the clipboard.
  • Show 'Edit in tab...' in CB context: Show/Hide the 'Edit button in tab...' menu item in CB context menu.
  • Show 'Toggle initialization' in CB context: Show/Hide the 'Toggle initialization' menu item in CB context menu.
  • Show 'Remove to palette...' in CB context: Show/Hide the 'Remove to palette...' menu item in CB context menu.
  • Show 'Copy button as BBCode' in CB context: Show/Hide the 'Copy button as BBCode' menu item in CB context menu.
  • Show 'Copy button as HTML' in CB context: Show/Hide the 'Copy button as HTML' menu item in CB context menu.
  • Show 'Copy button image' in CB context: Show/Hide the 'Copy button image' menu item in CB context menu.
  • Show 'Export button as XML' in CB context: Show/Hide the 'Export button as XML' menu item in CB context menu.
  • Show 'Import XML button to left' in CB context: Show/Hide the 'Import XML button to left' menu item in CB context menu.
  • Show 'Import XML button to right' in CB context: Show/Hide the 'Import XML button to right' menu item in CB context menu.
  • Show 'Import From Overlay to left' in CB context: Show/Hide the 'Import From Overlay to left' menu item in CB context menu.
  • Show 'Import From Overlay to right' in CB context: Show/Hide the 'Import From Overlay to right' menu item in CB context menu.

Groups of menu items
Groups of menu items for CB context
  • Show 'Edit buttons' group: Show/Hide the Edit buttons menu group in Custom Buttons context menu.
      Items in this group:
    • Edit button...
    • Edit in tab...
    • Toggle initialization
  • Show 'Delete buttons' group: Show/Hide the Delete buttons menu group in Custom Buttons context menu.
      Items in this group:
    • Delete button
    • Remove to palette
  • Show 'Copy buttons' group: Show/Hide the Edit buttons menu group in Custom Buttons context menu.
      Items in this group:
    • Copy to clipboard
    • Copy button as BBCode
    • Copy button as HTML
    • Copy button image
  • Show 'Export/Import buttons' group: Show/Hide the Export/Import buttons menu group in Custom Buttons context menu.
      Items in this group:
    • Import XML button to left
    • Import From Overlay to left
    • Export button as XML
    • Import From Overlay to right
    • Import XML button to right
  • Show 'Other actions' group: Show/Hide the Other actions menu group in Custom Buttons context menu.
      Items in this group:
    • Clone button
    • Bookmark Button
    • Button Help
    • Update Button
  • Show 'Move buttons' group: Show/Hide the Move buttons menu group in Custom Buttons context menu.
      Items in this group:
    • Move to the beginning
    • Move to the left
    • Select to move
    • Move to right
    • Move to the end
  • Show 'Add/Install buttons' group: Show/Hide the Add/Install buttons menu group in Custom Buttons context menu.
      Items in this group:
    • Install to the left
    • Add to the left
    • Add to palette (Default behaviour)
    • Add to the right
    • Install to the right

Groups of menu items for toolbars context
  • Show 'Export/Import buttons' group: Show/Hide the Export/Import buttons menu group in toolbars context menu.
  • Show 'Move buttons' group: Show/Hide the Move buttons menu group in toolbars context menu.
  • Show 'Add/Install buttons' group: Show/Hide the Add/Install buttons menu group in toolbars context menu.

General options
  • Drag&Drop capabilities: If enabled, Custom Buttons buttons can be installed by simply drag and dropping a Custom Buttons URL or a CB XML file into any toolbar.
  • Drag&Drop - Require Control key: If enabled, the Control key must be pressed for the drag operation to attempt to install a button. Note: It's recommended to at least enable one modifier key.
  • Drag&Drop - Require Alt key: If enabled, the Alt key must be pressed for the drag operation to attempt to install a button. Note: It's recommended to at least enable one modifier key.
  • Hide 'Customize...' menu item from CB context: Hide 'Customize...' menu item from CB context.
  • Invert dark icons colours: Most of the icons used by this button are dark/black. With this option enabled, a white filter is applied to those icons to make them visible on dark themes.
  • Show ID on exported buttons: If enabled, it will add the number ID to the XML file name of exported button.
  • Show move alert: If enabled, a dialog with instructions will appear every time a button is selected to be moved.
  • Show 'Remove to palette' alert: If enabled, a dialog will appear every time a button is removed to the application palette.
  • Set custom export path: Set a custom path location to store exported XML buttons.
  • Clear last used path: Every time any import option is used, the last opened location is stored. This option clears that last used folder and resets it to the default export location.

Contributors
The "button positioning code" is based on Add/Install New Button Here, a button by srazzano.
The "Edit in tab" function is based on Edit Custom Button in Tab, a button by InfoCatcher.
The "Toggle button initialization" function is based on Custom Buttons: Disable Initialization, a button by InfoCatcher.
The export/import XML buttons functions and the XML desing are based on Custom Buttons XML Exporter/Importer, a button by LouCypher.

This button can present some incompatibilities if installed simultaneously with the following buttons:
  • Add/Install New Button Here: The button positioning code of this button will interfere with all the install and import features of CB Context Menu Extended. Both buttons can't be installed at the same time. Choose one or the other.
  • Edit Custom Button in Tab: Its code will not interfere with CB Context Menu Extended, but you will have redundant functionality (repeated menu items).
  • Custom Buttons: Disable Initialization: Its code will not interfere with CB Context Menu Extended, but you will have redundant functionality (repeated menu items).

If any errors are found, please report it ASAP on this page with as much details as possible.
  • Which platform and its version (Linux, Mac or Windows).
  • Which application and its version (Any Firefox-based browser or SeaMonkey).
  • Error/Browser console output, if any.
  • If it's easier for you to report an error with images, and if the image is too large or there are more than one, publish the links to them, do not post them using the IMG tag in the message.
  • Be willing to follow troubleshooting instructions.

All my buttons on GitHub
Last edited by Odyseus on Mon Sep 19, 2016 5:31 pm, edited 7 times in total.
Odyseus
 
Posts: 434
Joined: Sun Mar 10, 2013 12:51 pm

Re: Custom Buttons Context Menu Extended

Postby Odyseus » Wed Oct 28, 2015 6:56 pm

Changelog
  • It's recommended to remove the old version, restart your application and then install the new version.
  • Rewritten from scratch for better compatibility with others buttons that also modify the CB context menu.
  • Added more features. Read Features and Options sections.
Last edited by Odyseus on Sat Nov 07, 2015 5:42 am, edited 1 time in total.
Odyseus
 
Posts: 434
Joined: Sun Mar 10, 2013 12:51 pm

Re: Custom Buttons Context Menu Extended

Postby Odyseus » Sat Nov 07, 2015 5:42 am

Changelog November 07, 2015
  • Fixed a bug that could break some parts of the button. Affects only those that open more that one window from the same profile.
Last edited by Odyseus on Fri Jun 03, 2016 11:43 am, edited 1 time in total.
Odyseus
 
Posts: 434
Joined: Sun Mar 10, 2013 12:51 pm

Re: Custom Buttons Context Menu Extended

Postby ivan gradinov » Wed Mar 02, 2016 8:27 pm

Hi,
This is my first post in this forum. I hope to be in the right place otherwise, let me know where to ask my question

That said, I installed Custom Buttons Context Menu Extended under Firefox 27.0.1 (I know, it's a fossil but I have to deal with that!) the button is working perfectly. I tried to port it to Thunderbird 31.1.2 (I know it's also a fossil but ... !) Several attempts were unsuccessful when I realized that I just had to drag the BBCode and drop it inside the addon window of THB.
The result is that it doesn't work, I can edit the button but the image remains grey and flat.
Although I had a similar trouble with Backup All Custom Buttons during its installation, it"s now working well.

Back to CB Context Menu Extended, I removed the button, closed THB, reopened it, closed all the other buttons ... . No way to get it working. Is that a compatibility issue or did I do something wrong ?

TIA.
ivan gradinov
 
Posts: 4
Joined: Wed Mar 02, 2016 8:11 pm

Re: Custom Buttons Context Menu Extended

Postby Odyseus » Mon Mar 14, 2016 1:30 am

Hello, ivan gradinov.

Sorry for the delay. I didn't see your message until now.

I already found the problem with this button on Thunderbird. In a couple of days I will try to publish an updated/fixed version.

In the mean time, I answered your private message with some details to apply a quick fix to try.

Image
Odyseus
 
Posts: 434
Joined: Sun Mar 10, 2013 12:51 pm

Re: Custom Buttons Context Menu Extended

Postby ivan gradinov » Mon Mar 21, 2016 9:36 pm

Hi again,

I just sent you a private message. The quick fix worked.

Thanks a lot.
ivan gradinov
 
Posts: 4
Joined: Wed Mar 02, 2016 8:11 pm

Re: Custom Buttons Context Menu Extended

Postby Odyseus » Fri Jun 03, 2016 11:43 am

Changelog June 3, 2016
  • Fixes/improvements for SeaMonkey and Thunderbird.
  • Improvements to the "Toggle initialization" feature. Now there is no warnings in the console about unreachable code. Thanks to InfoCatcher.
  • Improvements to the import from overlay feature.
  • Now there is no need to edit the button to add custom CSS tweaks.
  • General improvements of the kind "do more with less code".
Odyseus
 
Posts: 434
Joined: Sun Mar 10, 2013 12:51 pm

Re: Custom Buttons Context Menu Extended

Postby mcee » Sat Nov 19, 2016 7:35 pm

I have to do the self destruct a lot. I'm ready to give up on this one if it can't be fixed to stick with one copy of the menu. I don't think browser version matters but I mostly use Waterfox and Pale Moon (Windows 8.1).
mcee
 
Posts: 37
Joined: Wed Oct 29, 2014 5:49 pm

Re: Custom Buttons Context Menu Extended

Postby Odyseus » Sun Nov 20, 2016 3:39 pm

mcee wrote:I'm ready to give up on this one if it can't be fixed to stick with one copy of the menu.


That kind of comments doesn't help me find a fix for your problem, so, keep them to yourself. Concentrate in posting your exact problems and the exact steps to reproduce them.

I don't have Waterfox to test on it. I tested in Palemoon and the context menu items are duplicated after exiting customize mode. I couldn't make the items duplicate under any other circumstance. Provide more details.

I updated the button in the main post with the fix for duplicated items on Palemoon after exiting customize mode.
Odyseus
 
Posts: 434
Joined: Sun Mar 10, 2013 12:51 pm


Return to Buttons made by forum users