Use a browser that is not obsolete.
i cant is there a way to fix it by hosting my own server
i cant
Then I think you are probably on your own.
You would need to transpile the js to an older ecma version. Not sure if it would work because your browser might be that old that it can't understand everything invidious tries to do even with polyfills. Most definitely it would be slower and probably wouldn't run on your phone.
This is an issue with Google login, not JS. See #754.
i don't even get to login i don't even press the button
Thats your browser attempting to auto-login.
Most helpful comment
This is an issue with Google login, not JS. See #754.