MediaWiki:Gadget-search-new-tab.js
This page is loaded as a part of the search-new-tab gadget, used by 13,174 users. |
/* JSHint-valid *//* globals $:false */$(function() {// Special:Search for all skins.$('#powersearch, #search').on('keydown', function(e) {$(this).prop('target', e.ctrlKey || e.metaKey ? '_blank' : '');});// CodexTypeaheadSearch header search [only on Vector (2022)].$('#p-search').on('keydown', '.cdx-typeahead-search #searchform', function(e) {if ((e.ctrlKey || e.metaKey) && (e.keyCode == 13 || e.keyCode == 10)) {var URI = $(this).find('.cdx-menu-item--selected a.cdx-menu-item__content').prop('href');if (URI != undefined) {window.open(URI, '_blank');return false;}}});// Header/Side search on other skins [no auto suggest nav on MinervaNeue].// Search box [auto suggest on Vector legacy (2010), MonoBook, Timeless].$('div:not(.cdx-typeahead-search) #searchform #searchInput, .searchbox .mw-searchInput').on('keydown', function(e) {if ((e.ctrlKey || e.metaKey) && (e.keyCode == 13 || e.keyCode == 10)) {if ($(this).data('suggestionsContext') != undefined) {var selectedIndex = $(this).data('suggestionsContext').config.suggestions.indexOf($(this).val());if (selectedIndex != -1) {var URI = $('.suggestions-results a:nth-child(' + (selectedIndex + 1) + ')').prop('href');if (URI != undefined) {window.open(URI, '_blank');$(this).trigger('blur');}}}}});});
🔥 Top keywords: Akademia e Shkencave e RPS te ShqiperiseAlexandria Ocasio-CortezBilderberg GroupCristiano RonaldoDong XiaowanMinecraftOperation GladioPrimal cutRiot FestStrictly Come Dancing (series 7)Main PageSpecial:SearchWikipedia:Featured picturesIga ŚwiątekRamoji RaoHit Man (2023 film)Pawan KalyanMichael Mosley (broadcaster)2024 Indian general electionWilliam AndersChirag PaswanCleopatraJasmine PaoliniPat SajakProject 20252024 ICC Men's T20 World CupDeaths in 2024Glen PowellKidnapping of Noa ArgamaniAdria ArjonaBad Boys: Ride or DieEarthriseVanna WhiteThe Acolyte (TV series)UEFA Euro 2024YouTubeThe Watchers (film)Beechcraft T-34 MentorSabrina CarpenterNormandy landingsBarry Keoghan.xxxGodzilla Minus OneTaylor SwiftN. Chandrababu NaiduClash at the Castle: ScotlandICC Men's T20 World CupTom Jones (singer)LAC Colombia Flight 028