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/1452097/WME%20Utils%20-%20Bootstrap.js을(를) 사용하여 포함하는 라이브러리입니다.

작성자
mapomatic, WazeDev
버전
2024.09.22.002
생성일
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
    }
}