MediaWiki:ContribsLink/code.js

/*
 * Adds a link to your contributions on the user drop-down menu on the top right
 * @author Ozank Cx

mw.loader.using(['mediawiki.api','mediawiki.util'], function {	if ($('a[data-id="contributions"]').length || !$('.wds-global-navigation__content-bar').length) return;	var i18n = {		en: "My Contributions",		ko: "기여 목록"	};	i18n = i18n[mw.config.get("wgUserLanguage")] || i18n[mw.config.get("wgContentLanguage")] || i18n.en;	$('.wds-global-navigation__user-menu div:nth-child(2) ul li:nth-child(2)').after('' + i18n + ''); });