User:Ferretwings/common.js

window.hotcat_translations_from_commons = true;

/* This imports the latest version of HotCat from Commons. HotCat is a gadget to make changes to categories much easier. Full documentation can be found at http://commons.wikimedia.org/wiki/Help:Gadget-HotCat mw.loader.load( '//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript' );

// How to import scripts: //Edit summary presets //importScript('User:Equazcion/summaryPresets.js'); //var customsum1 = "-- Bugs don't generally go on the wiki anymore. See bug rules"; //var customsum2 = "-- see trivia rules"; //var customsum3 = "ce";

//Display hidden block option setTimeout(function{  $('.mw-htmlform-field-HTMLCheckField:has(input#mw-input-wpAutoBlock)').show; }, 500);

// In recent changes: var $pages = $('.mw-changeslist .special li'); $pages.each(function(index,value){   var $this = $(this);

// Add "check" link to user links, which opens contribs, deleted contribs, and block log var $userBlock = $this.find('.mw-usertoollinks a:last'); $userBlock.after(' | check'); var $check = $this.find('.check'); var $user = $this.find('.mw-userlink:last').text; $check.css('cursor','pointer'); $check.click(function{       window.open('http://terraria.gamepedia.com/Special:Contributions/' + $user);        window.open('http://terraria.gamepedia.com/Special:DeletedContributions/' + $user);        window.open('http://terraria.gamepedia.com/index.php?title=Special:Log/block&page=User%3A' + $user);    }); // Add delete links to new pages if ($this.find('.newpage').length > 0) { var $title = $this.find('.mw-title'); $title.after(' (delete)'); } });

// Always choose Vandalism as default delete reason $('#wpDeleteReasonList').val('Vandalism');