MediaWiki:Common.js

From Final Fantasy XIV Online Wiki
Revision as of 20:42, 7 June 2017 by Admin (talk | contribs) (Created page with "→‎Any JavaScript here will be loaded for all users on every page load.: // Scripts to use when viewing articles if (mw.config.get('wgIsArticle') || window.location.href.in...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Note: After saving, 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)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* Any JavaScript here will be loaded for all users on every page load. */

// Scripts to use when viewing articles
if (mw.config.get('wgIsArticle') || window.location.href.indexOf('action=submit') > -1 || mw.config.get('wgNamespaceNumber') == -1) {
    mw.loader.load( '/index.php?title=User:Valento/CollapsibleTables.js&action=raw&ctype=text/javascript' );
}