Every time I'm rebuilding the site I forgot to uncomment "custom-menu.js" which I'm commenting out during coding (bc I'm using the right click for developer tools) and because of that I have to re-upload the whole website every time, lol :D *I should make it work like if (!LOCALHOST) {} or something :D
aaaaaannnnnd its done :D if (['localhost', '127.0.0.1', '[::1]', '::1'].includes(hostname)) { return; }
i can relate to this i have a context menu too lol
*sharing same pain :D I just made it to return from function when localhost detected, never thought host detection is possible in js :D
yup, it worked I'm checking hostname constant which is actually: const hostname = window.location.hostname;
Oh lol, I didn't know about IPv6 notation, so my head defaulted to Python slicing. I am more powerful now.
just write code with neocities editor like a maniac (me) ಠ_ಠ
hypercrites that's badass!! I like your will for such an effort :)