Can't Run jQuery in Chrome console

Can't Run jQuery in Chrome console

I have 2 sites

I try to run the following script on both under Chrome:
$.each( $('*'), function() { 

    if ( $( this ).width() > $( 'body' ).width()) {

        console.log( "Wide Element: " , $( this ), "Width: " , $( this ).width());

    }

});
On the first it runs fine.
On the second I get the following result:

Uncaught TypeError: Cannot read property 'each' of undefined
    at <anonymous>:2:2
    at Object.InjectedScript._evaluateOn (<anonymous>:895:140)
    at Object.InjectedScript._evaluateAndWrap (<anonymous>:828:34)
    at Object.InjectedScript.evaluate (<anonymous>:694:21)

Can someone help please?
Tnx
I. Sher