User:User-100152098/common.js

$(function { mw.loader.localLoad = function(url) { return mw.loader.load('/index.php?title='+url+'.js&action=raw&ctype=text/javascript') };  mw.loader.interLoad = function(url, wiki) { return mw.loader.load('//'+wiki+'.gamepedia.com/index.php?title='+url+'.js&action=raw&ctype=text/javascript') };

/* Custom CSS */

/* Custom JS */ //if(mw.config.get('wgTitle') === mw.config.get('wgUserName') && mw.config.get('wgNamespaceNumber') === 2) mw.loader.localLoad('User:ITechieGamer/test'); //mw.loader.localLoad('User:ITechieGamer/welcome'); }); mw.loader.localLoad = function (url) { return mw.loader.load('http://www.minecraftwiki.net/index.php?title=' + url + '&action=raw&ctype=text/javascript'); };

/* Counts all your edits and saves them to a page ( http://en.wikipedia.org/wiki/User:Kanegasi/editcounter ) */ if (mw.config.get('wgTitle') === mw.config.get('wgUserName') && mw.config.get('wgNamespaceNumber') === 2) { var tableCaption = 'Philip57sundfors\'s edits'; var subPages = 'true'; var topRowAttrib = 'style="background-color: blue"'; var bottomRowAttrib = 'style="font-family: Times New Roman"'; mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Kanegasi/editcounter.js&action=raw&ctype=text/javascript'); }

/* Replaces IPs with their known owner, publicly acknowledged by that user */ $('.mw-userlink[title$="82.69.54.207"]').attr({ title: 'User:Simons Mith (IP)' }).text('Simons Mith');

/* Wikipedia's HotCat gadget ( http://en.wikipedia.org/wiki/Wikipedia:HotCat ) */ if (mw.config.get('wgNamespaceNumber') >= 0) { mw.loader.localLoad('User:Kanegasi/HotCat.js'); }

// User:Majr/docTabs.js if (    $.inArray( mw.config.get( 'wgNamespaceNumber' ), [ 10, 11, 828, 829 ] ) > -1 ||    $.inArray( mw.config.get( 'wgNamespaceNumber' ), [ 2, 3 ] ) > -1 &&    mw.config.get( 'wgTitle' ).replace( /\/doc$/, '' ).search( /\.(js|css)$/ ) > -1 ) { importScript( 'User:Majr/docTabs.js' ); }

// User:Majr/editableRollback.js importScript( 'User:Majr/editableRollback.js' );

// User:Majr/refTooltip.js importScript( 'User:Majr/refTooltip.js' );

// User:Majr/inputCounter.js importScript( 'User:Majr/inputCounter.js' );

// Add purge tab $( '#p-views' ).find( 'ul' ).append(	$( '' ).attr( 'id', 'ca-purge' ).addClass( 'collapsible' ).append( $( ' ' ).append(		$( '' ).attr( 'href', mw.util.getUrl( null, { action: 'purge' } ) ).text( 'Purge' )	) ) );