- Mar 22, 2013
- 9,142
- 10,489
Can anyone tell me what kind of code I can put in Greasemonkey to make this button get clicked on page load?
Let's assume I visit a site called somesite.com and sometimes I stay logged in and sometimes I'm logged out. For when I'm logged out I found a way to have the username and password fields get autofilled on page load. However I can't figure out how to get that "login" button clicked on page load, and that's what I need the script for.
Can anyone whip something up real quick for me?
Thanks
Code:
<div class="main_login_btn">
<input class="gsbut" name="connect" value="Login" type="submit">
</div>
Let's assume I visit a site called somesite.com and sometimes I stay logged in and sometimes I'm logged out. For when I'm logged out I found a way to have the username and password fields get autofilled on page load. However I can't figure out how to get that "login" button clicked on page load, and that's what I need the script for.
Can anyone whip something up real quick for me?
Thanks