Skip to content

My code is not working in Greasemonkey #1493

Closed
Erection opened this Issue Jan 3, 2012 · 1 comment

2 participants

@Erection
Erection commented Jan 3, 2012

When i try to create this script in greasemonkey it does not work but when i put it in mozilla's standart JavaScript redactor i got what i need.
There is the page: http://ogame.ru
There is my code:
function LogMeIn()
{
var Server=document.getElementById('serverLogin');
document.getElementById('serverLogin').options[Server.selectedIndex].value='uniurl';
document.getElementById('serverLogin').options[Server.selectedIndex].title='uniname';
setUniUrl(Server.options[Server.selectedIndex].value);
document.getElementById('usernameLogin').value='Mypass';
document.getElementById('passwordLogin').value='Mylogin';
document.getElementById('loginSubmit').click();
}

window.onload=Log LogMeIn();

@arantius
Collaborator
arantius commented Jan 3, 2012

A) This is not a support forum, it's a bug tracker. You were looking for http://groups.google.com/group/greasemonkey-users
B) This is one of the standard pitfalls. http://wiki.greasespot.net/Avoid_Common_Pitfalls_in_Greasemonkey

@arantius arantius closed this Jan 3, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.