Example screenshot from the JavaScript console (Google Chrome 35, Win7) on a Facebook page:
How is this done? Is there a way to inspect/debug the console?
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 :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With