MediaWiki:Common.js: Difference between revisions

From Epic Path
Jump to navigation Jump to search
(Replaced content with "→‎Any JavaScript here will be loaded for all users on every page load.: mw.loader.load( 'index.php?title=MediaWiki:PointBuy.js&action=raw&ctype=text/javascript' );")
No edit summary
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */


mw.loader.load( 'index.php?title=MediaWiki:PointBuy.js&action=raw&ctype=text/javascript' );
(function(){
  var e = document.createElement('script');
  e.type = 'text/html';
  e.src = '/index.php?title=MediaWiki:PointBuy.js&action=raw&ctype=text/javascript';
  document.body.appendChild(e);
})();

Revision as of 21:42, 5 August 2019

/* Any JavaScript here will be loaded for all users on every page load. */

(function(){
  var e = document.createElement('script');
  e.type = 'text/html';
  e.src = '/index.php?title=MediaWiki:PointBuy.js&action=raw&ctype=text/javascript';
  document.body.appendChild(e);
})();