How does Facebook put this formatted text in a JavaScript console?

enter image description here

By opening the JavaScript console on Facebook, you are warning that you are not posting anything there to be safe from a scam. This seems like a very good counter measure against "getting your victim to do the work for you." How do they do it?

+4
source share
1 answer

console.log () can be formatted using inline CSS

It:

console.log("%cThis will be formatted with large, blue text", "color: blue; font-size: x-large");

It will look like this: enter image description here

Source

+6
source

All Articles