Snippet: Quickly Shorten Links from Address Bar

With so many blogs and websites floating around on my address bar everyday, I find myself sending more and more “shortened” URLs to my friends. Generally the process is a bit of a pain as I have to first I have to copy the URL from the address bar, then I need to go to a URL shortening website (such as bit.ly), then I need to paste the URL into the input field and finally I receive a shortened URL.

To cut down on all these steps, all you have to do is type in “bit.ly/” or “j.mp/” before the URL in the address bar.

So, for example if the URL is “http://twitter.com” you would type in “bit.ly/http://twitter.com” or “j.mp/http://twitter.com”.

chrome - address_bar

Then hit the Enter key.

Depending on whether you used “bit.ly/” or “j.mp/” you will be taken to the respective page from where you can copy the shortened URL.

bit.ly - shortened

j.mp - shortened

That’s it! You are now free to share the shortened URL.

Snippet is a short tip/trick or just a quick fix for a certain issue that we discover from time to time. Don’t forget to subscribe to our RSS feed for more up to date tutorials/tips/tricks.

4 comments

  1. I have created a bookmark for bit.ly which takes care of the url shortner onnce I click on this bookmark. Say if I want to shorten an URL of a website, I only have to click on this bookmark.

    You can create a new bookmark and give its location as this

    javascript:var%20d=document,w=window,enc=encodeURIComponent,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),s2=((s.toString()=='')?s:('%22'+enc(s)+'%22')),f='http://bit.ly/',l=d.location,p='?v=3&u='+enc(l.href)%20+'&s='+enc(d.title)+'%20'+s2,u=f+p;try{if(!/^(.*.)?tumblrzzz[^.]*$/.test(l.host))throw(0);tstbklt();}catch(z){a%20=function(){if(!w.open(u))l.href=u;};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();}void(0)

    Their is no need to type anything. This will open a new tab or window and take you to bit.ly site.

  2. Thanks for that, bookmarklet is very helpful.

    However, I find the tip highlighted in the article handy if I'm on a computer that is not my own (and hence don't have the bookmarklet saved).

Comments are closed.

Sponsored Stories