User:Sannse/global.js

//

// ***************************************************************** // Load various external scripts // ***************************************************************** importScriptPage('User:Sannse/forumtools.js', 'community'); importScriptPage('User:Splarka/contribtools.js', 'community'); importScriptPage('FastDelete/code.js', 'dev');

if(skin == "monobook"){ importScriptURI('http://en.wikipedia.org/w/index.php?title=User:Zocky/SearchBox.js&action=raw&ctype=text/javascript&dontcountme=s'); importScriptPage('User:Sannse/Imagelisttools.js', 'community'); }

// ***************************************************************** // Custom automatic delete buttons // ***************************************************************** // Adds customizable one-click deletion buttons to any deletable page. // Requires w:User:Splarka/fastdelete.js in appendScript;

var fdButtons = []; fdButtons[fdButtons.length] = { 'summary': 'Inappropriate image', 'label': 'bad_image'}; fdButtons[fdButtons.length] = { 'summary': 'Spam', 'label': 'Spam'};

// end Custom automatic delete buttons

if(wgNamespaceNumber!=-1) addOnloadHook(function { addPortletLink('p-cactions','/wiki/Special:Prefixindex/' + escape(wgPageName),'Subpages','ca-subpages','Show subages of ' + wgPageName); });

// this bit is Joeyaa's - adds links to anons in comments

$('.details span[title]').each(function{

var t = $(this),

title = $(this).attr("title");

t.html('Unregistered user (IP: ' + title + ')');

});

//