Jump to content

User:Chenzw/global.js

From Meta, a Wikimedia project coordination wiki

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.
/* Global JavaScript */

if ( mw.config.get( 'wgDBname' ) !== 'simplewiki' && mw.config.get( 'wgDBname' ) !== 'enwiki' && mw.config.get( 'wgDBname' ) !== 'metawiki' ) {
	/**
	 * Forces left-to-right layout and editing on RTL wikis.
	 * @see https://meta.wikimedia.org/wiki/Force_ltr
	 * @update-token [[File:pathoschild/forceltr.js]]
	 */
	mw.loader.load('//tools-static.wmflabs.org/meta/scripts/pathoschild.forceltr.js');
	
	mw.loader.load('//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-popups.js&action=raw&ctype=text/javascript');
	mw.loader.load('//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-navpop.css&action=raw&ctype=text/css', 'text/css');
}