User:Mainframe98/common.js

/** */ ( function ( mw, $ ) {
 * Adds a Sandbox button, originally from https://www.wikidata.org/wiki/MediaWiki:Gadget-mySandbox.js, but that version used a localized subpagename.
 * Tweaked to remove redundancy
 * Removed a lot of code due to issues.

$( document ).ready( function {        mw.util.addPortletLink( 'p-personal', 'https://www.mediawiki.org/wiki/User:Mainframe98/Sandbox', //url 'Zandbak', //Name displayed 'pt-mysandbox', 'Ga naar de zandbak', //Tooltip 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'; //