User:JJMC89/common.js

/*** Local scripts ***/

mw.loader.load( '/index.php?title=MediaWiki:Gadget-SysopTools.js&action=raw&ctype=text/javascript' );

mw.loader.load( '/index.php?title=User:JJMC89/autolink.js&action=raw&ctype=text/javascript' );

mw.loader.load( '/index.php?title=User:JJMC89/AjaxPatrolLinks.js&action=raw&ctype=text/javascript' );

mw.loader.load( '/index.php?title=User:JJMC89/ajaxRollback.js&action=raw&ctype=text/javascript' );

/*** External scripts ***/ //mw.loader.load( 'https://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js&action=raw&ctype=text/javascript' ); //en:w:User:Cacycle/wikEd //mw.loader.load( 'https://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEdDiff.js&action=raw&ctype=text/javascript' ); //en:w:User:Cacycle/wikEdDiff

//autoEdClick = false; //disables the diff page from opening automatically (required for wikEd compatability) //mw.loader.load( 'https://en.wikipedia.org/w/index.php?title=Wikipedia:AutoEd/complete.js&action=raw&ctype=text/javascript' ); //en:w:Wikipedia:AutoEd

mw.loader.load( 'https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-markblocked.js&action=raw&ctype=text/javascript' ); //en:w:MediaWiki:Gadget-markblocked.js

mw.loader.load( 'https://en.wikipedia.org/w/index.php?title=User:Ais523/votesymbols.js&action=raw&ctype=text/javascript' ); //en:w:User:Ais523/votesymbols.js

/* * Add custom delete reasons * Author: Krinkle * File:Krinkle_addDeleteReasons.js * http://meta.wikimedia.org/wiki/User:Krinkle/Scripts/addDeleteReasons * http://meta.wikimedia.org/wiki/User:Krinkle/Scripts/addDeleteReasons.js */ $.getScript( 'https://meta.wikimedia.org/w/index.php?title=User:Krinkle/Scripts/addDeleteReasons.js&action=raw&ctype=text/javascript', function { krAddDeleteReasons.File( 'Image of an item that never existed' );  krAddDeleteReasons.File( 'Invalid file extension per File naming policy' );  krAddDeleteReasons.File( 'Name corrected per File naming policy' ); });

/** * Add User:/Links to p-personal */ mw.util.addPortletLink( 'p-personal',  mw.util.getUrl( 'User:' ) + mw.config.get( 'wgUserName' ) + '/Links',  'My links',  'pt-mylinks',  null,  null,  '#pt-preferences' );

/** * Make red links not open in edit mode */ $( function {   var $alinks = mw.util.$content.find( 'a.new' )    .each( function(i, aa) { aa.href = aa.href.replace(/\/edit\//,'/page/'); }); });