MediaWiki:SearchEnhancements.js

$('.page-List_of_JavaScript_enhancements.oasis-breakpoints #mw-content-text').prepend(''); $('#searchJS').focus; function filterFunction { var input, filter, ul, li, a, i, h2, h3; input = document.getElementById("searchJS"); filter = input.value.toUpperCase; div = document.getElementById("mw-content-text"); a = div.getElementsByTagName("li"); for (i = 0; i < a.length; i++) { if (a[i].innerHTML.toUpperCase.indexOf(filter) > -1) { a[i].style.display = ""; } else { a[i].style.display = "none"; }   }    if (!input.value) { $('#mw-content-text h2, #mw-content-text h3, #mw-content-text p, #mw-content-text div, #mw-content-text dl').css('display',''); $('#mw-content-text ul').css({'margin-top':,'margin-bottom':}); } else { $('#mw-content-text h2, #mw-content-text h3, #mw-content-text p, #mw-content-text div, #mw-content-text dl').css('display','none'); $('#mw-content-text ul').css({'margin-top':'0','margin-bottom':'0'}); } }