Open Your Browser - Launch your preferred web browser (e.g., Chrome, Firefox).
Open Developer Tools - Press `Ctrl + Shift + I` (or `Cmd + Option + I` on Mac) to open the Developer Tools panel. Alternatively, you can right-click on the web page and select “Inspect” or “Inspect Element.”
Navigate to the Console Tab - In the Developer Tools panel, find and click on the “Console” tab. This is where you can run JavaScript code.
Paste the Bookmarklet Script - Copy the bookmarklet script you want to use.
- Paste the copied script into the console.
Execute the Script - Press `Enter` to execute the script. The bookmarklet will now run on the webpage you are viewing.
Method 2: Saving as a Bookmark Item
Open Your Browser - Launch your preferred web browser (e.g., Chrome, Firefox).
Access Bookmarks - Press `Ctrl + D` (or `Cmd + D` on Mac) to add a new bookmark, or open your browser’s bookmarks manager.
Edit Bookmark Details - In the bookmark dialog that appears:
- Name: Enter a name for your bookmarklet (e.g., "My Bookmarklet").
- URL: Replace the URL with the bookmarklet script. Bookmarklet scripts typically start with `javascript:` followed by the code.
Save the Bookmark - Click “Save” or “Done” to store the bookmarklet in your bookmarks bar or folder.
Use the Bookmarklet - Navigate to the web page where you want to use the bookmarklet.
- Click on the bookmarklet in your bookmarks bar or folder. The script will execute on the current page.