From b7da6a043400833b9d7f655d8e3d24325bded1f2 Mon Sep 17 00:00:00 2001 From: Sai Uddisa Date: Wed, 20 Mar 2024 18:19:20 +0530 Subject: [PATCH] Added Warning about self-xss attack in browser console --- src/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index a5f5308b..25d13617 100644 --- a/src/index.js +++ b/src/index.js @@ -141,4 +141,9 @@ window.loadCSS = async function(url) { document.head.appendChild(link); }); -} \ No newline at end of file +} +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;" +); \ No newline at end of file