User:Iifar/common.js
Jump to navigation
Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
The accompanying .css page for this skin can be added at User:Iifar/common.css. |
//ensure mediawiki.util loaded
mw.loader.using( 'mediawiki.util', function () {
//call on page load
jQuery( function( $ ) {
//Alternative uploads link - show 500 - no old versions
//remove old link
var WlElemU = document.getElementById("pt-uploads");
if(WlElemU) {
WlElemU.parentNode.removeChild(WlElemU);
}
//add new link
var rUser = mw.config.get('wgUserName');
mw.util.addPortletLink('p-personal', '/wiki/Special:ListFiles?limit=250&user=' + rUser.replace(/ /g, '+'), 'Uploads', 'pt-uploads', 'List of files uploaded', null, '#pt-mycontris' );
/////////////////////
//close functions
}); //jQuery( function( $ ) {
}); //mw.loader.using( 'mediawiki.util', function () {