User:Peterdownunder/common.js

/** * Adds a tab to link to the page with the same title on the Simple English Wikipedia * @author Grunny */ $( function {	var simplewikiUrlPath = 'http://simple.wikipedia.org/wiki/';	if( mw.config.get( 'wgServer' ).indexOf( 'https://' ) === 0 ) {		simplewikiUrlPath = mw.config.get( 'wgServer' ) + '/wikipedia/simple/wiki/';	}	if( mw.config.get( 'skin' ) === 'vector' ) {		//Could just use p-views in the addPortletLink for vector, but it looks weird after the watch star		$( '#p-views  ul  li#ca-history' ).after( ' SimpleWiki ' );	} else {		mw.util.addPortletLink( 'p-cactions', simplewikiUrlPath + encodeURIComponent( mw.config.get( 'wgPageName' ) ), "simplewiki", "ca-simplewiki-link", "View same page on the Simple English Wikipedia" );	} } );

importScript("User:GregU/dashes.js");

mw.loader.load( "https://meta.wikimedia.org/w/index.php?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript" );