MediaWiki:SeeMoreActivityButton/code.js

/** * Name:       SeeMoreActivityButton * Author:     KockaAdmiralac <1405223@gmail.com> * Description: Adds a "See More" to Wiki Activity module * TODO:       I18N */ (function {   if(!$('#WikiaRail').exists && !window.SeeMoreActivityButtonLoaded) {        return;    }	window.SeeMoreActivityButtonLoaded = true;    var interval = setInterval(function { if($('#wikia-recent-activity').exists) { clearInterval(interval); $('', {               href: '/wiki/Special:WikiActivity',                'class': 'wds-is-secondary wds-button wds-is-squished',                id: 'seemoreactivity-button'            }) .text('See More') .appendTo('#wikia-recent-activity .edit-info:last'); mw.util.addCSS(               '#seemoreactivity-button {' +                    'padding: 2px 10px;' +                    'float: right;' +                '}'            ); }   }, 100); });