MediaWiki:RestoreContributeButton/code.js

//RestoreContributeButton //Created by HM100, minor fixes were made by JustLeafy

$(function { $('.createpage').remove;   $('.wds-community-header__wiki-buttons a[data-tracking="admin-dashboard"]').remove;    $('.wds-community-header__wiki-buttons a[data-tracking="wiki-activity"]').remove; var config = mw.config.get([ 'wgPageName' ]);   $('.wds-community-header__wiki-buttons.wds-button-group').prepend( ' ' + ' '+ ' ' + ' Contribute  ' + '' + '' + 'Edit this page' + 'Add a Page</li>' + '<a href="/wiki/Special:Upload">Add an Image</a></li>' + '<a href="/wiki/Special:WikiActivity">Wiki Activity</a></li>' + '<a href="/wiki/Special:AdminDashboard" class="sysop-only">Admin Dashboard</a></li>' + '<a href="/wiki/MediaWiki:Wikia.css?action=edit" class="sysop-only">Edit wiki CSS</a></li>' + '<a href="/wiki/MediaWiki:Wiki-navigation?action=edit" class="sysop-only">Edit wiki navigation</a></li>' + '</ul> ');    if(wgUserGroups.indexOf('sysop') > -1 || wgUserGroups.indexOf('staff') > -1 || wgUserGroups.indexOf('helper') > -1) {        return 0;    } else {        $('a.sysop-only').remove;    } });