<?xml version="1.0" encoding="UTF-8"?>
<post>
  <body>Could you please change:&lt;pre&gt;document.getElementById(&amp;quot;content&amp;quot;).addEventListener(&amp;#39;DOMNodeInserted&amp;#39;, inYoFace, true);
window.addEventListener(&amp;#39;load&amp;#39;, inYoFace, true);&lt;/pre&gt;to this:&lt;pre&gt;// Re-run the code when the page changes
function process() {
  document.getElementById(&amp;#39;content&amp;#39;).removeEventListener(&amp;#39;DOMNodeInserted&amp;#39;, process, false);
  inYoFace();
  document.getElementById(&amp;#39;content&amp;#39;).addEventListener(&amp;quot;DOMNodeInserted&amp;quot;, process, false);
}

// Wait for Facebook&amp;#39;s content element to exist
if (self.location == top.location) var checker=setInterval(function(){
    if(document.getElementById(&amp;#39;content&amp;#39;)) {
      clearInterval(checker);
      process(); // Start the listener
    }
  }, 200);&lt;/pre&gt;
It would eliminate the &lt;code&gt;document.getElementById(&amp;quot;content&amp;quot;) is null&lt;/code&gt; error

Edit: Thanks znerp</body>
  <body-html>&lt;p&gt;Could you please change:&lt;pre&gt;document.getElementById(&amp;quot;content&amp;quot;).addEventListener(&amp;#39;DOMNodeInserted&amp;#39;, inYoFace, true);
window.addEventListener(&amp;#39;load&amp;#39;, inYoFace, true);&lt;/pre&gt;to this:&lt;pre&gt;// Re-run the code when the page changes
function process() {
  document.getElementById(&amp;#39;content&amp;#39;).removeEventListener(&amp;#39;DOMNodeInserted&amp;#39;, process, false);
  inYoFace();
  document.getElementById(&amp;#39;content&amp;#39;).addEventListener(&amp;quot;DOMNodeInserted&amp;quot;, process, false);
}

// Wait for Facebook&amp;#39;s content element to exist
if (self.location == top.location) var checker=setInterval(function(){
    if(document.getElementById(&amp;#39;content&amp;#39;)) {
      clearInterval(checker);
      process(); // Start the listener
    }
  }, 200);&lt;/pre&gt;
&lt;br /&gt;It would eliminate the &lt;code&gt;document.getElementById(&amp;quot;content&amp;quot;) is null&lt;/code&gt; error&lt;/p&gt;

&lt;p&gt;Edit: Thanks znerp&lt;/p&gt;</body-html>
  <created-at type="datetime">2009-05-05T00:02:07Z</created-at>
  <forumable-id type="integer">8712</forumable-id>
  <forumable-type>Script</forumable-type>
  <id type="integer">117886</id>
  <topic-id type="integer">26188</topic-id>
  <updated-at type="datetime">2009-05-05T19:31:04Z</updated-at>
  <user-agent nil="true"></user-agent>
  <user-id type="integer">27715</user-id>
</post>
