AoG Notifications

Notification script for Arena of Glory

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το 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         AoG Notifications
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  Notification script for Arena of Glory
// @author       Xortrox
// @match        https://play.arenaofglory.io/*
// @icon         https://play.arenaofglory.io/favicon.ico
// @grant        none
// @license MIT
// @require      https://greasyfork.org/scripts/438798-userscript-notification-framework/code/UserScript%20Notification%20Framework.js?v=0.3
// @require      https://greasyfork.org/scripts/438801-userscript-automated-element-text-notifier/code/UserScript%20Automated%20Element%20Text%20Notifier.js?v=0.7
// ==/UserScript==

(async function() {
    const scanConfig = [{
        includes: ['claim'],
        excludes: ['claimed'],
        notificationText: 'You have at least one adventure to claim'
    }, {
        includes: ['reload adventures'],
        notificationText: 'You can reload adventures'
    }];

    const automatedElementTextNotifier = new AutomatedElementTextNotifier({
        icon: 'https://play.arenaofglory.io/favicon.ico',
        title: 'Arena of Glory',
        selector: '.button label',
        config: scanConfig,
        interval: 60000,
    });

    await automatedElementTextNotifier.init();
})();