User:Lady-Whistler/global.js

if (mwCustomEditButtons) {

/*** wrappers *****/

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/b/b4/Button_category03.png", "speedTip": "Kategorie", "tagOpen": "[[Kategorie:",       "tagClose": "]]", "sampleText": "" };   mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/4/47/Button_redir.png", "speedTip": "Weiterleitung", "tagOpen": "#REDIRECT ",       "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/a/ac/Button_redir_rtl.png", "speedTip": "Neue Zeile", "tagOpen": " ", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images2.wikia.nocookie.net/central/images/1/13/Button_delete.png", "speedTip": "Löschantrag stellen", "tagOpen": "{" + "{löschen|", "tagClose": "}}", "sampleText": "Grund" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images2.wikia.nocookie.net/central/images/6/60/Button_support.png", "speedTip": "Mit PRO stimmen", "tagOpen": "{" + "{PRO", "tagClose": "}}", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images2.wikia.nocookie.net/central/images/9/98/Button_oppose.png", "speedTip": "Mit CONTRA stimmen", "tagOpen": "{" + "{CONTRA", "tagClose": "}}", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images2.wikia.nocookie.net/central/images/1/12/Button_gallery.png", "speedTip": "Gallerie einfügen", "tagOpen": "", "sampleText": "Füge hier deine Bilder ein" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images4.wikia.nocookie.net/vereins/images/9/92/Anbeten.png", "speedTip": "Anbeten", "tagOpen": "http://images2.wikia.nocookie.net/__cb20090812184938/vereins/images/e/ee/Mx1.gif", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images2.wikia.nocookie.net/vereins/images/c/cf/Nagelfeile.png", "speedTip": "Nagelfeile", "tagOpen": "http://images3.wikia.nocookie.net/__cb20090812184602/vereins/images/0/01/Gi30.gif", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/vereins/images/8/8d/HarHarHar.png", "speedTip": "HarHar", "tagOpen": "http://images4.wikia.nocookie.net/__cb20090812185322/vereins/images/e/ee/Twinkle.gif", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images3.wikia.nocookie.net/vereins/images/6/6a/Verlegen.png", "speedTip": "Verlegen sein", "tagOpen": "http://images2.wikia.nocookie.net/__cb20090812184604/vereins/images/f/f6/Helga.gif", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images3.wikia.nocookie.net/vereins/images/5/51/Help_me.png", "speedTip": "Zu Hülf", "tagOpen": "http://images1.wikia.nocookie.net/__cb20090812184630/vereins/images/a/ad/Help.gif", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images4.wikia.nocookie.net/vereins/images/4/48/LOL.png", "speedTip": "LOL", "tagOpen": "http://images2.wikia.nocookie.net/__cb20090812184834/vereins/images/6/6d/Lol1.gif", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/vereins/images/4/4f/Fragezeichen.png", "speedTip": "???", "tagOpen": "http://upload.wikimedia.org/wikipedia/commons/e/e4/IrritierterSmiley.gif", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images2.wikia.nocookie.net/vereins/images/7/75/Zwinkern.png", "speedTip": "Zwinkern", "tagOpen": "http://images4.wikia.nocookie.net/__cb20091006204740/vereins/images/c/c3/Zwinker.png", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images4.wikia.nocookie.net/__cb20100519195130/vereins/images/8/83/Kopf.png", "speedTip": "Aua", "tagOpen": "http://images4.wikia.nocookie.net/__cb20100408194335/de/images/7/7e/Kopf_an_die_Wand.gif", "tagClose": "", "sampleText": "" };

}

/* add contribs to user menu - 2/1/11 */ $(function UserBeoMenuItem {	$('ul.AccountNavigation li:first-child ul.subnav li:first-child').after('Zentral-Account'); });

/* add contribs to user menu - 2/1/11 */ $(function UserContribsMenuItem {   $('ul.AccountNavigation li:first-child ul.subnav li:first-child').after('Eigene Beiträge'); });

/* add contribs to user menu - 2/1/11 */ $(function UserPurgeMenuItem {   $('ul.AccountNavigation li:first-child ul.subnav li:first-child').after('Purge'); });

/* add a button that increases the content size and hides the rail - 2/1/11 */ $(function CreateContentResizeButton {	var headerWidth = $('header#WikiaPageHeader.WikiaPageHeader details').width;	var contentWidth = $('article#WikiaMainContent.WikiaMainContent').width;	var catlinksWidth = $('div#catlinks.catlinks').width;	if(contentWidth < 1000) {		$('section article header ul.wikia-menu-button').after(' + ');		$('section article header a.wikia-button').after('<ul class="wikia-menu-button" id="resizeButton" style="margin-left:10px"><a onclick="ExpandContent(' + headerWidth + ', ' + contentWidth + ', ' + catlinksWidth + ');" data-id="resizeButton" style="color:#fff;" title="Expands the content area. Note that this will hide the side rail."> + </a></ul>');		$('section article header a.view-source').after('<ul class="wikia-menu-button" id="resizeButton" style="margin-left:10px"><a onclick="ExpandContent(' + headerWidth + ', ' + contentWidth + ', ' + catlinksWidth + ');" data-id="resizeButton" style="color:#fff;" title="Expands the content area. Note that this will hide the side rail."> + </a></ul>');		if(wgCanonicalNamespace == 'User_blog') {			$('section article div#WikiaUserPagesHeader a.wikia-button').after('<ul class="wikia-menu-button" id="resizeButton" style="margin-left:10px"><a onclick="ExpandContent(' + headerWidth + ', ' + contentWidth + ', ' + catlinksWidth + ');" data-id="resizeButton" style="color:#fff;" title="Expands the content area. Note that this will hide the side rail."> + </a></ul>');		}	} }); function ExpandContent(headerWidth, contentWidth, catlinksWidth) {	$('header#WikiaPageHeader.WikiaPageHeader details').css({"width": '980px'});	$('article#WikiaMainContent.WikiaMainContent').css({"width": '1000px'});	$('div#catlinks.catlinks').css({"width": '1000px'});	$('div#WikiaRail.WikiaRail').css({"display": 'none'});	$('ul#resizeButton').replaceWith('<ul class="wikia-menu-button" id="resizeButton" style="margin-left:10px"><a onclick="CompressContent(' + headerWidth + ', ' + contentWidth + ', ' + catlinksWidth + ');" data-id="resizeButton" style="color:#fff;" title="Compress the content area back to its original width, and restore the side rail."> >--< </a></ul>'); }

function CompressContent(headerWidth, contentWidth, catlinksWidth) { $('header#WikiaPageHeader.WikiaPageHeader details').css({"width": headerWidth}); $('article#WikiaMainContent.WikiaMainContent').css({"width": contentWidth}); $('div#catlinks.catlinks').css({"width": catlinksWidth}); $('div#WikiaRail.WikiaRail').css({"display": 'block'}); $('ul#resizeButton').replaceWith('<ul class="wikia-menu-button" id="resizeButton" style="margin-left:10px"><a onclick="ExpandContent(' + headerWidth + ', ' + contentWidth + ', ' + catlinksWidth + ');" data-id="resizeButton" style="color:#fff;" title="Expands the content area. Note that this will hide the side rail."> + </a></ul>'); }