MediaWiki:Gadget-searchFocus.js:修订间差异
跳到导航
跳到搜索
Mediawiki>Lakokat (Inspired by en:MediaWiki:Gadget-searchFocus.js) |
imported>Irukaza 小 (导入1个版本) |
(没有差异)
|
2022年1月31日 (一) 00:31的版本
// <pre><nowiki>
// _________________________________________________________________________________________
// | |
// | === WARNING: GLOBAL GADGET FILE === |
// | Changes to this page affect many users. |
// | Please discuss changes on the talk page or on [[Wikipedia_talk:Gadget]] before editing. |
// |_________________________________________________________________________________________|
//
// Imported from [[Wikipedia:FAQ/Main Page]] as of April 1, 2008
if ( mw.config.get( 'wgIsMainPage' ) ) {
$( function () {
document.getElementById("searchInput").focus();
} );
}