Vyhľadajte odpoveď

Vyhnite sa podvodom s podporou. Nikdy vás nebudeme žiadať, aby ste zavolali alebo poslali SMS na telefónne číslo alebo zdieľali osobné informácie. Nahláste prosím podozrivú aktivitu použitím voľby “Nahlásiť zneužitie”.

Learn More

How do I bind/call the console helper functions?

  • Žiadne odpovede
  • 1 má tento problém
  • 7 zobrazení
more options

I am trying to bind Firefox's console helper functions to a new button or keyboard shortcut, but I am having trouble finding a way to do it. Specifically, I want to use the keys, pprint, copy, and :screenshot functions with a clickable button or keyboard shortcut that isn't buried in the developer tools. I want to string these together into one action, instead of several for accessibility, speed, and convenience reasons.

I have tried looking in the developer tool options and customize toolbar options for the ability to add a new button, and I'm not seeing it. I've also tried looking for a way to add a custom keyboard shortcut, so far no luck.

I have tried accessing the console helper functions via both remote and locally hosted Javascript; this does not work for safety/privacy reasons.

I have tried writing a locally hosted add-on and discovered that console helper functions either error out or fail silently.

Did I miss something? Are there any working examples of this that I can look at as a reference?

Short of setting up automation software like Selenium, I don't know what to do. That seems like a really big hammer for such a (seemingly) tiny nail.

I am using Firefox Quantum 62.0.3 (64-bit) on Windows 10.

I am trying to bind Firefox's console helper functions to a new button or keyboard shortcut, but I am having trouble finding a way to do it. Specifically, I want to use the keys, pprint, copy, and :screenshot functions with a clickable button or keyboard shortcut that isn't buried in the developer tools. I want to string these together into one action, instead of several for accessibility, speed, and convenience reasons. I have tried looking in the developer tool options and customize toolbar options for the ability to add a new button, and I'm not seeing it. I've also tried looking for a way to add a custom keyboard shortcut, so far no luck. I have tried accessing the console helper functions via both remote and locally hosted Javascript; this does not work for safety/privacy reasons. I have tried writing a locally hosted add-on and discovered that console helper functions either error out or fail silently. Did I miss something? Are there any working examples of this that I can look at as a reference? Short of setting up automation software like Selenium, I don't know what to do. That seems like a really big hammer for such a (seemingly) tiny nail. I am using Firefox Quantum 62.0.3 (64-bit) on Windows 10.