Greasy Fork is available in English.

WME Utils - Bootstrap

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

Tính đến 22-09-2024. 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.greasyfork.org/scripts/509664/1452096/WME%20Utils%20-%20Bootstrap.js

Tác giả
mapomaticWazeDev
Phiên bản
2024.09.22.001
Đã tạo
22-09-2024
Đã cập nhật
22-09-2024
Size
3 KB
Giấy phép
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
    }
}