22

Example screenshot from the JavaScript console (Google Chrome 35, Win7) on a Facebook page:

Example screenshot

How is this done? Is there a way to inspect/debug the console?

Elle
  • 3,695
  • 1
  • 17
  • 31

1 Answers1

36

Console API Reference:

https://developers.google.com/web/tools/chrome-devtools/console/console-write#styling_console_output_with_css

Nice example of using the console.log:

console.log("%cUser %s has %d points", "color:orange; background:blue; font-size: 16pt", 'User', 100);

Just paste it into the console :)

biphobe
  • 4,525
  • 3
  • 35
  • 46
gustavodidomenico
  • 4,640
  • 1
  • 34
  • 50