[GC | Private] Kiss The Mortog Keyboard Controls

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

目前為 2024-02-15 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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();
            }
        });
		}}