File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 100100 window . onload = async function ( ) {
101101 try {
102102 if ( localStorage . getItem ( 'loggedIn' ) === 'true' ) {
103+
104+ // Ban check (example logic) - Tested sucessfully by MyScratchedAccount
105+ if ( encodedUsername === 'PUT THE FIRST BANNED USERS CODING HUT WEBSITE API TOKEN HERE' ) {
106+ localStorage . removeItem ( 'loggedIn' ) ;
107+ localStorage . removeItem ( 'username' ) ;
108+ window . location . href = 'banscreen.html?reason=spam' ;
109+ return ;
110+ }
111+
103112 const username = localStorage . getItem ( 'username' ) ;
104113
105114 document . getElementById ( 'authSection' ) . style . display = 'none' ;
133142 const plainUsername = data . username ;
134143 const encodedUsername = btoa ( plainUsername ) ;
135144
136- // Ban check (example logic) - im temp banning myself for test
137- if ( encodedUsername === 'TXlTY3JhdGNoZWRBY2NvdW50 ' ) {
145+ // Ban check (example logic) - Tested sucessfully by MyScratchedAccount
146+ if ( encodedUsername === 'PUT THE FIRST BANNED USERS CODING HUT WEBSITE API TOKEN HERE ' ) {
138147 localStorage . removeItem ( 'loggedIn' ) ;
139148 localStorage . removeItem ( 'username' ) ;
140149 window . location . href = 'banscreen.html?reason=spam' ;
You can’t perform that action at this time.
0 commit comments