WME Utils - Bootstrap

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

ของเมื่อวันที่ 22-09-2024 ดู เวอร์ชันล่าสุด

สคริปต์นี้ไม่ควรถูกติดตั้งโดยตรง มันเป็นคลังสำหรับสคริปต์อื่น ๆ เพื่อบรรจุด้วยคำสั่งเมทา // @require https://update.greatest.deepsurf.us/scripts/509664/1452097/WME%20Utils%20-%20Bootstrap.js

ผู้เขียน
mapomatic และ WazeDev
เวอร์ชัน
2024.09.22.002
สร้างเมื่อ
22-09-2024
อัปเดตเมื่อ
22-09-2024
Size
2.92 กิโลไบต์
สัญญาอนุญาต
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
    }
}