Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Add the warning message in console to alert the user about XSS Attack.
- */
- function domContentLoaded() {
- "use strict";
- setTimeout(console.log.bind(console, "\n%cStop!", "color:red;font-size:50px;font-weight:bold;text-shadow: 1px 1px 0px black, 1px -1px 0px black, -1px 1px 0px black, -1px -1px 0px black;"));
- setTimeout(console.log.bind(console, "This is a browser feature intended for developers. If someone told you to copy and paste something here, it is a scam and will give them access to your %caccount", "color:red;", "etc. so avoid to do that if you are not a developer and doesn't have an understanding of what you are copy and pasting here."));
- }
- document.addEventListener("DOMContentLoaded", domContentLoaded);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement