Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. /**
  2. * Add the warning message in console to alert the user about XSS Attack.
  3. */
  4. function domContentLoaded() {
  5. "use strict";
  6.  
  7. 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;"));
  8. 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."));
  9. }
  10. document.addEventListener("DOMContentLoaded", domContentLoaded);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement