WME Utils - Bootstrap

Adds a bootstrap function for easier startup of wmeSdk, WazeWrap, and ScriptUpdateMonitor.

À partir de 2024-09-22. Voir la dernière version.

Ce script ne devrait pas être installé directement. C'est une librairie créée pour d'autres scripts. Elle doit être inclus avec la commande // @require https://update.greasyforks.org/scripts/509664/1452097/WME%20Utils%20-%20Bootstrap.js

Auteur
mapomatic et WazeDev
Version
2024.09.22.002
Créer
2024-09-22
Mis à jour
2024-09-22
Taille
2,92 ko
Licence
GNU GPLv3

Usage:

bootstrap(args);

Where args is an object with these attributes:

{
    scriptName: 'My Script', // Used in initializing the WME SDK and ScriptUpdateMonitor alerts (if using WazeWrap.Alerts.ScriptUpdateMonitor)
    scriptId: 'myScript', // Used in initializing the WME SDK
    useWazeWrap: true, // Optional. Set to true if your script uses the WazeWrap library (you must still @require it in your script header).
    scriptUpdateMonitor: { // Optional. Needed if using ScriptUpdateMonitor
        scriptVersion: '1.0',
        downloadUrl: 'https://...',
        metaUrl: 'https://...', // Optional ScriptUpdateMonitor argument
        metaRegExp: /.../ // Optional ScriptUpdateMonitor argument
    }
}
长期地址
遇到问题?请前往 GitHub 提 Issues。