hack_ABC

Automatically earn money in Simunomics mini game Always Be Closing

  1. // ==UserScript==
  2. // @name hack_ABC
  3. // @namespace http://www.qianyurui.com
  4. // @version 0.1
  5. // @description Automatically earn money in Simunomics mini game Always Be Closing
  6. // @author Qianyu_Ray_Rui
  7. // @match http://www.simunomics.com/Self-ABC-Play.php
  8. // @grant none
  9. // @require http://code.jquery.com/jquery-latest.js
  10. // ==/UserScript==
  11. // reference http://forums.simunomics.com/viewtopic.php?t=219
  12.  
  13. $( document ).ready(function() {
  14. var content = $("i:first").text();
  15. var str = content.slice(1,-1);
  16. if (str===""){
  17. $('input[name="StartBtn"]').click();
  18. } else {
  19. if (str === "I absolutely can't buy anything else."||
  20. str === "OK I have to go."||
  21. str === "It will be tough to even fit all that in the car."||
  22. str === "That's all I can afford." ||
  23. str === "I really can't spend any more." ||
  24. str === "Wow, that's a lot. I should be going." ||
  25. str === "Well if I put that on the emergency card it will just fit."||
  26. str === "I need to go home and think it over."
  27. ){
  28. console.log (str);
  29. console.log ("c");
  30. $('input[name="CloseBtn"]').click();
  31. } else if (
  32. str === "I'm going to be broke after this."||
  33. str === "This is more than I've spent in a long time."||
  34. str === "I'm definitely over budget now."||
  35. str === "Guess I won't be able to eat out for a while."||
  36. str === "I hope I have enough to pay for all of that."||
  37. str === "Even on sale that's still pretty expensive."||
  38. str === "I'm going to go shop around. Maybe I'll be back."
  39. ){
  40. console.log (str);
  41. console.log ("s");
  42. $('input[name="SmallBtn"]').click();
  43. } else if (
  44. str === "I can't wait to get that home."||
  45. str === "Great, thanks for your help."||
  46. str === "Looks good. I'd liked to pay with my Visa."||
  47. str === "This is more than I planned on spending."||
  48. str === "I'll be paying this off for a while."||
  49. str === "Well, there goes this month's budget."||
  50. str === "There goes my paycheck."||
  51. str === "I'm satisfied. Do you want to ring me up?"||
  52. str === "I shouldn't, but sometimes you just have to splurge."||
  53. str === "That's a little more than I wanted to spend, but I think it's worth the cost."||
  54. str === "That's about what I came for."||
  55. str === "Good thing I have a big credit limit."||
  56. str === "I'll have to tighten my belt a bit after this."||
  57. str === "I'll be very happy with that."
  58. ){
  59. console.log (str);
  60. console.log ("m");
  61. $('input[name="MediumBtn"]').click();
  62. } else {
  63. console.log (str);
  64. console.log ("l");
  65. $('input[name="LargeBtn"]').click();
  66. }
  67. }
  68. });