25 brilliant bookmarklets to boost your browsing

Navigation bookmarklets

Back 2

javascript:window.history.go(-2)

Back 3

javascript:window.history.go(-3)

If you want to go back two or three pages then your browser history menu will take you there in a couple of clicks. But these bookmarklets will do it in one.

Previous Page in New Window
javascript:dOc7rB3=document.referrer.toString();if%20((dOc7rB3!='')&&(dOc7rB3.indexOf('javascript://')==-1))%20{void(window.open(document.referrer,%20'prevPage'))}%20else%20{alert('No%20previous%20page.')}
(Source: bookmarklets.com)

Going back a page just to check something can be a hassle, as you then have to step forward and reload the next page. As an alternative, use this bookmarklet to open your previous page in a new window or tab.

Duplicate Page
javascript:dT30FfN3b=new%20Date();void(window.open(location.href,'w'+dT30FfN3b.getTime()))
(Source: bookmarklets.com)

Another option is to open a new window or tab with a copy of whatever page you're viewing, so you can follow links on one and quickly return to the original page in the other.

Up
javascript:void(location.href=location.href.substring(0,location.href.substring(0,location.href.length-1).lastIndexOf('/')+1))

This bookmarklet will back you out of a lengthy URL, one directory at a time. So as you click it you'll move from www.domain.com/directory/page.html, to www.domain.com/directory, then www.domain.com (if the site allows this, anyway).

Random link
javascript:void(location.href=document.links[Math.round((document.links.length-1)*Math.random())])

If you can't decide where to go next then click here, and the bookmarklet will take you to a random link on the current page.

Robots.txt
javascript:void(location.href='http://'%20+%20location.host%20+%20'/robots.txt')

Alternatively, use our next bookmarklet to view robots.txt for the current site. This file is used to tell search engines that they shouldn't index particular areas of a site, and may point you to interesting hidden areas.

Random links

GET RANDOM: Not sure where to go next? Let the Random Link bookmark decide for you

Mike Williams
Lead security reviewer

Mike is a lead security reviewer at Future, where he stress-tests VPNs, antivirus and more to find out which services are sure to keep you safe, and which are best avoided. Mike began his career as a lead software developer in the engineering world, where his creations were used by big-name companies from Rolls Royce to British Nuclear Fuels and British Aerospace. The early PC viruses caught Mike's attention, and he developed an interest in analyzing malware, and learning the low-level technical details of how Windows and network security work under the hood.