User:Mainframe98/common.js

* Add a "My sandbox" link to the personal portlet menu. * * Required modules: mediawiki.util, mediawiki.Title, mediawiki.Uri * * @source https://www.mediawiki.org/wiki/Snippets/MySandbox * @version 2014-07-16 */ ( function ( mw, $ ) {	$( function { var conf, title, url;

// Customize/Translate this to your needs conf = { subpageName: 'Sandbox', portletLabel: 'Zandbak', portletTooltip: 'Ga naar de zandbak' };		// Don't alter the code below

// Use Special:MyPage (as opposed to mw.user.getName) so that it // works for logged-out users as well. title = new mw.Title( 'Special:MyPage/' + conf.subpageName );

url = new mw.Uri( title.getUrl ); url.extend( {			action: 'edit',			redlink: 1		} );

mw.util.addPortletLink(			'p-personal',			url,			conf.portletLabel,			'pt-sandbox',			conf.portletTooltip,			null,			'#pt-preferences'		); } ); }( mediaWiki, jQuery ) ); /* //Importing User:Hoo man/tagger.js from Meta per advice of User:Syum90 mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/tagger.js&action=raw&ctype=text/javascript'); // if(typeof window.taggerConfig === 'undefined') window.taggerConfig = {}; taggerConfig.tags = []; taggerConfig.editSummary = []; taggerConfig.tags[1] = ''; taggerConfig.editSummary[taggerConfig.tags[1]] = 'Marked for speedy deletion because: Out of project scope'; taggerConfig.tags[2] = ''; taggerConfig.editSummary[taggerConfig.tags[2]] = 'Marked for speedy deletion because: Spam'; taggerConfig.tags[3] = ''; taggerConfig.editSummary[taggerConfig.tags[3]] = 'Marked for speedy deletion because: Vandalism'; taggerConfig.tags[4] = ''; taggerConfig.editSummary[taggerConfig.tags[4]] = 'Marked for speedy deletion because: Blanked by the author'; taggerConfig.tags[5] = ''; taggerConfig.editSummary[taggerConfig.tags[5]] = 'Marked for speedy deletion because: Test page'; taggerConfig.tags[6] = ''; taggerConfig.editSummary[taggerConfig.tags[6]] = 'Marked for speedy deletion because: Not Wikipedia'; //