User:Paul Geißler/vector.js

if (mw.config.get('wgPageName') == mw.config.get('wgMainPageTitle')) { if(skin=="vector") addOnloadHook(function {        $(document).ready( function { $("#searchInput").focus; });     });   else addOnloadHook(function {        document.getElementById("searchInput").focus;      }); }