Mousehunt Ultimate Horn

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

  1. // ==UserScript==
  2. // @name Mousehunt Ultimate Horn
  3. // @author Howie The Almighty
  4. // @version 2020.11.25
  5. // @namespace https://github.com
  6. // @description Just to sound horn, nothing fancy, but it bypasses the king's reward.
  7. // @require https://code.jquery.com/jquery-2.2.2.min.js
  8. // @include http://mousehuntgame.com/*
  9. // @include https://mousehuntgame.com/*
  10. // @include http://www.mousehuntgame.com/*
  11. // @include https://www.mousehuntgame.com/*
  12. // @include http://apps.facebook.com/mousehunt/*
  13. // @include https://apps.facebook.com/mousehunt/*
  14. // @include http://hi5.com/friend/games/MouseHunt*
  15. // @include http://mousehunt.hi5.hitgrab.com/*
  16. // @grant unsafeWindow
  17. // @grant GM_info
  18. // ==/UserScript==
  19.  
  20.  
  21.  
  22. (function() {
  23. 'use strict';
  24.  
  25. setTimeout(main_function, 960*1000);
  26. })();
  27.  
  28. function main_function(){
  29. hornAPI()
  30. location.reload()
  31. }
  32.  
  33. function hornAPI(){
  34. let timeNow = new Date()
  35. fetch('https://www.mousehuntgame.com/api/action/turn/me', {
  36. method: "GET",
  37. })
  38. .then(res => res.json())
  39. .then(res => {
  40. if (res.success){
  41. console.log("Successfully horned at " + timeNow.toISOString())
  42. } else {
  43. console.log("Failed to horn at " + timeNow.toISOString())
  44. }
  45. console.log(res)
  46. })
  47. }