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
Post a Comment