goo.gl with prompt for copying Bookmarklet

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

This version is no longer working.

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

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

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/


Far too popular..

Good while it lasted.

I think I'll look at your code to see if I can develop something on my own that is less likely to be ruined by it's own popularity. ;)

Thanks for the head-start and good luck!


Chris

Was working fine in both Chrome and Firefox 4 Beta 6, but suddenly stopped working altogether in both (as of 11/18/10). Deleted both, reapplied, still not working.


Chris

Well, as of today (11.19.10), I reinstalled in FF 4 Beta 7, and it's working again. Also in Chrome.


SavantTools

This bookmarklet may work on and and off. The problem is that it relies on a free Google apps account and the quota is usually exceeded. It is a victim of its own success.

A solution is this alternative bookmarklet: http://marklets.com/goo.gl.aspx

It may not be as elegant (you must leave the current page), but it doesn't suffer from any limitations.