User:JJMC89/common.js

/*** Local scripts ***/

importScript( 'MediaWiki:Gadget-SysopTools.js' );

importScript( 'User:JJMC89/autolink.js' );

importScript( 'User:JJMC89/AjaxPatrolLinks.js' );

importScript( 'User:JJMC89/ajaxRollback.js' );

/*** 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

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