jQuery ready - how to strip an existing ready handle?
<p>I've been asked to perform maintenance on a third party site, I can edit the javascript but not the back end code. This site uses a plugin which sets various styles and events up in a jQuery.ready call. I want to stop it without causing errors. I can insert javascript before and after the plugin in the template but the markup inside the plugin comes from elsewhere. I have tried something like this:</p>

<pre><code>&lt;script&gt;
    var tmpReady = $.ready;
    $.ready = function() {};
&lt;/script&gt;
&lt;pluginWhichICanNotChange&gt;
    $(document).ready( function(){ BAD STUFF } );
&lt;/pluginWhichICanNotChange&gt;
&lt;script&gt;
    $.ready = tmpReady;
&lt;/script&gt;
</code></pre>

<p>But the BAD STUFF still fires. Anyone any idea how I can strip it!?</p>
