title: jquery/userscript is not defined?
body: <p>In chrome my userscript cause the error</p>
  
  <pre><code>ReferenceError: jQuery is not defined
  </code></pre>
  
  <p>But the line @require includes jquery. At least i know it does with greasemonkey (does chrome not support that?)</p>
  
  <p>If i delete the function that one function call (which makes $ = jQuery) I get the error $ is not defined. In firefox/greasemonkey it runs fine</p>
  
  <pre><code>// ==UserScript==
  // @name        Detect Duplicate IDs
  // @namespace   jkbfvsdjkzsvfshefsdvh
  // @description Alerts you when more than one ID is on a page
  // @require     http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
  // @include     *
  // @version     1
  // @grant
  // ==/UserScript==
  
  //using localhost in @include doesn't seem to work
  if(location.hostname!='localhost')
      return;
  
  //Ignore above for console.
  (function($){
  $(function() {
  var checkDupeIDs = function () {
      var dupes = [];
      var ids = [];
      $('[id]').each(function(i,e){ids.push(e.id)});
      var len = ids.length;
      for(i=0; i&lt;len; ++i) {
          if(dupes.indexOf(ids[i])!=-1)
              continue;
          for(n=i+1; n&lt;len; ++n) {
              if (ids[n]==ids[i]) {               
                  dupes.push(ids[n]);
                  break;
              }
          }
      }
      if (dupes.length!=0) { 
          for(i=0; i&lt;dupes.length; ++i)
              console.warn('Multiple IDs #' + dupes[i]);
          alert(dupes.join('\n')); 
      }
  }
  
  
  var jHtml = $.html;
  $.html = function () {
      checkDupeIDs();
      return jHtml.call(this, arguments);
  }
  
  checkDupeIDs();
  
  })
  })(jQuery);
  </code></pre>