UserScript Automated Button Text Notifier

This script is intended to work with @require only. Provides class AutomatedButtonTextNotifier

Per 19-01-2022. Zie de nieuwste versie.

Dit script moet niet direct worden geïnstalleerd - het is een bibliotheek voor andere scripts om op te nemen met de meta-richtlijn // @require https://update.greatest.deepsurf.us/scripts/438801/1010217/UserScript%20Automated%20Button%20Text%20Notifier.js

Maker
Xortrox
Versie
0.2
Gemaakt op
19-01-2022
Bijgewerkt op
19-01-2022
Grootte
2,84 KB
Licentie
MIT

Not intended for installation, only used with @require

Provides class AutomatedButtonTextNotifier

Example usage: const notificationConfig = [];

notificationConfig.push({
    includes: ['claim'],
    excludes: ['claimed'],
    notificationText: 'You have at least one adventure to claim'
});

notificationConfig.push({
    includes: ['reload adventures'],
    notificationText: 'You can reload adventures'
});

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

await automatedButtonTextNotifier.init();