无法使用tampermonkey脚本

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();}
查看全部
doudou3935
doudou3935
2015/07/14 03:42
  • tampermonkey
  • php
  • html
  • javascript
  • 点赞
  • 收藏
  • 回答
    私信

2个回复