How to snoop on $("<p>") calls?
<p>I was wondering how i snoop on dom modification events. I tried using the $.sub() to listen but it seems a little overfill to use another wrapper from jquery to get this affect. </p>

<p>Demo is here <a href="http://jsfiddle.net/sr5RE/2/" rel="nofollow">http://jsfiddle.net/sr5RE/2/</a></p>

<p>i.e this works</p>

<pre><code>var $sub = jQuery.sub();

$sub.fn.init = function(selector){
    alert("Success");
    return $.fn.init.apply($sub.fn.init, arguments);
};

$sub("&lt;p/&gt;");
</code></pre>

<p>but calling $ then it doesn't</p>

<pre><code>$("&lt;p/&gt;");
</code></pre>

<p>And obviously this will loop</p>

<pre><code>$.fn.init = function(selector){
    alert("Success");
    return $.fn.init.apply($sub.fn.init, arguments);
};

$("&lt;p/&gt;");
</code></pre>

<p>Any ideas?</p>
