Jump to content

User:Donarius/common.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
//importScript('Utilizator:Strainu/MediaWiki:Gadget-Stockphoto.js' );
//importScript('Utilizator:Strainu/findargdups.js'); // [[User:Frietjes/findargdups]]
//importScript('Utilizator:Strainu/ve.js');
//importScript('MediaWiki:Gadget-cache.js');

//mw.loader.load( '/w/index.php?title=MediaWiki:DiacriticsPoll.js&action=raw&ctype=text/javascript' );
//mw.loader.load( '/w/index.php?title=Utilizator:Tarunbod/common.js&action=raw&ctype=text/javascript' );

// Wiki-Labels [[File:User:EpochFail/WikiLabels.js]] (workaround for [[phab:T35355]])
//mw.loader.load('//meta.wikimedia.org/w/index.php?title=MediaWiki:Gadget-WikiLabels-loader.js&action=raw&ctype=text/javascript')
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Dr_pda/prosesize.js&action=raw&ctype=text/javascript');


//catALot///////////////////////////////////////
mw.loader.using(['jquery.ui', 'mediawiki.util'], function(){
	mw.loader.load('//commons.wikimedia.org/w/load.php?modules=ext.gadget.Cat-a-lot');
});
////////// Cat-A-Lot user preferences //////////
window.catALotPrefs = {"watchlist":"preferences","minor":true,"editpages":true,"docleanup":false,"subcatcount":10};
////////////////////////////////////catALotEnd//

//mw.loader.load('//ro.wikipedia.org/w/index.php?title=MediaWiki:Gadget-sidebar.js&action=raw&ctype=text/javascript' );
function userAlert() {
	var user = mw.user.getName();
	var link = document.getElementById('msg-' + user);
	if(link) link.style.display = 'inline';
}

$ (userAlert);
$( function () {
	var $ul = $( '#p-lang ul' );
	
	$ul.children().sort( function ( a, b ) {
		return a.classList[ 1 ].localeCompare( b.classList[ 1 ] );
	} ).appendTo( $ul );
} )