Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
var log = console.log;
console.log = function(str) {
var css = 'background: linear-gradient(to right, red, yellow, lime, aqua, blue, fuchsia, red); color: white; font-weight: bold; text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;';
var args =;
args[0] = '%c' + args[0];
return log.apply(console, args);
Copy link

harpreetsb commented Mar 13, 2014

for firefox too, please :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment