A tweet-sized, fork-to-play, community-curated collection of JavaScript.
//the function
var css=function(){for(var b=[].slice.call(arguments),a=b.length-2,c=b[a+1];a>-1;a--)for(var d in c)b[a].style[d]=c[d];}
//apply to body and head that "backgroundColor" is "black" and the "color" is "white"
css(document.head, document.body, {
"backgroundColor":"black",
"color":"white"
});
How about:
?
Update: just forgot a semicolon - fixed.