Greasy Fork

Greasy Fork is available in English.

Mousehunt Ultimate Horn

Just to sound horn, nothing fancy, but it bypasses the king's reward.

当前为 2020-11-24 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

 // ==UserScript==
// @name        Mousehunt Ultimate Horn
// @author      Howie The Almighty
// @version    	2020.11.24
// @namespace   https://github.com
// @description Just to sound horn, nothing fancy, but it bypasses the king's reward.
// @require		https://code.jquery.com/jquery-2.2.2.min.js
// @include		http://mousehuntgame.com/*
// @include		https://mousehuntgame.com/*
// @include		http://www.mousehuntgame.com/*
// @include		https://www.mousehuntgame.com/*
// @include		http://apps.facebook.com/mousehunt/*
// @include		https://apps.facebook.com/mousehunt/*
// @include		http://hi5.com/friend/games/MouseHunt*
// @include		http://mousehunt.hi5.hitgrab.com/*
// @grant		unsafeWindow
// @grant		GM_info
// ==/UserScript==



(function() {
    'use strict';

    // Your code here...
    hornAPI()
    setInterval(hornAPI, 360*1000);
})();

function hornAPI(){
    var HG_TOKEN = 'YOUR_HG_TOKEN_HERE'
    fetch('https://www.mousehuntgame.com/api/action/turn/me', {
        method: "GET",
        headers: {
            "cookie": 'HG_TOKEN'+HG_TOKEN
        }
    })
    .then(res => res.json())
    .then(res => {
        if (res.success){
            console.log("Successfully horned")
        } else {
            console.log("failed")
        }
        console.log(res)
    })
}