UserScript Automated Button Text Notifier

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

Versione datata 19/01/2022. Vedi la nuova versione l'ultima versione.

Questo script non dovrebbe essere installato direttamente. È una libreria per altri script da includere con la chiave // @require https://update.greatest.deepsurf.us/scripts/438801/1010215/UserScript%20Automated%20Button%20Text%20Notifier.js

Autore
Xortrox
Versione
0.1
Creato il
19/01/2022
Aggiornato il
19/01/2022
Dimensione
2,84 KB
Licenza
MIT

Not intended for installation, only used with [@require](https://wiki.greasespot.net/Metadata_Block#.40require)

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();