User:AssumeGoodTest/uv.js

/*! * -- * WARNING: ULTRAVIOLET HAS NOT YET BEEN OFFICIALLY RELEASED. INSTALLING THIS FILE * NOW MAY CAUSE ISSUES TO YOUR ABILITY TO USE ULTRAVIOLET IN THE FUTURE (AS IT * CONTAINS ONLY PARTIAL IMPLEMENTATIONS OF ONE-TIME ACTIONS THAT ARE RUN WHEN * MIGRATING FROM REDWARN). WE DO NOT RECOMMEND INSTALLING THIS USERSCRIPT UNTIL * WE HAVE OFFICIALLY ANNOUNCED THAT THIS BETA VERSION IS READY FOR USE. * -- * * Ultraviolet * The user-friendly Wikipedia counter-vandalism tool. * * (c) The Ultraviolet Development Team and contributors (tools.ultraviolet@toolforge.org / WT:UV) * Licensed under the Apache License 2.0 - read more at https://www.apache.org/licenses/LICENSE-2.0.txt * * -- * * Copyright 2021 The Ultraviolet Development Team and contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * *    http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * -- * * Ultraviolet is an open source project, and we invite others to develop extensions, * styles, translation, and other expansions for Ultraviolet! If you'd like to learn * more, reach out at https://en.wikipedia.org/wiki/Wikipedia:Ultraviolet/Contact. * * -- * *              ! ATTENTION TO ALL WITH SCRIPT EDITING PERMISSIONS ! * *            Changing this file will affect a large amount of users. *            It is not suggested that you directly change this file *             as there may be unknown implications of doing so. If *            there is an immediate threat posed by the script which *              needs to be settled immediately, please inform the *                  Ultraviolet team after making your changes. * *            This file is automatically generated by webpack when a *             new update is released. If you wish to modify the code, *             it is better to do so by making a pull request to the *           Ultraviolet repository on GitLab, which can be found here: * *                  https://gitlab.com/ultraviolet/ultraviolet/ * * -- * Past this point, everything needs to be wrapped in a nowiki tag, or else we * risk "transcluding" templates. * * */ // THIS FILE MUST BE ES5-COMPATIBLE! (function {

/*    * This function automatically loads the appropriate version of Ultraviolet * on Toolforge. For security purposes, it must never be automatically updated * without the authorization of a member of the Ultraviolet team or a verified * deployer. *    * commit hash: c6faa80a48ad3c24da157ce39d13b11df677d46f */

// Enables verbose log output. window.rw_debug = true; // Disallow running if not a team member to prevent IDB issues. if ([		"AssumeGoodTest"	].indexOf(mw.config.get("wgUserName")) === -1) return;

var commit = "c6faa80a48ad3c24da157ce39d13b11df677d46f"; var entrypoints = {"ultraviolet":{"js":["deps/redwarn.dep.material.js","deps/redwarn.dep.tsmodules.js","lang/redwarn.lang.en-US.js","deps/redwarn.dep.i18next.js","redwarn.js"]}}; var publicPath = "https://ultraviolet.toolforge.org/builds/" + commit + "/";

if (!!entrypoints && !!entrypoints["ultraviolet"] && !!entrypoints["ultraviolet"]["js"]) { entrypoints["ultraviolet"]["js"].forEach(function (value) {           var scriptUrl = new URL(value, publicPath);            mw.loader.load(scriptUrl.toString);        }); }

});