Christian
Christian

Reputation: 7429

Is there a way to run JavaScript code via a shortcut within Firebug?

Is there a way (extension or something build-in) in Firebug to create a shortcut that runs a piece of JavaScript (e.g. a function)?

For instance, I want to delete the local storage and do a reload each time I press Ctrl+y.

Upvotes: 0

Views: 981

Answers (1)

Sebastian Zartner
Sebastian Zartner

Reputation: 20125

You currently (Firebug 2.0.1) cannot bind a keyboard shortcut to JavaScript code you entered within Firebug.

Though you at least have the possibility to save aliases for URLs containing scripts as described in "How to inject JavaScript snippet via Firebug on page load?". This at least allows you to store specific functionality and call it again later via the include() command.

There are also some feature requests targetting easy code snippet execution. You may want to create a new request for allowing to reference these snippets via a shortcut.

Upvotes: 1

Related Questions