login button help

I’m trying to make a program to automatically login on twitch Im trying GetElementById then invokemember but the login button doesnt have an id any other way i can auto click the login button?

Twitch uses an OAuth 2.0, an authentication protocol designed to make accessing user accounts from third party clients easy and secure. Read the full authentication guide for more details.

Don’t do that. That’s essentially hijacking their twitch account.

If you prefer to invoke the button it is declared as:

<input type="submit" class="button primary js-login-button" value="Log In" />

so you can retrieve it from the login form with:

var buttons = document.getElementsByClassName("button primary js-login-button");

The actual button should be the first and only element in buttons accessed through buttons[0] (don’t forget error checking)

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.