So at first I was trying to make this script to make evony accounts by using xampp but instead now im trying to use tampermonkey but I cant seem to get any of it to work for some reason :/
// ==UserScript==
// @name Evony account maker
// @include http://www.user.evony.com/index.do?PageModule=ForgetPassword
// @grant GM_addStyle
// ==/UserScript==
window.location = "http://www.user.evony.com/index.do?PageModule=ForgetPassword";
var email = rpplaysevony;
var password = daxter23;
var accnumber = 0;
function createaccount(){
document.getElementById("tab2").click()//trying to click a button with
// the id of tab2
document.getElementById('username').value = email + accnumber + "@yahoo.com";
}
window.onload = function () { createaccount() }
Any help would be awesome :) also tried
// ==UserScript==
// @name Evony account maker
// @include http://www.user.evony.com/index.do?PageModule=ForgetPassword
// @grant GM_addStyle
// ==/UserScript==
window.location = "http://www.user.evony.com/index.do? PageModule=ForgetPassword";
//var email = rpplaysevony;
//var password = daxter23;
//var accnumber = 0;
function createaccount(){
document.getElementById("tab2").click();
// document.getElementById('username').value = email + accnumber + "@yahoo.com";
}
window.onload = function () { createaccount();}
you've set the script to run on
http://www.user.evony.com/index.do?PageModule=ForgetPassword
your first line changes the page to
http://www.user.evony.com/index.doPageModule=ForgetPassword
the script wont run on'
http://www.user.evony.com/index.doPageModule=ForgetPassword
Hope that helps
OK - so that was a typo
where is the value of 'email' set?
edit 2 -
You have the following:
var email = rpplaysevony;
var password = daxter23;
Are rpplaysevony
and daxter23
supposed to be strings or do they refer to some vars you're not showing?
// ==UserScript==
// @name Evony account maker
// @include http://user.evony.com/index.do?PageModule=ForgetPassword
// @grant none
// ==/UserScript==
document.getElementById('username').value = 'rpplaysevony0@yahoo.com';
document.getElementById('pwd').value = 'daxter23';
document.getElementById('pwd2').value = 'daxter23';
document.getElementsByClassName('btn')[0].firstChild.click();