MediaWiki:Vector.js
Заўвага: Пасля апублікавання, вам можа спатрэбіцца ачыстка кэшу браўзера, каб убачыць унесеныя змены.
- Firefox / Safari: націсніце Reload, утрымліваючы Shift, або націсніце Ctrl-F5 ці Ctrl-R (⌘-R на Макінтошах)
- Google Chrome: Націсніце Ctrl-Shift-R (⌘-Shift-R на Mac)
- Internet Explorer / Edge: націсніце Refresh, утрымліваючы Ctrl, або націсніце Ctrl-F5
- Opera: Увайдзіце Menu → Settings (Opera → Preferences на Mac), далей Privacy & security → Clear browsing data → Cached images and files.
$( '#searchform' ).on( 'keyup keydown mousedown', function (e) {
$( this ).attr( 'target', e.shiftKey ? '_blank' : '' );
} );
//"add section" at the bottom
if( mw.config.get('wgNamespaceNumber') > 0 && mw.config.get('wgAction') == 'view' ) {
$('#ca-addsection a').clone()
.css( {
'float': 'right',
'font-size': '0.8em',
'padding': '4px',
'background': '#f2f7fb',
'border': '1px outset #1ED8FC',
'border-top-style':'none'
} )
.insertAfter('#content');
}