Bookmarklet to Save & Retrieve Frequently Used Text Snippets

Do you often type the same text over and over again? 

Snippets Bookmarklet saves snippets of the text you need, in your browser storage with names of your choice & retrieves them with a single click. 

Just click the bookmarklet anytime you find something you want to save for later. Give your snippet a name, and it will be stored securely in your browser.

To view your saved snippets, click the bookmarklet again and select the name you gave it. The snippet will be inserted in the input element where you need it.

I employed Anthropic's Claude AI assistant to generate bookmarklet code by prompting my requirement:

Here's the compact version of the same code:

Here's how to use it:
  1. Create a new bookmark in your browser.
  2. Edit the bookmark and set the name to something like "Snippets".
  3. Paste the above code into the URL or Location field.
Alternatively drag and drop this link (after checking and adapting the words-per-minute rate) to the Bookmarks bar or Favorites bar in Chrome or Edge to see how it works - Snippets

In the code make sure to change the id of the text area/text box from the value of prompt-textarea as specified in the code to something that matches the id of your input element.

Comments