Content added Content deleted
(remove unused portlets) |
No edit summary |
||
Line 3: | Line 3: | ||
// Use callback to ensure functions are loaded when we want them |
// Use callback to ensure functions are loaded when we want them |
||
if( mw.config.get('skin') === 'cosmos') { // Don't want to screw up other skins |
if( mw.config.get('skin') === 'cosmos') { // Don't want to screw up other skins |
||
/*mw.util.addPortletLink( |
|||
/* Any JavaScript here will be loaded for registered users only */ |
|||
'p-tb', |
|||
mw.util.getUrl('Special:MassEdit'), |
|||
window.fdButtons = [ |
|||
'MassEdit', |
|||
{ |
|||
't-massedit' |
|||
summary: "Housekeeping", |
|||
); |
|||
label: "Housekeeping", |
|||
mw.util.addPortletLink( |
|||
}, |
|||
'p-tb', |
|||
{ |
|||
mw.util.getUrl('Special:MassDelete'), |
|||
summary: "Vandalism", |
|||
'MassDelete', |
|||
label: "Vandalism", |
|||
't-massdelete' |
|||
}, |
|||
); |
|||
{ |
|||
mw.util.addPortletLink( |
|||
summary: "Spam", |
|||
'p-tb', |
|||
label: "Spam", |
|||
mw.util.getUrl('Special:MassProtect'), |
|||
}, |
|||
'MassProtect', |
|||
{ |
|||
't-massprotect' |
|||
summary: "Low quality article; not really needed like this. ", |
|||
);*/ |
|||
label: "Low Quality", |
|||
}, |
|||
{ |
|||
summary: "Copyright Violation", |
|||
label: "Copyright", |
|||
}, |
|||
{ |
|||
summary: "Marked for Deletion", |
|||
label: "Marked for Deletion", |
|||
}, |
|||
]; |
|||
mw.loader.load( '/w/index.php?title=MediaWiki:FastDelete.js&action=raw&ctype=text/javascript' ); |
|||
mw.loader.load( '/w/index.php?title=MediaWiki:PageRenameAuto-Update.js&action=raw&ctype=text/javascript' ); |
|||
mw.loader.load( '/w/index.php?title=MediaWiki:CategoryRenameAuto-Update.js&action=raw&ctype=text/javascript' ); |
|||
// mw.loader.load( '/w/index.php?title=MediaWiki:EditConflictAlert.js&action=raw&ctype=text/javascript' ); |
|||
mw.loader.load( '/w/index.php?title=MediaWiki:AjaxUndo.js&action=raw&ctype=text/javascript' ); |
|||
// mw.loader.load( '/w/index.php?title=MediaWiki:MisspelledPage.js&action=raw&ctype=text/javascript' ); |
|||
mw.util.addPortletLink( |
mw.util.addPortletLink( |
||
'p-tb', |
'p-tb', |
Revision as of 04:02, 11 June 2021
/* Any JavaScript here will be loaded for sysops only */
mw.loader.using( [ 'mediawiki.util', 'mediawiki.user' ] ).done( function () {
// Use callback to ensure functions are loaded when we want them
if( mw.config.get('skin') === 'cosmos') { // Don't want to screw up other skins
/* Any JavaScript here will be loaded for registered users only */
window.fdButtons = [
{
summary: "Housekeeping",
label: "Housekeeping",
},
{
summary: "Vandalism",
label: "Vandalism",
},
{
summary: "Spam",
label: "Spam",
},
{
summary: "Low quality article; not really needed like this. ",
label: "Low Quality",
},
{
summary: "Copyright Violation",
label: "Copyright",
},
{
summary: "Marked for Deletion",
label: "Marked for Deletion",
},
];
mw.loader.load( '/w/index.php?title=MediaWiki:FastDelete.js&action=raw&ctype=text/javascript' );
mw.loader.load( '/w/index.php?title=MediaWiki:PageRenameAuto-Update.js&action=raw&ctype=text/javascript' );
mw.loader.load( '/w/index.php?title=MediaWiki:CategoryRenameAuto-Update.js&action=raw&ctype=text/javascript' );
// mw.loader.load( '/w/index.php?title=MediaWiki:EditConflictAlert.js&action=raw&ctype=text/javascript' );
mw.loader.load( '/w/index.php?title=MediaWiki:AjaxUndo.js&action=raw&ctype=text/javascript' );
// mw.loader.load( '/w/index.php?title=MediaWiki:MisspelledPage.js&action=raw&ctype=text/javascript' );
mw.util.addPortletLink(
'p-tb',
mw.util.getUrl('Special:MultiUpload'),
'MultiUpload',
't-multiupload'
);
}
} );