User:Begoon/addUploadsLink.js

mw.loader.using('mediawiki.util', function {	jQuery(function( $ ) { var wServerName = mw.config.get('wgServer'); if (wServerName !== '//commons.wikimedia.org' && document.getElementById("t-contributions")) { var rUser = mw.config.get('wgRelevantUserName'); var followNode = document.getElementById("t-contributions").nextSibling; mw.util.addPortletLink(				'p-tb', 'https:' + wServerName + '/wiki/Special:ListFiles?limit=250&user=' + rUser.replace(/ /g, '+') + '&ilshowall=1',				'User file uploads', 't-userfileuploads', 'View list of files uploaded by ' + rUser,'', followNode			) }	}); });