XML Sitemap Bookmarklet

Use this Google Chrome bookmarklet to inspect your competitors’ content via their XML sitemap.

Please note that the sitemap functionality is effective exclusively when the sitemap file resides at site.com/sitemap.xml, and its primary objective is to enhance your workflow speed.

Installing a bookmarklet in your web browser is a straightforward process. Bookmarklets are small pieces of JavaScript code that you can save as bookmarks and use to enhance your browsing experience or add functionality to webpages.

Select and Copy the Bookmarklet Code

Highlight and copy the following JavaScript code for the bookmarklet:

javascript:(function() {  const mainDomain = window.location.protocol + '//' + window.location.hostname;  const sitemapUrl = mainDomain + '/sitemap.xml';  window.open(sitemapUrl, '_blank');})();

Create a New Bookmark

Right-click on your browser’s bookmarks bar (the area just below the address bar) or press Ctrl+Shift+B (Windows/Linux) or Command+Shift+B (Mac) to show the bookmarks bar if it’s hidden.

Choose “Add page” or “Add bookmark” depending on your browser version.

Name the Bookmarklet

Give the bookmarklet a name that helps you identify its purpose. This name will appear in your bookmarks bar.

Paste the JavaScript Code

In the URL or Location field, delete the existing URL if any, and paste the JavaScript code you copied earlier. Make sure it starts with javascript:.

Save the Bookmarklet

Click the “Save” or “Add” button to save the bookmarklet to your bookmarks bar.

Using the Bookmarklet

To use the XML Sitemap bookmarklet, just click on it within your bookmarks bar when visiting a competitor’s website. This action triggers the execution of the JavaScript code, resulting in the opening of a new page displaying the sitemap.

Scroll to Top