Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add steps to add site shortcut for Firefox #3

Merged
merged 4 commits into from
Apr 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ Just pass your query as the path, and you will be redirected to the most relevan
- [`a.stro.cc/islands`](https://a.stro.cc/islands) => `https://docs.astro.build/en/concepts/islands/`
- [`a.stro.cc/github%20pages`](https://a.stro.cc/github%20pages) => `https://docs.astro.build/en/guides/deploy/github/`

## Tip!
## Tip: Use this as a site shortcut!

Use this as a site shortcut in Chrome!
### Chrome

- Navigate to [`chrome://settings/searchEngines`](chrome://settings/searchEngines)
- Under **Site Search** select **Add**.
Expand All @@ -22,6 +22,23 @@ Use this as a site shortcut in Chrome!

Now, you can type `astro` in Chrome's address bar, followed by whatever topic you'd like to jump to in the Astro Docs.

### Firefox

Firefox out of the box does not support adding a new search engine. However, there is an option to enable it. Here is how:

- Open a new tab and navigate to `about:config`
- In the search box, type `browser.urlbar.update2.engineAliasRefresh`.
- At this point, the result list should be empty.
- If it is empty, click the **+** button at the top right.
- If the option already exists, set it to `true` by clicking the swap button on the right.
- Now navigate to `about:preferences#search`.
- Click on the **Add** button under the “Search Shortcuts” list.
- In the popup, set the **engine URL** to `https://a.stro.cc/%s`.
- Set the alias to `astro`, or anything you prefer!
- Press **Add Engine**.

Now you can type `astro` followed by your search term. It will redirect you into the Astro Docs!

🫡 Good luck out there, astronaut!

## Thanks
Expand Down