A Template for Creating Web Browser Bookmarks with React.JS.
To get started with the project, follow these steps:
-
Clone the repository:
git clone https://codeberg.org/stefankuehnel/bookmarklet.git cd bookmarklet -
Install dependencies:
task install
-
Initialize project:
task init --interactive
-
Run the development server:
task dev
-
Open your browser:
Navigate to
http://localhost:3000to see the bookmarklet in action.
To use the bookmarklet, follow these steps:
-
Copy Bookmarklet Code:
- Visit
<DEPLOYMENT_URL>/dist/bookmarklet.js - Copy the code displayed.
- Visit
-
Create Browser Bookmark:
- Create a bookmark in your browser.
- Paste the JavaScript code you copied earlier into the URL or Location field.
- Save the bookmark with a recognizable name, such as "bookmarklet".
Once the bookmarklet is set up, you can use it on any web page:
- Navigate to the desired page: Go to the web page where you want to use the bookmarklet.
- Run the bookmarklet: Click on the bookmark you created earlier. The bookmarklet will execute the JavaScript code on the current page, performing its intended function.
Note
The bookmarklet may not work on all websites, especially those with strict Content Security Policies (CSP). Learn more
This project uses Task as a task runner.
# Run default tasks (build)
task
# Initialize project
task init
# Install dependencies
task install
# Run development server
task dev
# Build the project
task build
# Deploy the project
task deploy
# Format code
task format
# Clean project artifacts
task cleanBelow you will find a list of documentation for tools used in this project.
- React: A JavaScript Library for Building User Interfaces - Docs
- Nix: Nix Package Manager - Docs
- Nix Flakes: An Experimental Feature for Managing Dependencies of Nix Projects - Docs
- Task: A Task Runner / Build Tool written in Go - Docs
- Forgejo Actions: Automation and Execution of Software Development Workflows - Docs
Thank you for your message! Please fill out a bug report.
This project is licensed under the GNU General Public License.