Cerca nel supporto

Attenzione alle mail truffa. Mozilla non chiederà mai di chiamare o mandare messaggi a un numero di telefono o di inviare dati personali. Segnalare qualsiasi attività sospetta utilizzando l'opzione “Segnala abuso”.

Learn More

Questa discussione è archiviata. Inserire una nuova richiesta se occorre aiuto.

Firefox internal commands for some custom buttons

  • 5 risposte
  • 1 ha questo problema
  • 3 visualizzazioni
  • Ultima risposta di genD5

more options

Hi there! I have been looking for Firefox Browser internal commands list with commentaries describing what each of the commands is for. I want to add some custom toolbar buttons, so I need appropriate code for them. Particularly, I would like to learn the code (internal commands) for the following actions: 1. "Show All Download" in the Library / Ctrl+J Shortcut; 2. "Show All History" in the Library / Ctrl+Shift+H Shortcut.

I use this code for "Show All Bookmarks in the Library" custom toolbar button (Ctrl+Shift+B): gBrowser.selectedTab = gBrowser.addTab("chrome://browser/content/places/places.xul"

Unfortunately, you can't just replace "places.xul" with "downloads.xul" or "history.hul", while "browser/content/history/history-panel.xul" opens History Panel in the Side Bar and "browser/content/downloads/downloadPanel.xul" won't work at all.

Hi there! I have been looking for Firefox Browser internal commands list with commentaries describing what each of the commands is for. I want to add some custom toolbar buttons, so I need appropriate code for them. Particularly, I would like to learn the code (internal commands) for the following actions: 1. "Show All Download" in the Library / Ctrl+J Shortcut; 2. "Show All History" in the Library / Ctrl+Shift+H Shortcut. I use this code for "Show All Bookmarks in the Library" custom toolbar button (Ctrl+Shift+B): gBrowser.selectedTab = gBrowser.addTab("chrome://browser/content/places/places.xul" Unfortunately, you can't just replace "places.xul" with "downloads.xul" or "history.hul", while "browser/content/history/history-panel.xul" opens History Panel in the Side Bar and "browser/content/downloads/downloadPanel.xul" won't work at all.

Modificato da genD5 il

Tutte le risposte (5)

more options

Hello,

If I am understanding your question, are you both looking for a list of internal commands and a way to modify them?

For a list of keyboard shortcuts, please see: Keyboard shortcuts - Perform common Firefox tasks quickly

For an extension that allows you to modify your keyboard shortcuts: Customizable Shortcuts Add-on

more options

Hi, CoryMH. No, I am looking for the actual code which can be used for creating custom buttons as stated above. As the mater of fact, when you press a combination of buttons on the keyboard Firefox interprets it and executes a certain command associated with the keyboard shortcut. I need to figure out what exactly do I need to use in the "Code" section in the Button Creator which I use to create custom toolbar buttons. Something like JavaScript below: gBrowser.selectedTab = gBrowser.addTab("chrome://browser/content/places/places.xul"

Modificato da genD5 il

more options

PlacesCommandHook.showPlacesOrganizer('History'); PlacesCommandHook.showPlacesOrganizer('Downloads');

more options
more options

A ton of thanks, cor-el! Just what I wanted! Is there a full list of all internal commands with kind of "annotations", I wonder? I'm adjusting the default design of Firefox to make it look and feel like Opera, so I might need as many custom buttons as possible. Done some research but wasn't lucky to discover the list so far :)