User:Ratalada/common.js

/* */ $(function( $ ) {

/** * Adds a new button to the edit toolbar */ if ( mw.toolbar ) { mw.toolbar.addButton( {       imageFile: 'http://wiki.gamergate.me/images/5/58/Cite.png',        speedTip: 'Insert a citation',        tagOpen: ,        sampleText: ,        imageId: ''    } ); }

/** * Add "Purge" content action link. * * Dependencies: mediawiki.util * * @source www.mediawiki.org/wiki/Snippets/Purge_action * @revision 2015-02-10 */ if ( !$( '#ca-purge' ).length && mw.config.get( 'wgIsArticle' ) ) { mw.util.addPortletLink(       'p-cactions',        mw.util.getUrl( null, { action: 'purge' } ),        mw.config.get( 'skin' ) === 'vector' ? 'Purge' : '*',        'ca-purge',        'Purge the server cache of this page',        '*'    ); }

// Provides several useful functions for rollback (custom edit summary, mark as bot edits and mass revert) // by m:user:Hoo man  mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/smart_rollback.js&action=raw&ctype=text/javascript');

} ); /* */