title: Automate / trigger console command in firebug
body: <p>In firebug I want to automate running a console command like this:</p>
  
  <pre><code>holder += ($p).innerHTML + '\n'; copy(holder)
  </code></pre>
  
  <p>..to run each time a page element (selected and stored in $p) loads new HTML. I'm using Firebug and there in HTML tab we can right-click on an element and "Use in Command Line" which puts the CSS Path of the element in a variable $p. (can also use $0, $1 etc)
  I'm looking in Firebug's reference for a way to trigger this, but can't find anything right now. Any ideas of how to go about it? Also open to using tools other than Firebug for this.</p>
  
  <p>Updates:</p>
  
  <p>Desired trigger: 3 seconds after another HTML element on the same page : a dropdown, changes value. Alternatively, fire trigger after target element finishes loading following from ajax query.</p>
  
  <p>In windows enviromment I have automated mouse-clicks and keystrokes on screen using <a href="http://www.autohotkey.com/" rel="nofollow noreferrer">AutoHotKey</a> to change the focus from page to console (by clicking in it), enter the command, then change focus back to page and repeat the operation. But it's a crude solution that has to be pixel-fine-tuned each time and can change on different devices.</p>
  
  <p>I'm getting suggestions to create a browser add-on of my own. Apologies but I presently have zero experience in creating add-ons and am wondering if it is a more complicated way of achieving something simpler? Some reference on how to get started on that trajectory, relating to this particular situation, would be highly appreciated if it was mentioned with the suggestion.</p>