User:Dragoniez/common.js

From Test Wiki
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)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
// Test scripts on local web server
mw.loader.load('http://127.0.0.1:5500/Test/wikipediatest.js');
mw.loader.load('http://127.0.0.1:5500/Test/wikipediatest2.js');
mw.loader.load('http://127.0.0.1:5500/Test/wikipediatest3.js');
mw.loader.load('http://127.0.0.1:5500/Test/wikipediatest4.js');
mw.loader.load('http://127.0.0.1:5500/Test/wikipediaglobaltest.js');
//mw.loader.load('http://127.0.0.1:5500/Test/wikipediaglobaltest2.js');

// Navigation popups
mw.loader.load('https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-popups.js&action=raw&ctype=text/javascript');
mw.loader.load('https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-navpop.css&action=raw&ctype=text/css', 'text/css');

// UTC clock with a purge link
mw.loader.load('https://ja.wikipedia.org/w/index.php?title=MediaWiki:Gadget-UTCLiveClock.js&action=raw&ctype=text/javascript');