AutoFocusSearchBox

Automatically focuses the search box on page load

Author
aceitw
Daily installs
0
Total installs
1
Ratings
0 0 0
Version
1.0
Created
2025-04-02
Updated
2025-04-02
Size
2.31 KB
License
MIT
Applies to
All sites

AutoFocusSearchBox

Automatically focuses the main search input when a supported website loads. Ideal for keyboard-focused users who want to start typing immediately.

Features

  • Focuses the most relevant search box on page load
  • Works on a wide range of websites (Google, DuckDuckGo, Docs, etc.)
  • Lightweight and fast

How It Works

The script scans the page for visible <input> elements likely to be search boxes (based on type, placeholder, id, name, or aria-label) and focuses the first match.

长期地址
遇到问题?请前往 GitHub 提 Issues。