goo.gl bookmarklet Bookmarklet

=============== UPDATE ===============

This version is no longer working.

Here is a working version: http://marklets.com/goo.gl.aspx

=======================================

Use the new goo.gl service without installing a two megabyte toolbar. Simply click the
bookmarklet when you're on the page you want to shorten. This uses my gateway for the service, http://ggl-shortener.appspot.com/ .

Source (www.prism.gatech.edu)


Download Bookmarklet:


View Bookmarklet Code:

Bookmarklet Source Code:

javascript%3Awindow.googl_callback%3Dfunction%28response%29%7Bif%28response.error_message%29%7Balert%28%22An%20error%20occured%3A%20%22+response.error_message%29%3B%7Delse%7Balert%28response.short_url%29%3B%7D%7D%3Bvar%20s%3Ddocument.createElement%28%22script%22%29%3Bs.src%3D%22http%3A//ggl-shortener.appspot.com/%3Furl%3D%22+encodeURIComponent%28window.location.href%29+%22%26jsonp%3Dgoogl_callback%22%3Bvoid%28document.body.appendChild%28s%29%29%3B


Rate it:


Tags:

Comments

Comments so far. Add yours.

mattflaschen

In my initial version, I forgot to wrap window.location.href in encodeURIComponent . This is fixed in the version at the Source link, but not here.


brentrjones

works in Firefox, not in Chrome latest dev build brent[at]brentjones.org


mattflaschen

It works in my Chrome 4.0.242.0 on Kubuntu. Also, this review ( http://blog.arpitnext.com/2009/12/bookmarklet-for-googl-short-url-firefox-opera-chrome-internet-explorer.html ) says it works in Chrome . Also, the version here now includes the encodeURIComponent .


clifnotes

Hi Matt, what do you think of Keith's comment at Techie-Buzz.com ( http://bit.ly/8X81yM )


mattflaschen

Many browsers do allow you to copy the URL from the alert box. However, the prompt option is a good idea, and I've made another bookmarklet ( http://www.marklets.com/Bookmarklets/goo.gl+with+prompt+for+copying.aspx ) along that line.


rezard18

http://www.lifehacker.jp/2010/01/googlegoogl_url.html


Bcallahan

I can't highlight the resulting url. This is important because I then cannot copy it with a ctrl+c and then paste it someone where else. Am I missing something?


mc

Bcallahan - just replace alert(response.short_url) in the bookmarklet with prompt("Here%20you%20go",response.short_url) and its good for copy and pasting!


optical10

Will this work in opera browser? Thank you


Name...

http://px.a8.net/svt/ejp?a8mat=1NM432+1DEZZM+O9W+BW8O2&a8ejpredirect=http%3A%2F%2Fwww.internal.co.jp%2Fproducts%2Futil%2Fmoviegrabber%2Fabout%2F


http://i.listen.jp/st/sp/sp/summerfes2010/

Comment...


summer fes jp 2010

http://i.listen.jp/st/sp/sp/summerfes2010/


Mohini

Though goo.gl is a nice URL shortener but i like Exattosoft Go much that is - go.exattosoft.com


Hafis

I have blogger about it.
http://goo.gl/2uzv


Timothy

Has your gateway been disabled? The bookmarklet no longer works.


Tom

You're right. I get:
error_message:"Quota exceeded"

Might need to give it time? Sounds like it's pretty popular.


Whimsy Collective

It's down!


Whimsy Collective

It's working again!


Name...

the appspot page is out of bandwidth!


Corey

This is not working for me. When i click it, it does nothing.


Jamie

It's not working!