greasemonkey/greasemonkey — Issue #1493: My code is not working in Greasemonkey
Author: Erection
Created: 2012-01-03 17:55:01+00:00
State: open

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();