Greasy Fork is available in English.

Kour KP Script

Unlimited 1500 KP Daily Rewards

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(У мене вже є менеджер скриптів, дайте мені встановити його!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Kour KP Script
// @namespace    http://tampermonkey.net/
// @version      1.3
// @description  Unlimited 1500 KP Daily Rewards
// @author       November2246
// @match        *://kour.io/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=kour.io
// @grant        none
// @license      ISC <3
// @run-at       document-start
// ==/UserScript==

new MutationObserver((mutations) => {
    for (const mutation of mutations) {
        for (const node of mutation.addedNodes) {
            if (node.tagName === 'SCRIPT' && !node.src) {
                if (String(node.textContent).toLowerCase().includes('userscript')) {
                    node.textContent = 'console.log(`Nice "anticheat" :D`)';
                }
            }
        }
    }
}).observe(document, { childList: true, subtree: true });

const _fetch = window.fetch;
window.fetch = function () {
    if (arguments[0].includes('/api/track')) {
        return Promise.reject();
    }

    return _fetch.apply(this, arguments);
}

function fixDailyRewards() {
    try {
        if (!window.firebase.auth()?.currentUser) return;

        let shouldSet = false;

        const rewardObj = { lastDailyReward: '9' };
        const refKey = 'users/' + window.firebase.auth().currentUser.uid;

        window.firebase.database().ref(refKey).once('value', e => {
            const obj = e.val();

            Object.keys(obj).forEach(key => {
                if (key.startsWith('dailyReward_')) {
                    rewardObj[key] = null;
                    shouldSet = true;
                }

                if (key === 'lastDailyReward' && obj[key] !== '9') {
                    shouldSet = true;
                }
            });

            if (shouldSet) {
                window.firebase.database().ref(refKey).update(rewardObj);
                window.showUserDetails('', window.firebase.auth().currentUser);
            }
        });

    } catch { }
}

function fakeSetDataNew(a) {
    window.unityInstance.SendMessage('FirebasePlayerPrefs2023', 'OnSetData', '{"err":null}&' + [...a].pop());
}

Object.defineProperty(window, 'unityInstance', {
    get() {
        return this._unityInstance;
    },
    set(v) {
        const _setDataNew = window.setDataNew;
        window.setDataNew = function () {
            if (arguments[1] === 'banned') {
                fakeSetDataNew(arguments);
                return;
            }

            if (arguments[1].includes("dailyReward_")) {
                fakeSetDataNew(arguments);
                window.showUserDetails('', window.firebase.auth().currentUser);
                return;
            }

            if (arguments[1] === 'lastDailyReward') {
                arguments[2] = '9';
            }

            return _setDataNew.apply(this, arguments);
        }

        this._unityInstance = v;

        const _SendMessage = this._unityInstance.SendMessage;
        this._unityInstance.SendMessage = function () {
            if (arguments[1] === 'OnLoggedInGoogle') fixDailyRewards();
            return _SendMessage.apply(this, arguments);
        }
    },
});