User:Porter21/global.js

/* Purge button */ PurgeButtonText = 'Purge'; importScriptPage('PurgeButton/code.js', 'dev');

/* Advanced Oasis UI */ importScriptPage('AdvancedOasisUI/code.js', 'dev');

/* ######################################################################## */ /* ### Dashboard Searchbox                                             ### */ /* ### ### */ /* ### Description: Place searchbox in admin dashboard header           ### */ /* ### Credit:     User:Porter21                                       ### */ /* ######################################################################## */

function DashboardSearchbox { var adbHeader = $('#AdminDashboardHeader');

if (adbHeader.length) { appendCSS('#WikiaSearch .autocomplete { width: 288px; } #AdminDashboardTabs { right: 310px; }');

// Old nav: Remove existing search box and move buttons if (!($('#WikiHeader').hasClass('WikiHeaderRestyle'))) { appendCSS('#WikiHeader > .buttons { bottom: 5px; top: auto; }'); adbHeader.find('.adm-dash-search').remove; }

// Insert search box adbHeader.append('   ');

// Init autocomplete WikiaSearchApp.init; } }

jQuery(function($) {  if ((skin == 'oasis' || skin == 'wikia') && wgNamespaceNumber == -1) {      DashboardSearchbox;   } });