User:Marc Kupper/vector.js

// 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

} );