[GC | Private] Kiss The Mortog Keyboard Controls

2/14/2024, 2:42:54 AM

当前为 2024-02-15 提交的版本,查看 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name        [GC | Private] Kiss The Mortog Keyboard Controls
// @namespace   https://greasyfork.org/en/users/1225524-kaitlin
// @match       https://www.grundos.cafe/medieval/kissthemortog/*
// @grant       none
// @license     MIT
// @version     1.0
// @author      Cupkait
// @icon        https://i.imgur.com/4Hm2e6z.png
// @description 2/14/2024, 2:42:54 AM
// ==/UserScript==


		const ThouShallNotPass = "35000";
								// Set this number to the amount of winnings you want to stop
								// at without collecting or moving to the next level. Do not
								// include spaces, commas or NP - just enter the number value.
								// 100, 300, 1150, 5900, 35000, 250000, 2000000, 18000000
								// 5900 is where you should set this if you want the avatar.


const mortogs = $('#mortogs > div > form');
const menu = $('#mortogs > .center > img.mortog-big-image').attr('src');
const prize = $('p.center').find('strong').eq(1).text().replace(/\D/g, '');


if (mortogs.length > 1) {
    console.log("Keep going... pick a mortog.");
    $(document).keypress(function(e) {
        if (e.which === 13) {
            const randomIndex = Math.floor(Math.random() * mortogs.length);
            mortogs.eq(randomIndex).submit();
        }
    });
} else if (menu.includes('boom')) {
    console.log("Yikes, get a mop then start over.");
    $(document).keypress(function(e) {
        if (e.which === 13) {
            $('input[value="Try again..."]').click();
        }
    })
} else if (menu.includes('mortog_prince')) {
    console.log("You got lucky... this time... keep going!");
    if (prize === ThouShallNotPass) { console.log("prize")
        alert("Whoa, hold your horses!\n\nBetter let this one simmer before you go kissing it...");
        $('body').css('background-color', 'lightred');
    }
    else {
        $(document).keypress(function(e) {
            if (e.which === 13) {
                $('input[value="Continue"]').click();
            }
        });
		}}