Revision as of 00:58, 4 July 2013 view sourceKrinkle (talk | contribs)Extended confirmed users, Pending changes reviewers, Rollbackers5,481 editsm Clean up← Previous edit |
Revision as of 09:13, 4 July 2013 view source TheDJ (talk | contribs)Extended confirmed users, Template editors46,211 edits only fix it, if your browser supports VE to begin withNext edit → |
Line 14: |
Line 14: |
|
mw.loader.using('ext.visualEditor.viewPageTarget.init', function () { |
|
mw.loader.using('ext.visualEditor.viewPageTarget.init', function () { |
|
// Kill the tab |
|
// Kill the tab |
|
var caEdit = $('#ca-edit a'); |
|
if( $('#ca-editsource').length > 0 ) { |
|
$('#ca-editsource a') |
|
var caEdit = $('#ca-edit a'); |
|
.text(caEdit.text()) |
|
$('#ca-editsource a') |
|
.attr('title', caEdit.attr('title')); |
|
.text(caEdit.text()) |
|
|
.attr('title', caEdit.attr('title')); |
|
$('#ca-edit').remove(); |
|
$('#ca-edit').remove(); |
|
$('#ca-editsource').attr('id', 'ca-edit'); |
|
$('#ca-editsource').attr('id', 'ca-edit'); |
|
|
|
|
|
// Kill the section edit links |
|
// Kill the section edit links |
|
$('.mw-editsection-link-secondary') |
|
$('.mw-editsection-link-secondary') |
|
.text( $('.mw-editsection-link-primary').eq(0).text() ) |
|
.text( $('.mw-editsection-link-primary').eq(0).text() ) |
|
.off('focus blur'); |
|
.off('focus blur'); |
|
$('.mw-editsection-divider, .mw-editsection-link-primary').remove(); |
|
$('.mw-editsection-divider, .mw-editsection-link-primary').remove(); |
|
$('.mw-editsection-bracket:not(:first-of-type):not(:last-of-type)').remove(); |
|
$('.mw-editsection-bracket:not(:first-of-type):not(:last-of-type)').remove(); |
|
$('.mw-editsection-bracket, .mw-editsection-link-secondary').css('visibility', ''); |
|
$('.mw-editsection-bracket, .mw-editsection-link-secondary').css('visibility', ''); |
|
$('h1, h2, h3, h4, h5, h6').off('mouseenter mouseleave'); |
|
$('h1, h2, h3, h4, h5, h6').off('mouseenter mouseleave'); |
|
|
} |
|
}); |
|
}); |
|
} |
|
} |