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

$( document ).ready( function {        var conf = {            portletLabel: 'Zandbak',            portletTooltip: 'Ga naar de zandbak',        };        var title, url;        title = new mw.Title( 'Special:MyPage/Sandbox' );

url = new mw.Uri( title.getUrl );

mw.util.addPortletLink(           'p-personal',            url,            conf.portletLabel,            'pt-mysandbox',            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'; //