title: Why doesn't this userscript work on Facebook?
body: <p>I was writing user script for Google Chrome that would automatically open a specific chat tab, but it's not working, </p>
  
  <p>I think that it is because the <code>Chat.openTab</code> is not specifically defined, because when i run the code in the javascript console it works fine.</p>
  
  <p>CODE:</p>
  
  <pre><code>var face = "facebook.com"
  var domain = document.domain
  if (domain = face)
  {
   Chat.openTab("sam.sebastian1", "Seb") 
  }
  </code></pre>