MediaWiki:Gadget-contributions.js: Difference between revisions

no edit summary
No edit summary
Tag: Manual revert
No edit summary
 
Line 1:
"use strict";
 
/**
* Adds a contribution link on User, User talk and Contributions as a PortletLink
Line 5 ⟶ 7:
 
if (mw.config.get('wgNamespaceNumber') === 2 || mw.config.get('wgNamespaceNumber') === 3) {
$(function () {
mw.util.addPortletLink('p-namespaces', mw.util.getUrl('Special:Contributions/' + mw.config.get('wgRelevantUserName')), 'Contributions', 'ca-nstab-contributions', 'Click to open the user\'s contributions');
mw.util.addPortletLink(
});
'p-namespaces',
mw.util.getUrl('Special:Contributions/' + mw.config.get('wgRelevantUserName')),
'Contributions',
'ca-nstab-contributions',
'Click to open the user\'s contributions'
);
});
}