Skip to content

Instantly share code, notes, and snippets.

@kieran23101
Created January 25, 2018 09:43
Show Gist options
  • Save kieran23101/d277286a40732f53ed403a5ab6f44285 to your computer and use it in GitHub Desktop.
Save kieran23101/d277286a40732f53ed403a5ab6f44285 to your computer and use it in GitHub Desktop.
Example of how facebook have their warning in their console
const warningTitleCSS = 'color:red; font-size:60px; font-weight: bold; -webkit-text-stroke: 1px black;';
const warningDescCSS = 'font-size: 18px;';
console.log('%cStop!', warningTitleCSS);
console.log("%cThis is a browser feature intended for developers. If someone told you to copy and paste something here to enable a Facebook feature or \"hack\" someone's account, it is a scam and will give them access to your Facebook account.", warningDescCSS);
console.log('%cSee https://www.facebook.com/selfxss for more information.', warningDescCSS);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment