MediaWiki

Difference between revisions of "Common.js"

From ACES

draft>DDElephant
(Created page with "→‎Any JavaScript here will be loaded for all users on every page load.: (function (window, $, mw) { mw.hook("wikipage.content").add(function ($content) { // add wikit...")
 
m (1 revision imported)
 
(No difference)

Latest revision as of 16:57, 1 September 2021

/* Any JavaScript here will be loaded for all users on every page load. */
(function (window, $, mw) {
  mw.hook("wikipage.content").add(function ($content) {
    // add wikitable class to cargoTable
    $(".cargoTable:not(.wikitable)").addClass("wikitable")
  });
})(this, jQuery, mediaWiki);