title: "TypeError: can't convert undefined to object" with GreaseMonkey script
body: <p>I have the following GreaseMonkey script. It basically adds a button to a page that already has a lot of buttons. Clicking that added button should trigger w/e function is associated with clicking all the other buttons. However, when I click the triggerAllButton, I get an error <code>TypeError: can't convert undefined to object</code> in the console. Any ideas what's wrong with this code? I replaced the links in <code>@include</code> and <code>@exclude</code> with <code>...</code> as I don't want them public.</p>
  
  <pre><code>// ==UserScript==
  // @name Test Stuff
  // @description Test
  // @include ...
  // @require .../static/jquery.min.js
  // @require .../static/bootstrap/js/bootstrap.js
  // @require .../static/datatables/js/jquery.dataTables.js
  // @require .../static/datatables/js/DT_bootstrap.js
  // @require .../static/toastr/toastr.js
  // ==/UserScript==
  
  $(document).ready(function(){
      $('.navbar-text.pull-right')
          .append('&lt;input type="button" id="triggerAllButton" class="btn btn-info btn-small" value="Trigger All"&gt;');
  });
  
  $(function(){
      $('#triggerAllButton').click(function(e){
          e.preventDefault();
          $(".btn.trigger").each(function() {
              $(this).trigger();
          });
      });
  });
  </code></pre>