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,495
  • 1
  • 16
  • 30

1 Answers1

35

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
  • 3,964
  • 3
  • 33
  • 46
gustavodidomenico
  • 4,579
  • 1
  • 33
  • 50