The Highlight Links bookmarklet is a powerful tool for SEO professionals and content auditors who need to quickly analyze link attributes on any webpage.
This intuitive bookmarklet instantly highlights all links with distinct colors based on their rel attributes, making it easy to identify Follow, NoFollow, and Sponsored links at a glance.
Perfect for link auditing and SEO analysis, this tool provides immediate visual feedback about the linking strategy of any webpage.
javascript:!function(){try{const o={follow:"#90EE90",nofollow:"#FFB6C1",sponsored:"#FFD700"},l=document.getElementsByTagName("a");let e={follow:0,nofollow:0,sponsored:0};for(let i of l){const l=i.getAttribute("rel")||"";let n="follow";l.includes("nofollow")&&(n="nofollow"),l.includes("sponsored")&&(n="sponsored"),i.style.backgroundColor=o[n],i.style.padding="2px 5px",i.style.margin="1px 0",i.style.borderRadius="2px",i.style.transition="background-color 0.3s",e[n]++}const i=document.createElement("div");i.style.cssText="position:fixed;top:20px;right:20px;background:white;padding:15px;border-radius:8px;box-shadow:0 0 10px rgba(0,0,0,0.5);z-index:9999;",i.innerHTML=`<h3 style="margin-top:0">Link Analysis Summary:</h3><div style="margin:10px 0"><div style="display:inline-block;width:15px;height:15px;background:${o.follow};margin-right:5px"></div>Follow: ${e.follow}</div><div style="margin:10px 0"><div style="display:inline-block;width:15px;height:15px;background:${o.nofollow};margin-right:5px"></div>NoFollow: ${e.nofollow}</div><div style="margin:10px 0"><div style="display:inline-block;width:15px;height:15px;background:${o.sponsored};margin-right:5px"></div>Sponsored: ${e.sponsored}</div><button onclick="this.parentElement.remove()" style="margin-top:10px;padding:5px 10px">Close</button>`,document.body.appendChild(i)}catch(o){alert("Error: "+o.message)}}();
* Color-codes links based on their rel attributes (Follow, NoFollow, Sponsored)
* Displays a summary count of each link type
* Works instantly on any webpage
* Provides clear visual distinction between link types
* Includes a floating summary panel for quick reference
Why Use Highlight Links? #
This bookmarklet is essential for:
- Quick analysis of link attributes and distribution
- Identifying potential SEO issues with link structure
- Auditing sponsored content compliance
- Analyzing competitor linking strategies
- Training content teams on proper link usage
- Previous: Highlight Headings
- Next: Keyword Density Analyzer