Usage:
- open any website using jQuery.
- in the URL type
javascript:$('*').each(function() { $(this).css({background: "#"+((1<<24)*Math.random()|0).toString(16)});});
Yes! it's ugly!
/** Yeah, thx to @duboisnicolas */ | |
var jq = document.createElement('script'); | |
jq.src = "http://code.jquery.com/jquery-latest.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(jq); | |
$('*').each(function() { $(this).css({background: "#"+((1<<24)*Math.random()|0).toString(16)});}); |
$('*').each(function() { $(this).css({background: "#"+((1<<24)*Math.random()|0).toString(16)});}); |
Just run:
var jq = document.createElement('script');
jq.src = "http://code.jquery.com/jquery-latest.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
→ profit on every website! 😉
@duboisnicolas : GENIUS!
Ugly, but fun :)