JavaScript Bookmarklets
A collection of useful bookmarklets for web development and browsing. Drag any bookmarklet button to your bookmarks bar to install, or use the copy button for mobile installation.
View Reference Anchors
Reveals all linkable anchor points on a page by adding visible # links to elements with id attributes.
View source code
(function() {
// Collect all anchor targets
const anchors = new Set();
document.querySelectorAll('[id]').forEach(el => {
if (el.id) anchors.add(el);
});
// Appends visible tags to DOM (minified for actual bookmarklet link)
})();
View DOM Source
Opens a modal dialog showing the current page's live DOM HTML source (document.documentElement.outerHTML), not the static source.
View source code
(function() {
// Injects a fixed modal reading document.documentElement.outerHTML
// Includes naive formatter and clipboard hooks
})();