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.
Instructions
- Enter the title and code for your bookmarklet.
- Click the "Generate" button to generate the bookmarklet.
- Click the "Copy" button to copy the bookmarklet to your clipboard.
- Click the "Run" button to run the bookmarklet in your browser.
- Click the "Clear" button to clear the generator.
- 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');