MediaWiki:Common.js

From U2E
Revision as of 05:42, 19 May 2025 by U2e (talk | contribs) (Created page with "* ------------------------------------------------------------------------------ * * Ultraviolet * The user-friendly Wikipedia counter-vandalism tool. * * (c) The Ultraviolet Development Team and contributors ([email protected] / 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 De...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
* ------------------------------------------------------------------------------
* 
* Ultraviolet
* The user-friendly Wikipedia counter-vandalism tool.
*
* (c) The Ultraviolet Development Team and contributors ([email protected] / 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.wikimedia.org/repos/10nm/ultraviolet/
*
* ------------------------------------------------------------------------------
* Past this point, everything needs to be wrapped in a nowiki tag, or else we
* risk "transcluding" templates.
*
* <nowiki>
*/

// 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: 5fae5ddf7fbb70a7156819f35ae3900e408155f0
    */

// Enables verbose log output. window.rw_debug = true;

var commit = "5fae5ddf7fbb70a7156819f35ae3900e408155f0";

   var entrypoints = {"ultraviolet":{"js":["deps/ultraviolet.dep.material.js","deps/ultraviolet.dep.tsmodules.js","lang/ultraviolet.lang.en-US.js","deps/ultraviolet.dep.i18next.js","deps/ultraviolet.dep.otherdeps.js","ultraviolet.js"]}};
   var publicPath = "https://tools-static.wmflabs.org/ultraviolet/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());
       });
   }

})();