Adds a bootstrap function for easier startup of wmeSdk, WazeWrap, and ScriptUpdateMonitor.
بۇ قوليازمىنى بىۋاسىتە قاچىلاشقا بولمايدۇ. بۇ باشقا قوليازمىلارنىڭ ئىشلىتىشى ئۈچۈن تەمىنلەنگەن ئامبار بولۇپ، ئىشلىتىش ئۈچۈن مېتا كۆرسەتمىسىگە قىستۇرىدىغان كود: // @require https://update.greasyfork.org/scripts/509664/1452096/WME%20Utils%20-%20Bootstrap.js
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
}
}