Skip to content

Commit

Permalink
Merge pull request #150 from SaiUddisa/main
Browse files Browse the repository at this point in the history
Added Warning about self-xss attack in browser's console
  • Loading branch information
jelveh authored Mar 20, 2024
2 parents 24b23ef + b7da6a0 commit f2e23eb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,9 @@ window.loadCSS = async function(url) {

document.head.appendChild(link);
});
}
}
console.log( "%c⚠️Warning⚠️\n %cPlease refrain from adding or pasting any sort of code here, as doing so could potentially compromise your account. \nYou don't get what you intended anyway, but the hacker will !! \n\n%cfor further information please visit https://developer.chrome.com/blog/self-xss",
"color:red; font-size:2rem;margin-left:40%;font-family: 'Helvetica Neue', HelveticaNeue, Helvetica, Arial, sans-serif;",
"font-size:1rem; font-family: 'Helvetica Neue', HelveticaNeue, Helvetica, Arial, sans-serif;",
"font-size:0.9rem; font-family: 'Helvetica Neue', HelveticaNeue, Helvetica, Arial, sans-serif;"
);

0 comments on commit f2e23eb

Please sign in to comment.