Uppity: An 'up' button for the web
2004-12-26 10:44 - Bookmarklets
Many moons ago when I switched from IE to Firefox, one thing I missed was the great up button in the google toolbar. I simply lived without it for a long time.
Then, one day, I discovered the wonderful Up bookmarklet. It was very simple, but it got the job done! It's enhanced my browsing by quite a bit. But it was not enough! So I created my own. I've taken the wonderful '.' and '..' tricks from it and added a bit more. It does the following:
- If you are at an in-page anchor, you go to the top of the page.
- If you are at a page with a querystring, it removes the querystring.
- If you are at a page, you go to the directory the page is in.
- If you are at a directory, you go to the directory it is in.
- If you are at the root of the server, the www (for http) or the ftp (for ftp) is removed from the host name.
- If none of the above, nothing.
Isn't that fantastic?!