User:Grutness/common.js

importScript("User:Writ Keeper/Scripts/orangeBar.js");

if ( mw.config.values.wgCanonicalSpecialPageName === 'Whatlinkshere' ) { $( function {		'use strict';		var ul = $( '#mw-whatlinkshere-list' );		ul.before( 'Sort ' );		$( '#whatlinksheresort' ).click( function { var li = ul.children( 'li' ); li.detach.sort( function( a, b ) {				return $( a ).find( 'a' ).first.text.localeCompare( $( b ).find( 'a' ).first.text );			} ); ul.append( li ); } );	} ); }