User:Alan/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)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
// Borrado rápido: Mantenimiento necesario GS
// mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Alan/BorradoRapido.js&action=raw&ctype=text/javascript');
// [[File:Krinkle_RTRC.js]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Krinkle/RTRC.js&action=raw&ctype=text/javascript');
// Reversión
//mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Alan/reversion.js&action=raw&ctype=text/javascript');
// [[File:Krinkle_CVNSimpleOverlay_wiki.js]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Krinkle/Scripts/CVNSimpleOverlay_wiki.js&action=raw&ctype=text/javascript');
// [[File:Hoo man/useful_links.js]]
//mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/useful_links.js&action=raw&ctype=text/javascript');
//(Last editors under a page title) (Modificado del de uk.wikipedia)
mw.loader.load('//es.wikivoyage.org/w/index.php?title=MediaWiki:Gadget-editHysteria.js&action=raw&ctype=text/javascript');
//поідеї підсвітка локальних зображень (local images highlight (green border))
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Base/highlightLocalImgs.js&action=raw&ctype=text/javascript');
//quick edit counter
mw.loader.load('//es.wikivoyage.org/w/index.php?title=MediaWiki:Gadget-quickeditcounter.js&action=raw&ctype=text/javascript');
// XWikiRollback
//mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Erwin/xwikirollback.js&action=raw&ctype=text/javascript');
// [[File:Hoo man/active_sysops.js]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/active_sysops.js&action=raw&ctype=text/javascript');
if(typeof(activeSysopsConfig) == 'undefined') activeSysopsConfig = {};
activeSysopsConfig.markWikisGS = true;
activeSysopsConfig.markWikisActiveSysops = true;
activeSysopsConfig.markWikisActiveSysopsLessThan = 2;
/**
* Mostrar menu a la izq (Forces left-to-right layout and editing on RTL wikis).
* @see https://meta.wikimedia.org/wiki/Force_ltr
* @update-token [[File:pathoschild/forceltr.js]]
*/
mw.loader.load('//tools-static.wmflabs.org/meta/scripts/pathoschild.forceltr.js');
// mass rollback
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Writ Keeper/Scripts/massRollback.js&action=raw&ctype=text/javascript');
// GS delete reasons
//mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Alan/GS_Delete.js&action=raw&ctype=text/javascript');
// Clean Delete Reasons
//mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:PiRSquared17/cleandelete.js&action=raw&ctype=text/javascript');
// Disable the MediaViewer crap globally and VisualEditor.
mw.config.set("wgMediaViewerOnClick", false);
mw.hook('BeforePageDisplay').remove('ext.visualEditor.viewPageTarget.init');
mw.user.options.set('visualeditor-enable',0);
// Remove spam
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Mike.lifeguard/removeSpam.js&action=raw&ctype=text/javascript');
// [[File:Hoo man/tagger.js]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/tagger.js&action=raw&ctype=text/javascript');
// Arreglo fallo con texto bloqueos en el CentralAuth
// mw.loader.load('//www.mediawiki.org/w/index.php?title=User:PerfektesChaos/js/fixCentralAuthLocalLinks.js&action=raw&bcache=1&ctype=text/javascript');
var otherSpeedy = {
'enwikisource': 'sdelete',
'mlwiki': 'SD',
'commonswiki': 'speedy delete',
'mediawikiwiki': 'speedydelete',
};
var speedyTemplate = "delete";
if (mw.config.get('wgDBname') in otherSpeedy) {
speedyTemplate = otherSpeedy[mw.config.get('wgDBname')];
}
// <nowiki>
if(typeof(taggerConfig) == 'undefined') taggerConfig = {};
taggerConfig.tags = {};
taggerConfig.editSummary = {};
taggerConfig.tags[1] = '{{' + speedyTemplate + '|test}}';
taggerConfig.editSummary[taggerConfig.tags[1]] = '+ delete (test)';
taggerConfig.tags[2] = '{{' + speedyTemplate + '|Out of project scope}}';
taggerConfig.editSummary[taggerConfig.tags[2]] = '+ delete (Out of project scope)';
taggerConfig.tags[3] = '{{' + speedyTemplate + '|Requested or blanked by the author}}';
taggerConfig.editSummary[taggerConfig.tags[3]] = '+ delete (Requested or blanked by the author)';
taggerConfig.tags[4] = '{{' + speedyTemplate + '|Promotional content (Spam)}}';
taggerConfig.editSummary[taggerConfig.tags[4]] = '+ delete (Spam)';
taggerConfig.tags[5] = '{{' + speedyTemplate + '|No meaningful content}}';
taggerConfig.editSummary[taggerConfig.tags[5]] = '+ delete (No meaningful content)';
taggerConfig.tags[6] = '{{' + speedyTemplate + '|Vandalism}}';
taggerConfig.editSummary[taggerConfig.tags[6]] = '+ delete (Vandalism)';
taggerConfig.tags[7] = '{{' + speedyTemplate + '|Nonsense}}';
taggerConfig.editSummary[taggerConfig.tags[7]] = '+ delete (nonsense)';
taggerConfig.tags[8] = '{{' + speedyTemplate + '|Empty}}';
taggerConfig.editSummary[taggerConfig.tags[8]] = '+ delete (Empty)';
taggerConfig.tags[9] = '{{' + speedyTemplate + '|Spambot or cross-wiki spam}}';
taggerConfig.editSummary[taggerConfig.tags[9]] = '+ delete (spambot)';
// </nowiki>
// Cambiar el idioma a español
mw.loader.using("mediawiki.user", function() {
if ( mw.user.options.get('language') !== 'es' ) {
( new mw.Api() ).postWithToken( 'options', {
action: "options",
change: "language=es"
} ).done( function() {
mw.loader.using([], function(){
mw.notify( "Language has been changed to Spanish. Please refresh the page." );
} );
} );
} else {
console.log('Language already set to Spanish!');
}
} );
// Añadir link a las solicitudes de renombrado de cuentas
if ((mw.config.get('wgCanonicalSpecialPageName') === "GlobalRenameQueue") && document.getElementById('mw-renamequeue-reason')) document.getElementById('mw-renamequeue-reason').value = 'Per [[m:'+mw.config.get('wgPageName')+'|request]]';
// A tool very similar to the Nuke extension, but with more features
// by [[m:user:Hoo man]] <http://meta.wikimedia.org/wiki/User:Hoo_man/Scripts/SledgeHammer>
//mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/sledgeHammer.js&action=raw&ctype=text/javascript');