If you open the browser console on the VKontakte page, then enter
$ We will see the jQuery object in the output, but if we embed it on the UserScript page:
function append() { console.log( $ ); }; window.setInterval( append, 1000 ); then exactly once a second the error undefined will fall into the console.
In what namespace to look for jQuery and how can it be, because UserScript runs in a global context and in the same context does the work take place if you directly enter commands into the console?
window.$. What is displayed is the console api ( developer.chrome.com/devtools/docs/commandline-api ). In FF a similar thing like. - Dmitry Manannikov