docs: update extension guide

This commit is contained in:
Steven 2024-09-17 23:40:32 +08:00
parent 52421b1598
commit ba62afc034
5 changed files with 6 additions and 17 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 155 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 69 KiB

View File

@ -10,34 +10,23 @@ For Chromuim based browsers, you can install the extension from the [Chrome Web
For Firefox, you can install the extension from the [Firefox Add-ons](https://addons.mozilla.org/en-US/firefox/addon/your-slash/). For Firefox, you can install the extension from the [Firefox Add-ons](https://addons.mozilla.org/en-US/firefox/addon/your-slash/).
### Generate an access token ### Prerequisites
1. Go to your Slash instance and sign in with your account. - You need to have a Slash instance running.
- Sign in with your account on the Slash instance.
2. Go to the settings page and click on the "Create" button to create an access token.
![](./assets/extension-usage/create-access-token.png)
3. Copy the access token and save it somewhere safe.
![](./assets/extension-usage/copy-access-token.png)
### Configure the extension ### Configure the extension
The extension needs to know the instance url of your Slash. You can configure it by following the steps below:
1. Click on the extension icon and click on the "Settings" button. 1. Click on the extension icon and click on the "Settings" button.
![](./assets/extension-usage/extension-setting-button.png) ![](./assets/extension-usage/extension-setting-button.png)
2. Enter your Slash's domain and paste the access token you generated in the previous step. 2. Enter the instance url of your Slash and then "Save".
![](./assets/extension-usage/extension-setting-page.png) ![](./assets/extension-usage/extension-setting-page.png)
3. Click on the "Save" button to save the settings.
4. Click on the extension icon again, you will see a list of your shortcuts.
![](./assets/extension-usage/extension-screenshot.png)
### Use your shortcuts in the search bar ### Use your shortcuts in the search bar
You can use your shortcuts in the search bar of your browser. For example, if you have a shortcut named `gh` for [GitHub](https://github.com), you can type `s/gh` in the search bar and press `Enter` to go to [GitHub](https://github.com). You can use your shortcuts in the search bar of your browser. For example, if you have a shortcut named `gh` for [GitHub](https://github.com), you can type `s/gh` in the search bar and press `Enter` to go to [GitHub](https://github.com).