User:Marc Kupper/vector.js

This is an old revision of this page, as edited by Marc Kupper (talk | contribs) at 04:19, 20 August 2013 (customize VE). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
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('WT edit'); // changes tabs at top
        $('li#ca-ve-edit span a').html('VE edit'); 
        $('.mw-editsection:nth-child(2) a' ).html('WT edit'); // changes section links
        $('.mw-editsection-visualeditor').html('VE edit');
} );