tampermonkey - running JQuery through Chrome console: different result -


i newbie in jquery, on random website, tried change color of label using following jquery selector through chrome console

$('label[for^=url]').css('color', 'blue' ); 

the result always

[] 

i installed tampermonkey, , used same selector above on same page, , surprisingly works fine, script uses

// @run-at       document-end 

so both times jquery selector used after page has loaded why it not work through console , works through tampermonkey/greasemonkey

$('label[for^=url]').css('color', '#0000ff' ); 

use color-code instead of color name


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -