DailyMissionRewards

Daily Mission Reward Helper

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey 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.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name         DailyMissionRewards
// @version      1.21
// @description  Daily Mission Reward Helper
// @author       ByBatu
// @copyright       2021, ByBatu (https://edom.ninja)
// @match        https://www.edominations.com/*/index
// @include      https://www.edominations.com/*/index
// @download https://greasyfork.org/scripts/457374-dailymissionrewards/code/DailyMissionRewards.user.js
// @update https://greasyfork.org/scripts/457374-dailymissionrewards/code/DailyMissionRewards.user.js
// @grant   GM_setValue
// @grant   GM_getValue
// @grant       GM_xmlhttpRequest
// @license         MIT
// @namespace https://greasyfork.org/users/1004839
// ==/UserScript==



var rewardList = [{
        context: ["your countries battle",""],
        rewards: ["10 Q3", "30 Gold"],
        image: ["/public/game/items/adrenaline-dose.png", "/public/game/icons/gold-icon-s.png"]
    },
    {
        context: ["your allies battle",""],
        rewards: ["1 Q4", "20 Gold"],
        image: ["/public/game/items/booster.png", "/public/game/icons/gold-icon-s.png"]
    },
    {
        context: ["resistance battles",""],
        rewards: ["20", "30 Gold"],
        image: ["/public/game/items/rocket.png", "/public/game/icons/gold-icon-s.png"]
    },
    {
        context: ["amount of any currency",""],
        rewards: ["50", "1 Gold"],
        image: ["/public/game/items/t90.png", "/public/game/icons/gold-icon-s.png"]
    },
    {
        context: ["Battle Hero medal",""],
        rewards: ["50", "15 Gold"],
        image: ["/public/game/items/energy-bar.png", "/public/game/icons/gold-icon-s.png"]
    },
    {
        context: ["Level up!",""],
        rewards: ["1 Q5", "1 Gold"],
        image: ["/public/game/items/reduction.png", "/public/game/icons/gold-icon-s.png"]
    },
    {
        context: ["Produce",""],
        rewards: ["20", "1 Gold", "3"],
        image: ["/public/game/items/mortar.png", "/public/game/icons/gold-icon-s.png", "/public/game/icons/employees.png"]
    },
    {
        context: ["Sell","any products"],
        rewards: ["25", "2 Gold"],
        image: ["/public/game/items/ak47.png", "/public/game/icons/gold-icon-s.png"]
    },
    {
        context: ["Trigger",""],
        rewards: ["100", "30 Gold"],
        image: ["/public/game/items/energy-bar.png", "/public/game/icons/gold-icon-s.png"]
    },
    {
        context: ["Buy"," any products"],
        rewards: ["300 Q3", "2 Gold"],
        image: ["/public/game/items/food.png", "/public/game/icons/gold-icon-s.png"]
    },
    {
        context: ["Campaign Hero medal",""],
        rewards: ["1 Q5", "50 Gold"],
        image: ["/public/game/items/reduction.png", "/public/game/icons/gold-icon-s.png"]
    }
];




$(document).ready(function(){
if ($(".oaMsg").length > 0) {
    $(".oAMsg-tab-left-button").prepend("<div class=\"oAMsg-tab-left\" ><b>REWARDS: </b><br><div id=\"rewardlists\"></div></div>");
    setTimeout(function() {
        for (i = 0; i < rewardList.length; i++) {
            if ($("#container-content > div > div > div > div.col-md-5 > div.oaMsg > div > div.oAMsg-tab-right > div.oAMsg-tab-right-text > li:contains(" + rewardList[i]["context"][0] + "):contains(" + rewardList[i]["context"][1] + ")").length > 0) {
                for (k = 0; k < rewardList[i]["rewards"].length; k++) {
                    $("#rewardlists").append(rewardList[i]["rewards"][k] + "<img src=" + rewardList[i]["image"][k] + " width=\"25px\" height=\"25px\"></img><br>");
                }
            }
        };
    }, 500);
};
});