MediaWiki:ChatErrorExplanation.js

/* ChatErrorExplanation * * Adds your banlog, block, or phalanx log excerpts into Special:Chat permissions error page * Doesn't work on silly wikis like VS Battles that have custom requirements for joining chat * * @author Dorumin */

(function {   if ( mw.config.get('wgCanonicalSpecialPageName') !== 'Chat' || !window.wgWikiaChatWindowFeatures || window.ChatErrorExplanationLoaded ) return;   window.ChatErrorExplanationLoaded = true;

$.get('/wiki/Special:MyContributions') .then(function(page) {           $(page)                .find('.mw-warning-with-logexcerpt')                .insertBefore('#mw-returnto');        }); });