Snippet on your clipboard!
snippet


How to use these snippets?


Method 1: Pasting in Dev Tools Console
  1. Open Your Browser
     - Launch your preferred web browser (e.g., Chrome, Firefox).
  2. 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.”
  3. 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.
  4. Paste the Bookmarklet Script
     - Copy the bookmarklet script you want to use.
     - Paste the copied script into the console.
  5. 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
  1. Open Your Browser
     - Launch your preferred web browser (e.g., Chrome, Firefox).
  2. Access Bookmarks
     - Press `Ctrl + D` (or `Cmd + D` on Mac) to add a new bookmark, or open your browser’s bookmarks manager.
  3. 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.
  4. Save the Bookmark
     - Click “Save” or “Done” to store the bookmarklet in your bookmarks bar or folder.
  5. 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.