File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 100
100
window . onload = async function ( ) {
101
101
try {
102
102
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
+
103
112
const username = localStorage . getItem ( 'username' ) ;
104
113
105
114
document . getElementById ( 'authSection' ) . style . display = 'none' ;
133
142
const plainUsername = data . username ;
134
143
const encodedUsername = btoa ( plainUsername ) ;
135
144
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 ' ) {
138
147
localStorage . removeItem ( 'loggedIn' ) ;
139
148
localStorage . removeItem ( 'username' ) ;
140
149
window . location . href = 'banscreen.html?reason=spam' ;
You can’t perform that action at this time.
0 commit comments