User:Demise101/global.js

importScriptPage('DisplayClock/code.js', 'dev'); importScriptPage('PurgeButton/code.js', 'dev'); PurgeButtonText = 'Purge'; importScriptPage('AjaxBatchDelete/code.js', 'dev'); importScriptPage('BackToTopButton/code.js', 'dev'); importScriptPage( 'AjaxUndo/code.js', 'dev' ); importScriptPage('AjaxRC/code.js', 'dev'); importScriptPage('AutoEditDropdown/code.js', 'dev'); importScriptPage('SearchGoButton/code.js', 'dev'); importScriptPage('DupImageList/code.js', 'dev');

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

importScriptPage( 'FastDelete/code.js', 'dev' ); var fdButtons = []; fdButtons[fdButtons.length] = { 'summary': 'Spam', 'label': 'S' }; fdButtons[fdButtons.length] = { 'summary': 'Unused File', 'label': 'UF' }; fdButtons[fdButtons.length] = { 'summary': 'Marked for Deletion', 'label': 'MfD'};

$(window).load(function { switch( wgCanonicalNamespace ) {    case 'User':    case 'User_talk':      $('.UserProfileActionButton .wikia-menu-button').css('margin-left','24px').appendTo('.UserProfileActionButton');      break;  }  $('.UserProfileActionButton .wikia-button').show; }); // End FastDelete Buttons for Administrators

ajaxPages = ["Special:RecentChanges","Special:WikiActivity","Special:Log"];

// rewrites "Edit Text" links to "Upload File" links on Special:WantedFiles $(function {   if ("Special" == wgCanonicalNamespace && "WantedFiles" == wgCanonicalSpecialPageName) {        $('ol.special a.new').each(function { var m = $(this).attr('href').match(/title=File:([^&]+)/); if (m) { $(this).attr({                   href: '/wiki/Special:Upload?wpDestFile=' + m[1],                    title: 'Upload ' + m[1]                }); }       });    } }); /* Find and Replace- Kangaroopower */ importScriptPage('Mediawiki:FindReplace.js', 'kangaroopower');

if ( mwCustomEditButtons ) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/c/c8/Button_redirect.png", "speedTip": "Redirect", "tagOpen": "#Redirect [[",		"tagClose": "",		"sampleText": " ",		"imageId": "myEditButton-redirect"	};	mwCustomEditButtons[mwCustomEditButtons.length] = {		"imageFile": "http://images.wikia.com/central/images/c/c9/Button_strike.png",		"speedTip": "Strike",		"tagOpen": " ",		"tagClose": " ",		"sampleText": " ",		"imageId": "myEditButton-strike"

};	mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://www.wikia.com/skins/common/images/button_hr.png", "speedTip": "Dash", "tagOpen": "&mdash;", "tagClose": "", "sampleText": "", "imageId": "myEditButton-strike"

};	mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/1/13/Button_enter.png", "speedTip": "Line break", "tagOpen": " ", "tagClose": "", "sampleText": "", "imageId": "myEditButton-linebreak" };	mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/7/74/Button_comment.png", "speedTip": "Comment visible only for editors", "tagOpen": "", "sampleText": "Insert comment here", "imageId": "myEditButton-comment" };	mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://www.wikia.com/skins/common/images/button_bold.png", "speedTip": "Bullet Point", "tagOpen": "&bull;", "tagClose": "", "sampleText": "", "imageId": "myEditButton-comment" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/en/c/c0/Button_link.png", "speedTip": "Link Creation", "tagOpen": "",		"tagClose": "", "sampleText": " ", "imageId": "myEditButton-link" }; }

/* change wiki activity to recent changes */ function WikiActivity2RecentChanges { $('.wikia-button[data-id$="wikiactivity"]').replaceWith('Recent Changes'); } addOnloadHook(WikiActivity2RecentChanges);

$(function { /* Kill mobile CSS */ $('head link[media="screen"]').remove; });

importScriptURI('http://dev.wikia.com/wiki/BotoneraPopups/Code/en.js?action=raw&ctype=text/javascript&templates=expand'); importStylesheetPage('BotoneraPopups/code.css', 'dev');

// Create if not exists if (!window.BotoneraPopups) { window.BotoneraPopups = {}; } // Change key binding for opening popup window.BotoneraPopups.displayOnKey = $.extend(true, window.BotoneraPopups.displayOnKey, {ctrlKey: false, altKey: false, shiftKey: true});