Desk
Desk is a Chrome Extension that provides enhanced bookmark functionality.
This tool can simplify a lot of daily routine on the website and also provides an API to customize your own units, all (bookmark) buttons is named "unit".
It can automatically do something after opening a website and provide a global variable that named "keep" to easily change properties in URL or a variables in the code.
By the way, hope this tool can open any website you want with just one click.
CopyRight: There are some youtube channels or e-commerce stores in example. If it had any problem, please post a question in issue and we'll deal with (maybe delete) it right away. We're very sorry about it.
Youtube · download
Follow some youtuber or youtube channel for latest video. Keep represents whether to open latest video, fill in "true".
Online Store (Singapore) · download
Search for products in different online stores. Keep represents the name of the product you are searching for.
- Click or trigger shortcut key on unit to open target website. (When mouse hover over unit, it shows its name and shortcut key.)
- Fill in keep and click on unit to open target website with a special variable.
Shortcut Key | Description |
---|---|
alt + z | Clear the value of "keep". |
alt + x | Select the inner text of a tag on the html as "keep". |
alt + c | Copy the value of "keep". |
alt + v | Paste the value to "keep". |
- Download the code.
- Open google chrome.
- Open extensions using chrome://extensions
- Enable developer mode.
- Click on Load Unpacked and select the unzip folder you just downloaded.
- Desk will be installed now.
- Download the code.
- Open CLI and input following command
npm run build
- Open google chrome.
- Open extensions using chrome://extensions
- Enable developer mode.
- Click on Load Unpacked and select the folder named "build" in unzip folder you just downloaded.
- Desk will be installed now.
Customize your own units, all (bookmark) buttons is called "unit".
Attribute | Type | Description |
---|---|---|
name | string | Define the unit name displayed under the icon. |
icon | file path | Specify the file path of icon. The root directory is /unit/icon/ . |
key | Key | Define the shortcut key for clicking it. |
link | URL | Specify the target URL when keep isn't used. |
code | file path | Specify the code run automatically after opening the URL (link) when keep isn't used. The root directory is /unit/codes/ . |
linkUsingKeep | URL | Specify the target URL when using keep. |
codeUsingKeep | file path | Specify the code run automatically after opening the URL (linkUsingKeep) when using keep. The root directory is /unit/codes/ . |
Attribute | Type | Description |
---|---|---|
code | string | Define the main shortcut key. This value is same as KeyboardEvent.code. |
alt | boolean | Defines whether to detect pressing alt key when the shortcut key is triggered. |
ctrl | boolean | Defines whether to detect pressing ctrl key when the shortcut key is triggered. |
shift | boolean | Defines whether to detect pressing shift key when the shortcut key is triggered. |
Provides useful constants and methods that can be called directly in code.
Constant | Type | Description |
---|---|---|
link | string | Get the value of "link" or "linkUsingKeep" set on the unit. |
code | string | Get the value of "code" or "codeUsingKeep" set on the unit. |
keep | string | Get the value of "keep" set on desk. |
Method | Return Type | Description |
---|---|---|
done() | void | Let the extension to stop running code automatically on this tab. |
open(link: URL, code: string) | void | Open the website on a new tab and run the specified code. |
sleep(ms: number) | void | Wait for the time you set. |
until(check: Function, run: Function) | void | Run the code after waiting for the check. |
Desk is Apache licensed.