[GC] Kiss The Mortog Keyboard Controls

Play Kiss the Mortog with the keyboard.

  1. // ==UserScript==
  2. // @name [GC] Kiss The Mortog Keyboard Controls
  3. // @namespace https://greatest.deepsurf.us/en/users/1225524-kaitlin
  4. // @match https://www.grundos.cafe/medieval/kissthemortog/*
  5. // @grant none
  6. // @license MIT
  7. // @version 1.1
  8. // @author Cupkait
  9. // @icon https://i.imgur.com/4Hm2e6z.png
  10. // @description Play Kiss the Mortog with the keyboard.
  11. // ==/UserScript==
  12.  
  13.  
  14. const ThouShallNotPass = "250000";
  15. // Set this number to the amount of winnings you want to stop
  16. // at without collecting or moving to the next level. Do not
  17. // include spaces, commas or NP - just enter the number value.
  18. // 100, 300, 1150, 5900, 35000, 250000, 2000000, 18000000
  19. // 5900 is where you should set this if you want the avatar.
  20.  
  21.  
  22. const mortogs = $('#mortogs > div > form');
  23. const menu = $('#mortogs > .center > img.mortog-big-image').attr('src');
  24. const prize = $('p.center').find('strong').eq(1).text().replace(/\D/g, '');
  25.  
  26.  
  27. if (mortogs.length > 1) {
  28. console.log("Keep going... pick a mortog.");
  29. $(document).keypress(function(e) {
  30. if (e.which === 13) {
  31. const randomIndex = Math.floor(Math.random() * mortogs.length);
  32. mortogs.eq(randomIndex).submit();
  33. }
  34. });
  35. } else if (menu.includes('boom')) {
  36. console.log("Yikes, get a mop then start over.");
  37. $(document).keypress(function(e) {
  38. if (e.which === 13) {
  39. $('input[value="Try again..."]').click();
  40. }
  41. })
  42. } else if (menu.includes('mortog_prince')) {
  43. console.log("You got lucky... this time... keep going!");
  44. if (prize === ThouShallNotPass) { console.log("prize")
  45. alert("Whoa, hold your horses!\n\nBetter let this one simmer before you go kissing it...");
  46. $('body').css('background-color', 'lightred');
  47. }
  48. else {
  49. $(document).keypress(function(e) {
  50. if (e.which === 13) {
  51. $('input[value="Continue"]').click();
  52. }
  53. });
  54. }}
  55.