MediaWiki:Gadget-addsection-plus.js: Difference between revisions
Content deleted Content added
Mattflaschen (talk | contribs) okay, code was never actually broken; now integrate together |
Add support for Vector 2022 (https://www.mediawiki.org/wiki/Talk:Reading/Web/Desktop_Improvements#c-Nathanielcwm-2022-07-06T13:14:00.000Z-Replace_the_%22new_section%22_tab_text_with_%22+%22_gadget_not_working.) |
||
(8 intermediate revisions by 4 users not shown) | |||
Line 5:
// ** **
// **********************************************************************
var tab, tablink, skin;
tab = document.getElementById('ca-addsection'); if ( !tab ) {
return; }▼
var tablink = tab.getElementsByTagName('a')[0];▼
if(!tablink) return;▼
skin = mw.config.get( 'skin' );
▲
return;
}
tablink.firstChild.nodeValue = '+';
if ( skin === 'monobook' ) {
tablink.style.paddingLeft = ".4em";▼
tablink.style.
}
});
|