Greasy Fork

Greasy Fork is available in English.

Mousehunt Football Player

Mousehunt Fifa World Cup 2014 event script, plays the soccer game for you, works only on July 09 2014 as of this moment

当前为 2014-07-10 提交的版本,查看 最新版本

// ==UserScript==
// @name       Mousehunt Football Player
// @author     GTDevsSuck
// @version    1.20
// @description  Mousehunt Fifa World Cup 2014 event script, plays the soccer game for you, works only on July 09 2014 as of this moment
// @match      *www.mousehuntgame.com/football.php*
// @namespace http://greasyfork.icu/users/3004
// ==/UserScript==

window.setInterval(function() {

    
    var name = document.getElementsByClassName('title')[0].innerHTML;
    
    if (name === "Field Mouse") { document.getElementsByClassName('actionButton')[2].click();}
    else if (name === "Hot Head Mouse") { document.getElementsByClassName('actionButton')[1].click(); }
    else if (name === "PRIZE ZONE") { document.getElementsByClassName('actionButton small')[0].click(); }
    else if (name === "Football Superstar") { document.getElementsByClassName('actionButton')[0].click(); }
        
    else if (name === "Master of the Cheese Belt Mouse") { document.getElementsByClassName('actionButton')[1].click(); }
    else if (name === "Nugget Mouse") { document.getElementsByClassName('actionButton')[0].click(); }
    else if (name === "Snooty Mouse") { document.getElementsByClassName('actionButton')[0].click(); }
    else if (name === "Falling Carpet Mouse") { document.getElementsByClassName('actionButton')[0].click(); }
    else if (name === "Tiny Mouse") { document.getElementsByClassName('actionButton')[0].click(); }
    else if (name === "Buckethead Mouse") { document.getElementsByClassName('actionButton')[0].click(); }

       if (document.body.innerHTML.match(/Costs 1 Football/i) && document.body.innerHTML.match(/Congratulations!/i))
    {document.getElementsByClassName('entryBlock invis fadeIn')[0].click();
    alert("Congratulations!\nYou got a Gold Footlocker!\n\nStarting another game.");
    window.location.href = "http://www.mousehuntgame.com/football.php";}
    
        else if (document.body.innerHTML.match(/Costs 1 Football/i) && document.body.innerHTML.match(/This mouse has no weakness/i))
    {document.getElementsByClassName('entryBlock')[0].click();
     alert("Lost a ball to the Challenger :(\n\nStarting a new game.");
    window.location.href = "http://www.mousehuntgame.com/football.php";}
           
        else if (document.body.innerHTML.match(/Costs 1 Football/i) && document.body.innerHTML.match(/Challenge the mice of Gnawnia to a game of football!/i))
    {document.getElementsByClassName('entryBlock')[0].click();
     alert("Starting a game from the beginning.");
     window.location.href = "http://www.mousehuntgame.com/football.php";}
    
        
        
        document.getElementsByClassName('target')[2].click();
    
    /**
    if (document.body.innerHTML.match(/Costs 1 Football/i) && document.body.innerHTML.match(/Congratulations!/i))
    {document.getElementsByClassName('entryBlock invis fadeIn')[0].click();}
        else if (document.body.innerHTML.match(/Costs 1 Football/i) && document.body.innerHTML.match(/This mouse has no weakness/i))
    {document.getElementsByClassName('entryBlock')[0].click();
    alert("second");}
        else if (document.body.innerHTML.match(/Costs 1 Football/i) && document.body.innerHTML.match(/Challenge the mice of Gnawnia to a game of football!/i))
    {document.getElementsByClassName('entryBlock')[0].click();
    alert("third");}
        
        
            
    if (document.getElementsByClassName('target')[2])
    {  document.getElementsByClassName('target')[2].click();
    alert("shoot");}
    
    */
     
    
    
    }, 1500);