mirror of
https://github.com/thedevs-network/kutt-extension.git
synced 2026-02-03 05:43:24 +00:00
docs: update readme
This commit is contained in:
84
README.md
84
README.md
@@ -1,6 +1,6 @@
|
||||
<div align="center"><img width="150" src="source/public/assets/logo.png" /></div>
|
||||
<h1 align="center">kutt-extension</h1>
|
||||
<p align="center">Browser extension for <a href="https://kutt.it">Kutt.it</a></p>
|
||||
<p align="center">Browser extension for <a href="https://kutt.it">Kutt.it</a> URL shortener</p>
|
||||
<div align="center">
|
||||
<a href="https://github.com/thedevs-network/kutt-extension/actions/workflows/build.yml">
|
||||
<img src="https://github.com/thedevs-network/kutt-extension/actions/workflows/build.yml/badge.svg?branch=master" alt="Build" />
|
||||
@@ -33,28 +33,36 @@
|
||||
- Free and Open Source
|
||||
- Uses WebExtensions API
|
||||
|
||||
## Tech Stack
|
||||
|
||||
- **Bundler**: [Vite](https://vitejs.dev/) 6
|
||||
- **UI**: [React](https://react.dev/) 19
|
||||
- **Language**: [TypeScript](https://www.typescriptlang.org/) 5.7
|
||||
- **Styling**: SCSS with CSS Modules
|
||||
- **Linting**: ESLint 9 (flat config) + Prettier
|
||||
|
||||
## Browser Support
|
||||
|
||||
| [](https://chrome.google.com/webstore/detail/kutt/pklakpjfiegjacoppcodencchehlfnpd) | [](https://addons.mozilla.org/firefox/addon/kutt/) | [](CONTRIBUTING.md#for-opera-users) | [](https://chrome.google.com/webstore/detail/kutt/pklakpjfiegjacoppcodencchehlfnpd) | [](https://chrome.google.com/webstore/detail/kutt/pklakpjfiegjacoppcodencchehlfnpd) | [](https://chrome.google.com/webstore/detail/kutt/pklakpjfiegjacoppcodencchehlfnpd) | [](https://chrome.google.com/webstore/detail/kutt/pklakpjfiegjacoppcodencchehlfnpd) |
|
||||
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| 49 & later ✔ | 52 & later ✔ | 36 & later ✔ | 79 & later ✔ | Latest ✔ | Latest ✔ | Latest ✔
|
||||
This extension uses **Manifest V3**.
|
||||
|
||||
## How to use
|
||||
| [](https://chrome.google.com/webstore/detail/kutt/pklakpjfiegjacoppcodencchehlfnpd) | [](https://addons.mozilla.org/firefox/addon/kutt/) | [](CONTRIBUTING.md#for-opera-users) | [](https://chrome.google.com/webstore/detail/kutt/pklakpjfiegjacoppcodencchehlfnpd) | [](https://chrome.google.com/webstore/detail/kutt/pklakpjfiegjacoppcodencchehlfnpd) |
|
||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| 88+ | 109+ | 74+ | 88+ (Chromium) | Latest (Chromium) |
|
||||
|
||||
- Download for browser(s)
|
||||
## Installation
|
||||
|
||||
- Chrome: [Kutt :: Chrome Web Store](https://chrome.google.com/webstore/detail/kutt/pklakpjfiegjacoppcodencchehlfnpd)
|
||||
- Firefox: [Kutt :: Add-ons for Firefox](https://addons.mozilla.org/firefox/addon/kutt/)
|
||||
- Opera [Kutt :: Opera addons](CONTRIBUTING.md#for-opera-users)
|
||||
- Edge: [Kutt :: Chrome Web Store](https://chrome.google.com/webstore/detail/kutt/pklakpjfiegjacoppcodencchehlfnpd)
|
||||
- **Chrome**: [Kutt :: Chrome Web Store](https://chrome.google.com/webstore/detail/kutt/pklakpjfiegjacoppcodencchehlfnpd)
|
||||
- **Firefox**: [Kutt :: Add-ons for Firefox](https://addons.mozilla.org/firefox/addon/kutt/)
|
||||
- **Opera**: [Kutt :: Opera addons](CONTRIBUTING.md#for-opera-users)
|
||||
- **Edge**: [Kutt :: Chrome Web Store](https://chrome.google.com/webstore/detail/kutt/pklakpjfiegjacoppcodencchehlfnpd)
|
||||
|
||||
- Generate an API Key from <a href="https://kutt.it">`https://kutt.it/`</a> after signing up. (Settings page)
|
||||
## How to Use
|
||||
|
||||
<img width="400" src="https://i.imgur.com/qQwqeH5.png" />
|
||||
1. Generate an API Key from <a href="https://kutt.it">`https://kutt.it/`</a> after signing up (Settings page)
|
||||
|
||||
- Paste and Save this `Key` in extension's `options page` when asked.
|
||||
<img width="400" src="https://i.imgur.com/qQwqeH5.png" />
|
||||
|
||||
<hr />
|
||||
2. Paste and Save this `Key` in extension's `options page` when asked
|
||||
|
||||
## Screenshots
|
||||
|
||||
@@ -64,15 +72,51 @@
|
||||
<img width="330" src="./.github/assets/options-v4-1.png" alt="options" />
|
||||
</div>
|
||||
|
||||
<br />
|
||||
## Development
|
||||
|
||||
Ensure you have [Node.js](https://nodejs.org) 20 or later installed.
|
||||
|
||||
```bash
|
||||
# Install dependencies
|
||||
npm install
|
||||
|
||||
# Start development server
|
||||
npm run dev:chrome # For Chrome
|
||||
npm run dev:firefox # For Firefox
|
||||
|
||||
# Build for production
|
||||
npm run build:chrome # Build Chrome extension
|
||||
npm run build:firefox # Build Firefox addon
|
||||
npm run build # Build for all browsers
|
||||
|
||||
# Linting
|
||||
npm run lint # Run ESLint
|
||||
npm run lint:fix # Run ESLint with auto-fix
|
||||
```
|
||||
|
||||
### Loading the Extension
|
||||
|
||||
#### Chrome
|
||||
|
||||
1. Navigate to `chrome://extensions`
|
||||
2. Enable "Developer mode"
|
||||
3. Click "Load unpacked"
|
||||
4. Select `extension/chrome` directory
|
||||
|
||||
#### Firefox
|
||||
|
||||
1. Navigate to `about:debugging`
|
||||
2. Click "This Firefox"
|
||||
3. Click "Load Temporary Add-on"
|
||||
4. Select `extension/firefox/manifest.json`
|
||||
|
||||
## Note
|
||||
|
||||
- <a href="https://kutt.it">Kutt.it</a> API permits **50** URLs shortening per day using the API Key.
|
||||
- <a href="https://kutt.it">Kutt.it</a> API permits **50** URLs shortening per day using the API Key
|
||||
- **Enable Custom Host** option to use with self-hosted kutt
|
||||
- Save the self hosted domain in the input (eg: <https://mykutt.it>)
|
||||
- **Note**: the api endpoint is automatically appended during the api call.
|
||||
- _Delay at times while shortening might be the issue with Kutt.it API and not with the extension's._
|
||||
- Save the self hosted domain in the input (eg: `https://mykutt.it`)
|
||||
- **Note**: the api endpoint is automatically appended during the api call
|
||||
- _Delay at times while shortening might be the issue with Kutt.it API and not with the extension's_
|
||||
|
||||
## Contributing and Support
|
||||
|
||||
@@ -80,6 +124,6 @@ View the Contributing guidelines [here](CONTRIBUTING.md).
|
||||
|
||||
Original Repo: [thedevs-network/kutt](https://github.com/thedevs-network/kutt)
|
||||
|
||||
## Licence
|
||||
## License
|
||||
|
||||
Code released under the [MIT License](license).
|
||||
|
||||
Reference in New Issue
Block a user