title: Greasemonkey: "waitForKeyElements is undefined"
body: <p>I'm trying to use GreaseMonkey on a page that uses AJAX.  I found what seems to be the solution for waiting and evaluating elements as they appear in "waitForKeyElements"</p>
  
  <p>However, my console returns "waitForKeyElements is undefined"</p>
  
  <p>here's the code:</p>
  
  <pre><code>// ==UserScript==
  // @name           SalesForce helper
  // @namespace     https://c.na3.visual.force.com*
  // @include       https://c.na3.visual.force.com*
  // @include       https://na3.salesforce.com/*
  // @grant none
  // @require       http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js
  // ==/UserScript==
  
  
  if(window.location.href.match("salesforce.com/500?")){
          waitForKeyElements(".listBody div",Greasemonkey_main);  
  }
  
  function Greasemonkey_main () {
  
  
      alert(window.location.href);
      if(window.location.href.match("salesforce.com/500?")){
          var firstWords = ["Edit","Base","Accelerated","EU","GoLive","Redesign","Report"]
          var divs = document.getElementsByTagName("div");    
          for(var i = 0;i &lt; divs.length;i++){     
              var did = divs[i].id;           
              if(did.indexOf("CASES_SUBJECT") &gt; 0){
                  var dSpan = divs[i].getElementsByTagName("span")[0];
                  var subject = divs[i].getElementsByTagName("span")[0].innerHTML.split(" ")[0];  
                  if(firstWords.indexOf(subject) &lt; 0){                    
                      //alert("howdy = " + subject);
                      dSpan.style = "background-color:yellow";
                  }               
              }
          }       
      }
  }
  </code></pre>