User:Chimera-gui/global.js

importScriptPage('RelocateEditDiscussionButtons/code.js', 'dev'); // Fix position of the editor buttons // Modified from w:c:dev:RelocateEditDiscussionButtons // (Modifications needed for custom Edit Talkpage button below) if(c.wgNamespaceNumber !== 3 && $('nav.wikia-menu-button:nth-child(2)').length) { // Clone the existing elements var editButton = $('nav.wikia-menu-button:nth-child(2)').clone(true,true), discussionButton = $('.comments').clone(true,true); // Remove the old buttons $('nav.wikia-menu-button:nth-child(2), .comments').remove; // Reposition the new buttons where they were before $('.header-column:nth-child(1) > h1:nth-child(1)').after(discussionButton).after(editButton); $('a.wikia-button:nth-child(3)').before('   '); // Remove induced line break after doing everything else $('#WikiaPageHeader > br:nth-child(2)').remove;