Four Dots
Four Dots Blog


from the blog

Some Common Knowledge First

Let’s face it, Ahrefs rocks!

Pretty much anyone knows that and rare are those SEO pros who don’t use Ahrefs almost daily in their routine. It offers plethora of data and valuable insight in company/client online performance.

Also, Ahrefs is huge application and as SEO software developers ourselves, we know precisely how big efforts behind the app are as well. Thing is that being engaged at multiple fronts often get little things neglected for a while until someone stands up and saves the day for everybody.


About a year ago, they published an article on their blog about Ahrefs bookmarklets intended for people who don’t want to run fully blown Ahrefs browser extension but as time passed, things changed and Ahrefs evolved, so did their URLs. They changed and bookmarklets broke and they remained like this for quite a while.

If you don’t know what are bookmarklets and aren’t familiar with them, they are tiny bits of Javascript code which are used as bookmarks in web browsers and when clicked while on certain web page, they will perform the action they coded for.

They’re super easy to install by just drag and dropping the bookmarklet link to your browser’s bookmark bar. What’s more important is, they’re extremely useful and lightweight in contrast to browser extensions which are eating RAM the moment browser is started no matter you use them or not, like small digital leaches.

Here’s the llittle resources list for those interested in boosting their productivity:

Time to Act

Personally, I’m huge purist in terms of software so I usually restrain from bloated installations of any kind and mostly run portable apps. I’m also big fan of UNIX and its philosophy which is best portrayed by this quote by Doug McIlroy:

Write programs that do one thing and do it well.


As I work mostly online and got used to using plethora of web tools to get things done, next natural step for me was usage of bookmarklets wherever possible (list is long) instead of feeding already resource-hogging browser (weird eyes to Chrome).


Aw, snap! anyone?

So, whenever I fired Ahrefs bookmarket to check domain metrics or backlinks it gave me 404 error which is rather annoying if you’re in a hurry and have to do thing manually by copy/pasting URL to SiteExplorer like it’s ’95.

ahrefs 404

I investigated a bit and noticed that bookmarklet’s Javascript code isn’t that much complicated to fix as URLs were only thing that changed so it should be easy to hack on.

Old bookmarklet URL:

New bookmarklet URL:


Old bookmarklet code:

javascript:(function(){ var url=location.href; var url=url.replace(/^(http|https):\/\//i,'');''+encodeURIComponent(url))})();

New bookmarklet code:

javascript:(function(){ var url=location.href; var url=url.replace(/^(http|https):\/\//i,'');''+encodeURIComponent(url))})();

Voila, working bookmarklet in under 2 minutes.

Now, What About the Rest, Dude?

Now, I would find this task complete if all of these poor broken things weren’t fixed so here they are, listed as in original Ahrefs article. Also, note that you have to be logged in to Ahrefs for these to show you data.

Now, How About Some Extra?


If you’re not using them by now, I’m quite positive you’ll find them very useful and joy to use in plenty situations. Problem I encountered with them is that eventually you can end up having tens of bookmarklets laying around so my best advice is try organizing them by folders, by function they perform like SEO, Web Development, Reading and you should be good.

Great thing is that they’re synced as regular bookmarks so upon getting them, they’ll be in all your connected browsers at home and work. Yes, also on your tablet and phone too. Just instead of tapping them in browser bookmark manager, search for them in mobile browser’s address bar and they’ll fire up (well most of them will).

One of my favorite is non-SEO one, called Spritzlet by Spritz, awesome speed reading technique which gets me through pretty much all lengthy articles I have to read. Awesome productivity tool.

Do you have awesome bookmarklet to share?
Tell us in comments bellow or hit us up on social media!

Share it around

Loading Disqus Comments ...