Bookmarklet Generator

A tool to generate bookmarklets for your website or browser. Bookmarklets are small scripts that can be added to your browser's bookmarks bar to perform a specific action.

Bookmarklet

Click and drag this link to your browser's bookmarks bar for quick access.

Instructions

  1. Enter the title and code for your bookmarklet.
  2. Click the "Generate" button to generate the bookmarklet.
  3. Click the "Copy" button to copy the bookmarklet to your clipboard.
  4. Click the "Run" button to run the bookmarklet in your browser.
  5. Click the "Clear" button to clear the generator.
  6. Drag the link to your browser's bookmarks bar for quick access.

Examples

Alert the user with a message.

alert('hello world');

Load a website in a new tab.

window.open('https://geoffduso.me', '_blank');

Generate a QR code for the current page.

window.open('https://api.qrserver.com/v1/create-qr-code/?data=' + encodeURIComponent(window.location.href), '_blank');

Run PageSpeed Insights for the current page.

window.open('https://developers.google.com/speed/pagespeed/insights/?url=' + encodeURIComponent(window.location.href), '_blank');