Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Double Back Bookmarklet

16 Mar 2010   #1

Windows 7 32 bit
 
 
Double Back Bookmarklet

There are all kinds of doodads available for Firefox, which is what I use. But I could never find a "back button" that would back up 2 pages with one click. They either backed up one page with a left click, or you had to right click to get a menu to choose where you wanted to go back to. In that case if you only wanted to go back 2 pages you still had to click twice. Either left click twice, or right click and select. 2 clicks.

To soothe my nerves I made a Bookmarklet called Double Back and put it on my personal bookmarks toolbar. You left click it. If there isn't enough history to go back 2 pages it only tries to go back 1, to avoid clicking it for nothing. Otherwise it goes back 2.

Since it's a javascript thingy it won't function if NoScript is blocking, but since you probably allowed the current page in NoScript, it should work the vast majority of the time.

Just make a bookmark on your bookmarks toolbar. I named it Double Back but it's up to you what you want to call it. Past this line into the Location:

javascript:N=history.length;if(N==2){history.go(-1)}else{history.go(-2)}

That's it. Of course you must have JavaScript enabled for your Firefox or nothing happens. It should work on other browsers also but I have only verified the behavior on Firefox. If the page it returns to seems to be "off by 1" all the time, chances are the way the browser calculates it's history is different. Just play with the numbers and you may be able to tune it in.




Name:  3dok.gif
Views: 70
Size:  18.6 KB



My System SpecsSystem Spec
.

Reply

 Double Back Bookmarklet




Thread Tools




Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 07:32 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33