User:Sebolto/wikia.js

// Replaces "Comments" button with "Talk Page" button (function ($, mw) {   var config = mw.config.get([ "wgArticlePath", "wgPageName", "wgNamespaceNumber" ]);

if ($("a[href='#WikiaArticleComments']").exists && config.wgNamespaceNumber === 0) { $("a[href='#WikiaArticleComments']").attr({           id: "talkButton",            href: config.wgArticlePath.replace("$1", "Talk:" + config.wgPageName)        }).text("Talk Page"); } })(jQuery, mediaWiki);