How can I insert a prefix for all jQuery selectors?
<p>I need extended main jQuery function to insert a prefix before any selector passed to it.</p>

<p>For example</p>

<pre><code>jQuery.prefix = '#newBody ';
jQuery('.content')
</code></pre>

<p>would be the same as </p>

<pre><code>jQuery('#newBody .content')
</code></pre>

<p>I tried running this code</p>

<pre><code>window.oldJquery = jQuery;
window.jQuery = window.$ = function( selector, context) {
    console.log('+',selector);
    return oldJquery(selector, context );
}
</code></pre>

<p>But I last jQuery object.</p>

<p>**</p>

<h2>Without changes in the current code</h2>

<p>**</p>
