User:Marc Kupper/vector.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// importScript('User:AzaToth/twinkle.js');
// importScript('User:Mr.Z-man/refToolbar.js');

//
// Customize the labels for edit and visual editor
//
//jQuery( document ).ready( function( $ ) {
//        $('li#ca-edit span a').html('Edit'); // changes tabs at top
//        $('li#ca-ve-edit span a').html('Visual editor'); 
//        $('.mw-editsection:nth-child(2) a' ).html('Edit'); // changes section links
//        $('.mw-editsection-visualeditor').html('Visual editor');
//} );

jQuery( document ).ready( function( $ ) {
        // Paste jQuery snippet here
 
        $('li#ca-edit a').html('Edit');             // change label for wikitext edit tab
        $('li#ca-ve-edit a').html('VisualEditor');  // change label for visualEditor edit tab
 
        $('.mw-editsection:nth-child(2) a' ).html('Edit');       // change label for wikitext section edits links
        $('.mw-editsection-visualeditor').html('VisualEditor');  // change label for visualEditor section edit links

// $('.mw-editsection-bracket').css('display','none');      // Don't display [ ] square brackets for section edits 
 
// $('.mw-editsection-divider').css('display','none');      // Don't display the | divider for section edits (commented out)
 
// $('h1#firstHeading .mw-editsection-visualeditor').css('display','none'); // Don't display the section 0 VE edit link which is broken

        $('h1#firstHeading .mw-editsection-divider').css('display','none');      // Don't display the divider for section zero
} );