User:Ose/global.js

//

importScriptPage('PurgeButton/code.js', 'dev'); importScriptPage('SkinSwitchButton/code.js', 'dev'); importScriptPage('ShowAdsButton/code.js', 'dev'); importScriptPage('AjaxRC/code.js', 'dev'); importScriptPage('User:Grunny/contriblinks.js‎', 'janitor'); importScriptPage('User:Charitwo/rollbacktool.js', 'janitor'); importScriptPage('User:Grunny/delall.js‎', 'janitor'); importScriptPage('User:Grunny/automove.js', 'janitor'); importScriptPage('User:Grunny/mwf.js', 'janitor');

///////////////////////////////////////////////// $(function { 	$(' ').prependTo('body');		$('').appendTo('.nav#wikilinks');			$('Community').appendTo('.nav#wikilinks ul');			$('VSTF').appendTo('.nav#wikilinks ul');			$('dev').appendTo('.nav#wikilinks ul');			$('Spore</a></li>').appendTo('.nav#wikilinks ul');			$('<a id="rc-recipes" href="http://recipes.wikia.com/wiki/Special:Recentchanges">Recipes</a></li>').appendTo('.nav#wikilinks ul');			$('<a id="rc-software" href="http://software.wikia.com/wiki/Special:Recentchanges">Software</a></li>').appendTo('.nav#wikilinks ul'); $('<a id="rc-software-answers" href="http://software.answers.wikia.com/wiki/Special:Recentchanges">Software Answers</a></li>').appendTo('.nav#wikilinks ul'); $('<a id="rc-answers" href="http://answers.wikia.com/wiki/Special:Recentchanges">Answers</a></li>').appendTo('.nav#wikilinks ul'); $('<a id="rc-unanswers" href="http://unanswers.wikia.com/wiki/Special:Recentchanges">UnAnswers</a></li>').appendTo('.nav#wikilinks ul'); $('<a id="rc-svar" href="http://svar.wikia.com/wiki/Special:Recentchanges">Svar</a></li>').appendTo('.nav#wikilinks ul'); $('<a id="rc-wow" href="http://wow.wikia.com/wiki/Special:Recentchanges">WoW</a></li>').appendTo('.nav#wikilinks ul'); $('<a id="rc-ose" href="http://ose.wikia.com/wiki/Special:Recentchanges">Ose</a></li>').appendTo('.nav#wikilinks ul'); $('<a id="rc-m" href="http://no.m.wikia.com/wiki/Special:Recentchanges">m</a></li>').appendTo('.nav#wikilinks ul');

$(' ').prependTo('body'); $('</ul>').appendTo('.nav#sidebar'); $('<a id="sidebar-multilookup" href="http://community.wikia.com/wiki/Special:MultiLookup">MultiLookup</a></li>').appendTo('.nav#sidebar ul'); $('<a id="sidebar-lookupcontribs" href="http://community.wikia.com/wiki/Special:LookupContribs">LookupContribs</a></li>').appendTo('.nav#sidebar ul'); $('<a id="sidebar-spamregex" href="http://community.wikia.com/wiki/Special:SpamRegex">SpamRegex</a></li>').appendTo('.nav#sidebar ul'); $('<a id="sidebar-regexblock" href="http://community.wikia.com/wiki/Special:RegexBlock">RegexBlock</a></li>').appendTo('.nav#sidebar ul'); $('<a id="sidebar-problemreports" href="http://community.wikia.com/wiki/Special:ProblemReports">ProblemReports</a></li>').appendTo('.nav#sidebar ul'); $('<a id="sidebar-multidelete" href="http://community.wikia.com/wiki/Special:Multidelete">Multidelete</a></li>').appendTo('.nav#sidebar ul'); $('<li><a id="sidebar-multiwikifinder" href="http://community.wikia.com/wiki/Special:Multiwikifinder">Multiwikifinder</a></li>').appendTo('.nav#sidebar ul'); $('<li><a id="sidebar-spam-blacklist" href="http://community.wikia.com/wiki/MediaWiki:Spam_Blacklist">Spam Blacklist</a></li>').appendTo('.nav#sidebar ul'); $('<li><a id="sidebar-blacklist-title-list" href="http://community.wikia.com/wiki/MediaWiki:Blacklist_title_list">Blacklist title list</a></li>').appendTo('.nav#sidebar ul'); $('<li><a id="" href="#"></a></li>').appendTo('.nav#sidebar ul'); $('<li><a id="sidebar-global-js" href="http://community.wikia.com/wiki/User:Ose/global.js">global.js</a></li>').appendTo('.nav#sidebar ul'); $('<li><a id="sidebar-global-css" href="http://community.wikia.com/wiki/User:Ose/global.css">global.css</a></li>').appendTo('.nav#sidebar ul'); });

