Skip to content

ymainier/qs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Quick Search

Single‑file site search redirect page. Map a short query keyword to a target site using regex patterns and redirect immediately. Meant to be used in a Chrome custom search engine (keyword -> URL?q=%s).

Features

  • Single HTML file with inlined JS and CSS for minimal latency
  • Pattern list: array of { pattern, url } (JS regex + URL template with $1)
  • Immediately redirects to the first matching pattern when ?q= is present
  • Shows a simple table of patterns when no query is provided
  • No dependencies, no build step

Usage

  1. Configure Chrome custom search engine:
  2. From the address bar use: q gh typescript → redirects to GitHub search for "typescript".

Extending

  • Add new entries to the PATTERNS array in the file: each entry must include a capturing group and a $1 placeholder in the url template.

About

Quick Search: single‑file site search redirect page. Map a short query keyword to a target site using regex patterns and redirect immediately

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages