title: How to Force Click on All "Like" Links on Facebook.com via JavaScript?
body: <p>If I'm on <a href="http://facebook.com" rel="nofollow">http://facebook.com</a> and I use Firebug or some other console to run some JavaScript on the site directly... is it possible to force the links to trigger their appropriate <code>POST</code>s to <a href="https://www.facebook.com/ajax/ufi/like.php" rel="nofollow">https://www.facebook.com/ajax/ufi/like.php</a>? I have tried the following quick and dirty method:</p>
  
  <pre class="lang-js prettyprint-override"><code>var s = document.createElement("script");
  s.src = "http://code.jquery.com/jquery-latest.min.js";
  s.type = "text/javascript";
  
  document.getElementsByTagName("head")[0].appendChild(s);
  
  $(".UFILikeLink").click();
  </code></pre>
  
  <p>... but, of course, it doesn't work. I am wondering what method I might take with plain JS or otherwise to force that event. Thanks!</p>