$(function {	$(window).scroll(function{ var scrollTop = $(window).scrollTop; if(scrollTop != 0) $('.nav').stop.animate({'opacity':'0.2'},400); else $('.nav').stop.animate({'opacity':'1'},400); });

$('.nav#wikilinks').hover(		function (e) {			var scrollTop = $(window).scrollTop;			if(scrollTop != 0){				$('.nav#wikilinks').stop.animate({'opacity':'1'},400);			}		},		function (e) {			var scrollTop = $(window).scrollTop;			if(scrollTop != 0){				$('.nav#wikilinks').stop.animate({'opacity':'0.2'},400);			}		}	);

$('.nav#sidebar').hover(		function (e) {			var scrollTop = $(window).scrollTop;			if(scrollTop != 0){				$('.nav#sidebar').stop.animate({'opacity':'1'},400);			}		},		function (e) {			var scrollTop = $(window).scrollTop;			if(scrollTop != 0){				$('.nav#sidebar').stop.animate({'opacity':'0.2'},400);			}		}	); });

///////////////////////////////////////////////// function ExtraTools { switch( skin ) { case 'answers': { $('<tr id="ExtraTools" style="border-top: 1px dotted black;"> ').appendTo('#toolbox_inside table'); }	case 'monaco': { $('<tr id="ExtraTools" style="border-top: 1px dotted black;"> ').appendTo('#link_box'); }		} $('<td id="ExtraTools_1"> ').appendTo('#ExtraTools'); $('<td id="ExtraTools_2"> ').appendTo('#ExtraTools'); $('<ul></ul>').appendTo('#ExtraTools_1'); $('<ul></ul>').appendTo('#ExtraTools_2'); $('<li><a href="/wiki/Special:ListUsers/sysop">sysops</a></li>').appendTo('#ExtraTools_1 ul'); $('<li><a href="/wiki/Special:Version">Version</a></li>').appendTo('#ExtraTools_1 ul'); $('<li><a href="/wiki/Special:PrefixIndex">PrefixIndex</a></li>').appendTo('#ExtraTools_1 ul'); $('<li><a href="/wiki/Special:RecentChanges">RC</a></li>').appendTo('#ExtraTools_1 ul'); $('<li>common.<a href="/wiki/MediaWiki:Common.css">css</a>/<a href="/wiki/MediaWiki:Common.js">js</a></li>').appendTo('#ExtraTools_2 ul'); $('<li>monaco.<a href="/wiki/MediaWiki:Monaco.css">css</a>/<a href="/wiki/MediaWiki:Monaco.js">js</a></li>').appendTo('#ExtraTools_2 ul'); $('<li>ose.<a href="/wiki/User:Ose/monaco.css">css</a>/<a href="/wiki/User:Ose/monaco.js">js</a></li>').appendTo('#ExtraTools_2 ul'); $('<li><a href="/wiki/Special:PrefixIndex/MediaWiki:Mon">mon...</a>').appendTo('#ExtraTools_2 ul'); } addOnloadHook(ExtraTools);

//////////////////////////////////////// importScriptPage('FastDelete/code.js', 'dev');

var fdButtons = []; fdButtons[fdButtons.length] = { 'summary': 'spam', 'label': 's'}; fdButtons[fdButtons.length] = { 'summary': 'vandalism', 'label': 'v'}; fdButtons[fdButtons.length] = { 'summary': 'housekeeping', 'label': 'h'}; fdButtons[fdButtons.length] = { 'summary': 'author request', 'label': 'ar'}; fdButtons[fdButtons.length] = { 'summary': ' ', 'label': 'nr'};

////////////////////////////////////////

/*** custom edit buttons*****/

if (mwCustomEditButtons) {

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/2/28/Button_wikilink.png?1", "speedTip": "Link", "tagOpen": "w:c:",    "tagClose": "", "sampleText": "wikiname"};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/3/3b/Button_template_alt.png?1", "speedTip": "template", "tagOpen": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/b/b4/Button_category03.png?1", "speedTip": "Category", "tagOpen": "[[Category:",    "tagClose": "]]", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/c/c8/Button_redirect.png?1", "speedTip": "Redirect", "tagOpen": "#REDIRECT ",    "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/c/c9/Button_strike.png?1", "speedTip": "Strike", "tagOpen": " ", "tagClose": " ", "sampleText": "Strike-through text"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/f/f6/Button_html_comment.png?1", "speedTip": "HTML comment", "tagOpen": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/2/23/Button_code.png?1", "speedTip": "code", "tagOpen": " ", "sampleText": "Insert code here"};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/7/73/Button_code_nowiki.png?1", "speedTip": "code+nowiki", "tagOpen": " ", "sampleText": "Insert code here"};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/9/9f/Button_defaultsort.png?1", "speedTip": "defaultsort", "tagOpen": "", "sampleText": "Insert key here"};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/3/33/Button_onlyinclude.png", "speedTip": "onlyinclude", "tagOpen": "<" + "onlyinclude" + ">", "tagClose": "</" + "onlyinclude" + ">", "sampleText": "Insert key here"};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/d/d1/Button_pipehack.png?1", "speedTip": "|", "tagOpen": "|", "tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/2/29/Button_user.png?1", "speedTip": "My global userpage", "tagOpen": "", "tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/2/29/Button_user.png?1", "speedTip": "My global usertalk header", "tagOpen": "", "tagClose": "", "sampleText": ""};

}

CreatePage.redLinkClick = function { };

//