Created
May 31, 2018 23:31
-
-
Save jennasalau/14c5ed67131a5296fec2352dbf3d50be to your computer and use it in GitHub Desktop.
Social Engineering Self-XSS Warning Like Facebook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (process.env.NODE_ENV === 'production') { | |
if (typeof window !== 'undefined' && typeof console === 'object' && typeof console.log === 'function') { // eslint-disable-line no-console | |
console.log('%cWARNING!', 'color:white; background:red; font-size: 16pt'); // eslint-disable-line no-console | |
console.log('%cThis is a browser feature intended for developers. Using this console may allow attackers to impersonate you and steal your information. Do not enter or paste code that you do not understand.', 'font-size: 14pt'); // eslint-disable-line no-console | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment