User:Count of Howard/wikia.js

$(function {   var mwVariables = mw.config.get([ 'wgPageName', 'wgNamespaceNumber' ]);   var talkPageTab = mw.html.element('li', { 'data-id': 'talkpage', id: 'talkpage' });   var list = $('ul.tabs > li');    var content = $('.UserProfileMasthead .masthead-info h1').html;    content = mw.util.wikiUrlencode(content);    var talkPageTabLink = mw.html.element('a', { href: '/wiki/User:' + content + '/Talk', }, 'Talk page');   if (mwVariables.wgNamespaceNumber === 2 || mwVariables.wgNamespaceNumber === 1200) {        $( list[1] ).after(talkPageTab);        $(talkPageTabLink).appendTo('#talkpage');    } else {        return;    }    if (mwVariables.wgPageName.split('/')[1] ==='Talk') {        var backButton = mw.html.element('a', { href: '/wiki/Message_Wall:' + wgPageName.split('User:')[1].split('/')[0], class:'wikia-button' }, 'Back');       $(backButton).insertBefore($('a[data-id="comment"]'));    } });