goo.gl with prompt for copying Bookmarklet

This is an alternative to my other goo.gl bookmarklet, which uses an alert box. This one uses a prompt dialog instead, which may make it easier to copy the URL.

See also my goo.gl Firefox extension, which copies the URL directly to your clipboard at the touch of a button.

You can use my API to develop your own software.

Source (www.prism.gatech.edu)


Download Bookmarklet:


View Bookmarklet Code:

Bookmarklet Source Code:

javascript%3Awindow.googl_prompt_bookmarklet_callback%3Dfunction%28response%29%7Bif%28response.error_message%29%7Balert%28%22An%20error%20occured%3A%20%22+response.error_message%29%3B%7Delse%7Bprompt%28%22Copy%20the%20URL%2C%20then%20press%20Enter.%22%2Cresponse.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_prompt_bookmarklet_callback%22%3Bvoid%28document.body.appendChild%28s%29%29%3B


Rate it:


Tags:

Comments

Comments so far. Add yours.

clifnotes

Hi Matthew - I've updated my blog post ( http://goo.gl/rZg1 ) to show this new bookmarklet - Thanks for the fix - It works in my Iron Chrome browser now, previously it did not.


Stacy

Abruptly stopped working for me in both Chrome and Iron. The alert-box goo.gl bookmarklet still works though.


Stacy

This is as of 7/11/2010, by the way.


Stacy

On second thought, even the alert box one has stopped working on any page except this one.


Tom

I get:
error_message:"Quota exceeded"

Sounds like it's too popular?

Might not be a bad idea to email Matt over at http://ggl-shortener.appspot.com/instructions/