Jump to content
Wikimedia Meta-Wiki

User:Barras/global.js: Difference between revisions

From Meta, a Wikimedia project coordination wiki
Content deleted Content added
Line 29: Line 29:
*************/
*************/
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript');
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript');

/*************
*** Quick blocking tabs
*************/
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:MarcoAurelio/xwikiblock.js&action=raw&ctype=text/javascript');


/**********
/**********
Line 67: Line 62:
*****************************/
*****************************/
switch(mw.config.get('wgDBname')) {
switch(mw.config.get('wgDBname')) {
/* en.wikipedia.org */
case 'enwiki':
importScript('User:Dr_pda/prosesize.js'); //[[User:Dr_pda/prosesize.js]]
break;

/* en.wiktionary.org */
case 'enwiktionary':
WarnVandalCustomItems.push( Array('test1', 1, 'Test edit', 'First Test') );
WarnVandalCustomItems.push( Array('test2', 1, 'Testing', 'Second Test') );
WarnVandalCustomItems.push( Array('test2a', 1, 'Removing content', 'Removing Content (2)') );
WarnVandalCustomItems.push( Array('test3', 1, 'Testing', 'Third Test') );
WarnVandalCustomItems.push( Array('test3a', 1, 'Removing content', 'Removing Content (3)') );
WarnVandalCustomItems.push( Array('test4', 1, 'Test edit - Last warning', 'Last Warning') );
WarnVandalCustomItems.push( Array('test4im', 1, 'Only Warning', 'Only Warning') );
break;


/* meta.wikimedia.org */
/* meta.wikimedia.org */
Line 108: Line 88:
break;
break;


/* simple.wikipedia.org */
case 'simplewiki':
var disable_activeSysops = true;
/******************************************************
WarnVandalCustomItems.push( Array('uw-test1', 1, 'Test edit', 'Testedit1') );
WarnVandalCustomItems.push( Array('uw-test2', 1, 'Testing', 'Testedit2') );
WarnVandalCustomItems.push( Array('uw-test3', 1, 'Testing', 'Testedit3') );
WarnVandalCustomItems.push( Array('uw-test4', 1, 'Test edit - Last warning', 'Testedit4') );
WarnVandalCustomItems.push( Array('uw-test4im', 1, 'Only Warning', 'Testedit4im') );
WarnVandalCustomItems.push( Array('uw-vandalism1', 1, 'Vandalism', 'Vandalism1') );
WarnVandalCustomItems.push( Array('uw-vandalism2', 1, 'Vandalism', 'Vandalism2') );
WarnVandalCustomItems.push( Array('uw-vandalism3', 1, 'Vandalism', 'Vandalism3') );
WarnVandalCustomItems.push( Array('uw-vandalism4', 1, 'Vandalism', 'Vandalism4') );
WarnVandalCustomItems.push( Array('uw-vandalism4im', 1, 'Vandalism', 'Vandalism4im') );
WarnVandalCustomItems.push( Array('uw-create1', 1, 'Article creation notice', 'create1') );
WarnVandalCustomItems.push( Array('uw-create2', 1, 'Article creation notice', 'create2') );
WarnVandalCustomItems.push( Array('uw-create3', 1, 'Article creation notice', 'create3') );
WarnVandalCustomItems.push( Array('uw-create4', 1, 'Article creation notice', 'create4') );
WarnVandalCustomItems.push( Array('uw-delete1', 1, 'Removing of contents', 'remove1') );
WarnVandalCustomItems.push( Array('uw-delete2', 1, 'Removing of contents', 'remove2') );
WarnVandalCustomItems.push( Array('uw-delete3', 1, 'Removing of contents', 'remove3') );
WarnVandalCustomItems.push( Array('uw-mos1', 1, '[[WP:MOS|MOS]]', 'mos1') );
WarnVandalCustomItems.push( Array('uw-mos2', 1, 'Removing of contents', 'mos2') );
WarnVandalCustomItems.push( Array('uw-mos3', 1, 'Removing of contents', 'mos3') );
WarnVandalCustomItems.push( Array('uw-npov1', 1, 'No neutral point of view', 'NPOV1') );
WarnVandalCustomItems.push( Array('uw-npov2', 1, 'No neutral point of view', 'NPOV2') );
WarnVandalCustomItems.push( Array('uw-npov3', 1, 'No neutral point of view', 'NPOV3') );
WarnVandalCustomItems.push( Array('uw-npov4', 1, 'No neutral point of view', 'NPOV4') );
WarnVandalCustomItems.push( Array('uw-npov4im', 1, 'No neutral point of view', 'NPOV4im') );
WarnVandalCustomItems.push( Array('uw-copyright1', 1, 'Copyright violation', 'copyvio1') );
WarnVandalCustomItems.push( Array('uw-copyright2', 1, 'Copyright violation', 'copyvio2') );
WarnVandalCustomItems.push( Array('uw-spam1', 1, 'Spamlinks', 'spam1') );
WarnVandalCustomItems.push( Array('uw-advert1', 1, 'Advertisement', 'adds1') );
WarnVandalCustomItems.push( Array('uw-advert2', 1, 'Advertisement', 'adds2') );
WarnVandalCustomItems.push( Array('uw-npa1', 1, 'No personal attacks', 'NPA1') );
WarnVandalCustomItems.push( Array('uw-npa2', 1, 'No personal attacks', 'NPA2') );
WarnVandalCustomItems.push( Array('uw-npa3', 1, 'No personal attacks', 'NPA3') );
WarnVandalCustomItems.push( Array('uw-npa4', 1, 'No personal attacks', 'NPA4') );
WarnVandalCustomItems.push( Array('uw-npa4im', 1, 'No personal attacks', 'NPA4im') );
WarnVandalCustomItems.push( Array('uw-attack', 1, 'Attacks', 'attack') );
WarnVandalCustomItems.push( Array('uw-disruption', 1, 'Disruptive edits', 'disruption') );
WarnVandalCustomItems.push( Array('uw-qd', 1, 'Removing QD tags', 'Remove QD') );
WarnVandalCustomItems.push( Array('uw-userpage', 1, 'User/talk page against policy', 'UP/UTP') );
WarnVandalCustomItems.push( Array('Cyberbully warning', 1, 'Cyberbully warning', 'cyberbullying') );
WarnVandalCustomItems.push( Array('uw-badcat', 1, 'Adding bad cats', 'badcat') );
WarnVandalCustomItems.push( Array('uw-bite', 1, 'Biting newcomers', 'Bite') );
WarnVandalCustomItems.push( Array('uw-encopypaste', 1, 'Copying and pasting', 'en c&p') );
WarnVandalCustomItems.push( Array('uw-selfrevert', 1, 'Selfrevert', 'Selfrevert') );
WarnVandalCustomItems.push( Array('uw-simple', 1, 'Not simple language', 'Not Simple') );
WarnVandalCustomItems.push( Array('uw-spellcheck', 1, 'Bad spelling', 'Spelling') );
WarnVandalCustomItems.push( Array('uw-tilde', 1, 'Not signing posts', 'Not Signing') );
WarnVandalCustomItems.push( Array('uw-upload', 1, 'Uploading images is not allowed', 'Uploads') );
WarnVandalCustomItems.push( Array('uw-articlesign', 1, 'Please do not sign articles', 'articlesing') );
WarnVandalCustomItems.push( Array('Uw-block1', 2, 'Blocked', 'Blocked 1 (IP)') );
WarnVandalCustomItems.push( Array('Uw-block2', 2, 'Blocked', 'Blocked 2 (User)') );
WarnVandalCustomItems.push( Array('Uw-block3', 2, 'Blocked Indef', 'Indef Blocked') );
WarnVandalCustomItems.push( Array('UsernameBlocked', 2, 'UsernameBlocked', 'Username blocked') );
WarnVandalCustomItems.push( Array('UsernameHardBlocked', 2, 'Hard blocked', 'Username hard blocked') );
WarnVandalCustomItems.push( Array('Checkuserblock', 2, 'Checkuserblock', 'Checkuserblock IP') );
WarnVandalCustomItems.push( Array('Checkuserblock-account', 2, 'Checkuserblock-account', 'Checkuserblock-account') );
WarnVandalCustomItems.push( Array('openproxy', 2, 'open proxy', 'open proxy') );
WarnVandalCustomItems.push( Array('Welcome', 0, 'Welcome to Wikipedia', 'Welcome 1') );
WarnVandalCustomItems.push( Array('WelcomeG', 0, 'Welcome to Wikipedia', 'Welcome 2') );
WarnVandalCustomItems.push( Array('Welcome-iw', 0, 'Welcome to Wikipedia', 'Welcome iw') );
WarnVandalCustomItems.push( Array('Welcome-en', 0, 'Welcome to Wikipedia', 'Welcome en') );
WarnVandalCustomItems.push( Array('Anon', 0, 'Welcome to Wikipedia', 'IP Welcome') );
******************************************/
importScript('User:Barras/prosesize.js'); //[[User:Barras/prosesize.js]]
importScript('User:Barras/prosesize.js'); //[[User:Barras/prosesize.js]]
importScript('User:Grunny/ajaxquickrfdclose.js'); //[[User:Grunny/ajaxquickrfdclose.js]]
importScript('User:Grunny/ajaxquickrfdclose.js'); //[[User:Grunny/ajaxquickrfdclose.js]]

Latest revision as of 15:26, 24 October 2022

 /*****************************
 *** On all wikis
 *****************************/
 mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Mike.lifeguard/removeSpam.js&action=raw&ctype=text/javascript');

 /**
  * Ajax sysop
  * @see https://meta.wikimedia.org/wiki/Ajax_sysop
  * @update-token [[File:pathoschild/ajaxsysop.js]]
  */
 mw.loader.load('//tools-static.wmflabs.org/meta/scripts/pathoschild.ajaxsysop.js');

 /**
  * 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');

 /************
 *** XWikiRollback
 *** by [[m:User:Erwin]]
 *************/
 mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Erwin/xwikirollback.js&action=raw&ctype=text/javascript');

 /************
 *** [[User:Lupin/popups.js]]
 *** by [[en:User:Lupin]]
 *************/
 //mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript');

 /**********
 *** StewardLinks
 *** by [[m:User:Erwin]]
 **********/
 mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Erwin/stewardlinks.js&action=raw&ctype=text/javascript');


 mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:MarcoAurelio/bpi.js&action=raw&ctype=text/javascript');

 /*************
 *** Page tagger
 *** by m:User:Hoo_man
 ***************/
 mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/tagger.js&action=raw&ctype=text/javascript');

 /*************
 *** Active sysops
 *** by m:User:Hoo_man ([[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');

 /**************
 *** Smart rollback
 *** by m:User:Hoo_man ([[File:Hoo man/smart_rollback.js]])
 ***************/
 mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/smart_rollback.js&action=raw&ctype=text/javascript');


 /*****************************
 *** On specific wikis
 *****************************/
 switch(mw.config.get('wgDBname')){

 /* meta.wikimedia.org */
 case'metawiki':
 vardisable_activeSysops=true;
 $('#pt-betafeatures').hide();

 /**
 		 * StewardScript extends the user interface for Wikimedia stewards' convenience.
 		 * @see https://meta.wikimedia.org/wiki/StewardScript
 		 * @update-token [[File:pathoschild/stewardscript.js]]
 		 */
 mw.loader.load('//tools-static.wmflabs.org/meta/scripts/pathoschild.stewardscript.js');

 /**
 		* Fixes bug T47412; Links in block reason on [[Special:CentralAuth]] link to the local wiki
 		* Thanks to the volunteer for that script!
 		**/
 mw.loader.load('//www.mediawiki.org/w/index.php?title=User:PerfektesChaos/js/fixCentralAuthLocalLinks.js&action=raw&bcache=1&ctype=text/javascript');

 /**
 		* To not forget a reason when doing a global rename
 		* Thanks to User:DerHexer for the script
 		**/
 if((mw.config.get('wgCanonicalSpecialPageName')==="GlobalRenameQueue")&&document.getElementById('mw-renamequeue-reason'))document.getElementById('mw-renamequeue-reason').value='see [[m:'+mw.config.get('wgPageName')+']]';
 break;

 importScript('User:Barras/prosesize.js');//[[User:Barras/prosesize.js]]
 importScript('User:Grunny/ajaxquickrfdclose.js');//[[User:Grunny/ajaxquickrfdclose.js]]
 break;
 }

AltStyle によって変換されたページ (->オリジナル) /