User:Superwatery/wikia.js

/*I don't want to add a new topic, I wanted to edit the article talk page, so this one solves the problem*/ (function {   if (mw.config.get('wgNamespaceNumber') !== 1) return;    $('#ca-addsection').each(function { var copy_to = $('#ca-edit').attr('class', 'wds-button').clone(true); var copy_from = $(this).removeAttr('class').clone(true); $('#ca-edit').replaceWith(copy_from); $(this).replaceWith(copy_to); }); });