title: Add an element when "DOMNodeInserted" event called
body: <p>I want to add an element after every "like" button (chrome extension). Since posts are added to the news feed without refreshing the page, I have to add an event listener "<code>DOMNodeInserted</code>". But when I try to put the <code>after()</code> function inside it, it doesn't work.</p>
  
  <p>Code:</p>
  
  <pre><code>    $("#contentArea").addEventListener("DOMNodeInserted", function(event) {
          $(".like_link").after('&lt;span class="dot"&gt; · &lt;/span&gt;&lt;button class="taheles_link stat_elem as_link" title="תגיד תכל&amp;acute;ס" type="submit" name="taheles" onclick="apply_taheles()" data-ft="{&amp;quot;tn&amp;quot;:&amp;quot;&amp;gt;&amp;quot;,&amp;quot;type&amp;quot;:22}"&gt;&lt;span class="taheles_default_message"&gt;תכל&amp;acute;ס&lt;/span&gt;&lt;span class="taheles_saving_message"&gt;לא תכלס&lt;/span&gt;&lt;/button&gt;');
          $(".taheles_saving_message").hide(); 
      });
  </code></pre>
  
  <p>When I change <code>$("#contentArea")</code> to <code>document</code> it crashes all the page.</p>