UserScript Automated Button Text Notifier

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

Tính đến 19-01-2022. Xem phiên bản mới nhất.

Script này sẽ không được không được cài đặt trực tiếp. Nó là một thư viện cho các script khác để bao gồm các chỉ thị meta // @require https://update.greatest.deepsurf.us/scripts/438801/1010217/UserScript%20Automated%20Button%20Text%20Notifier.js

Tác giả
Xortrox
Phiên bản
0.2
Đã tạo
19-01-2022
Đã cập nhật
19-01-2022
Size
3 KB
Giấy phép
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();