Bookmarklet Resources

Master the art of creating powerful JavaScript bookmarklets. From basic concepts to advanced techniques.

Getting Started

1

Understand the Basics

Discover what bookmarklets are, how they work, and why they're useful for web automation.

Read Guide →
2

Try the Generator

Use our bookmarklet generator to convert JavaScript code into working bookmarklets.

Open Generator →
3

Inspect the Source

Decode a bookmarklet and flag the browser capabilities that deserve manual review without running it.

Open Inspector →
4

Test DOM Behavior

Run code you understand in a disposable local document that restricts page-origin access, requests, external resources, forms, popups, and downloads.

Open Test Fixture →

Code Examples

Highlight All Links

Learn to select and modify DOM elements

// Highlight all links on the page
const links = document.querySelectorAll('a');
links.forEach(link => {
  link.style.backgroundColor = 'yellow';
  link.style.padding = '2px';
});

Count Page Headings

Read document structure without collecting personal data

// Count headings by level
const counts = {};
document.querySelectorAll('h1,h2,h3,h4,h5,h6').forEach((heading) => {
  counts[heading.tagName] = (counts[heading.tagName] || 0) + 1;
});
console.table(counts);

Create Quick Notes

Add interactive elements to any webpage

// Add a floating note widget
const noteDiv = document.createElement('div');
noteDiv.innerHTML = '<textarea placeholder="Quick note..."></textarea>';
noteDiv.style.cssText = 'position:fixed;top:10px;right:10px;z-index:9999;';
document.body.appendChild(noteDiv);

Need Help?

📚 Documentation

Comprehensive guides and API references for all your bookmarklet needs.

💡 Examples

Browse our library of working bookmarklets for inspiration and reference.

🛠️ Tools

Use the generator, inspector, and isolated fixture to create, review, and test bookmarklets.