Thread:KockaAdmiralac/@comment-31984232-20181214195508/@comment-31984232-20190328173956

Shortened it to (function {    var action = mw.config.get('wgAction');    if (action!=='edit' && action!=='submit') {return;}    var highlight = true;    var $text0 = $('#wpTextbox0');    var $text1 = $('#wpTextbox1');    function click  {        if (highlight) {            $text0.hide;            $text1.removeClass('highlighted');            $(this).text('Add Syntax Highlight');            highlight = false;        } else {            $text0.show;            $text1.addClass('highlighted');            $(this).text('Remove Syntax Highlight');            highlight = true;        }    }    $('#WikiaBar .toolbar .tools').append( $('').append(           $('', {'text':'Remove Syntax Highlight', 'click':click})        ) ); }); Still syntactically correct, right?