UserScript Automated Button Text Notifier

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

Från och med 2022-01-19. Se den senaste versionen.

Detta skript bör inte installeras direkt. Det är ett bibliotek för andra skript att inkludera med meta-direktivet // @require https://update.greatest.deepsurf.us/scripts/438801/1010219/UserScript%20Automated%20Button%20Text%20Notifier.js

Skapare
Xortrox
Version
0.2
Skapad
2022-01-19
Uppdaterad
2022-01-19
Size
3,17 KB
Licens
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();