title: How can I "click" a button that performs a JS function through the Firefox web console?
body: <p>My website somehow produced a rather interesting issue. We have individual pages for each auction that goes live, and this one in particular got messed up somehow. Typically we have an edit button that allows us to perform various functions, and one of them kills the auction.</p>
  <p><strong>My question:</strong> is there a way that I can manually enter that kill command into the console on the web browser?</p>
  <p>The initial JS for the functions:</p>
  <pre><code>$(document).ready(function() {
      $(&quot;.remove_doc&quot;).click(function() {
          var doc_id = $(this).attr(&quot;title&quot;);
          var auction_id = $(&quot;#auction_id&quot;).val();
  </code></pre>
  <p>The &quot;Kill Auction&quot; command looks like this:</p>
  <pre><code>} else if(what == 'mark_dead') {
          var confirmKill = confirm(&quot;Are you sure you want to kill this auction?&quot;);
          if(confirmKill) {
              $.post(&quot;edit_auction.php&quot;, {id:auction_id, dead:1}, function(data) {
                  if(data == 1) {
                      alert(&quot;You are now an auction murderer!&quot;);
                      location.reload(true);  
                  } else {
                      alert(&quot;Failed murder attempt!&quot;);
                  }
              });
          } else {
              alert(&quot;Your bullet missed...&quot;); 
          }
  </code></pre>
  <p>Any thoughts on how I can run this operation in the console would help tremendously!</p>
  <p>Thanks!</p>