WME Utils - Bootstrap

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

2024/09/22のページです。最新版はこちら

このスクリプトは単体で利用できません。右のようなメタデータを含むスクリプトから、ライブラリとして読み込まれます: // @require https://update.greatest.deepsurf.us/scripts/509664/1452091/WME%20Utils%20-%20Bootstrap.js

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
作者
mapomaticWazeDev
バージョン
2024.09.22.000
作成日
2024/09/22
更新日
2024/09/22
大きさ
2.92KB
ライセンス
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
    }
}