User:Mainframe98/global.js
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
// Backlink: [[User:Guywan/Scripts/ConfirmLogout.js]]
mw.loader.getScript( "//en.wikipedia.org/w/index.php?title=User:Guywan/Scripts/ConfirmLogout.js&action=raw&ctype=text/javascript" );
$( function () {
if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Specialpages' ) {
$( '.mw-specialpages-notes ul' )
.append( '<li><span class="mw-specialpagecached">Pagina\'s waarvan de inhoud periodiek wordt ververst.</span></li>' );
}
if ( mw.config.get( 'wgPageContentModel' ) === 'text' && mw.config.get( 'wgAction' ) === 'view' ) {
$( '#mw-content-text' )
.css( {
'white-space': 'pre-wrap',
'font-family': 'monospace'
} );
}
if ( mw.config.get( 'wgIsProbablyEditable' ) ) {
mw.util.addPortletLink(
'p-tb',
mw.util.getUrl( 'Special:PrefixIndex/' + mw.config.get( 'wgPageName' ) + '/' ),
"Deelpagina's van deze pagina",
't-subpages'
);
}
if ( mw.config.get( 'wgRelevantUserName' ) ) {
mw.util.addPortletLink(
'p-tb',
mw.util.getUrl( 'Special:CentralAuth/' + mw.config.get( 'wgRelevantUserName' ) ),
"Globale accountgegevens",
't-centralauth'
);
}
if ( mw.config.get( 'wgNamespaceNumber' ) >= 0 ) {
mw.util.addPortletLink(
'p-cactions',
mw.util.getUrl( 'Special:Log', { page: mw.config.get( 'wgPageName' ) } ),
"Paginalogboek",
't-pagelog'
);
}
} );