User:Zaphryn78/monobook.js

/* Import Show-Hide JS */ importScriptPage('ShowHide/code.js', 'dev'); /* add history, what links here, and skin change buttons to the menu */ function ToolsMenuItems { $('section header nav ul li:nth-last-child(2) ul li:first-child').after('HistoryWhat Links here'); $('section header nav ul li:nth-last-child(2) ul li:nth-last-child(1)').after('Monobook skinVector skin'); } addOnloadHook(ToolsMenuItems); /* Longer image titles in categories */ $(function {$('.gallerytext a').each(function {this.innerHTML = this.title;});}); /* Open search results in new tab */ /* community.wikia.com/wiki/Admin_Forum:Open_search_results_in_new_tab._JS_or_CSS%3F */ $(function {   $('#WikiaSearch, #search, #powersearch').attr({ target: '_blank' }); }); WikiaSearchApp.initSuggest = function { $.loadJQueryAutocomplete(function {        WikiaSearchApp.searchField.autocomplete({ serviceUrl: wgServer + wgScript + "?action=ajax&rs=getLinkSuggest&format=json", onSelect: function (a, b) { WikiaSearchApp.track("suggest"); WikiaSearchApp.trackInternal("search_start_suggest", {                   sterm: encodeURIComponent(a.replace(/ /g, "_")),                    rver: 0                }); window.open(wgArticlePath.replace(/\$1/, encodeURIComponent(a.replace(/ /g, "_")))); },           appendTo: "#WikiaSearch", deferRequestBy: 250, maxHeight: 1000, selectedClass: "selected", width: "270px", skipBadQueries: true })   }) };