Fast link shortening by bit.ly

    Seeing a convenient bookmarklet for goo.gl, I decided to modify it for the bit.ly service, since many use this service.

    Everything is similar, create a bookmark and copy the following code into its URL address:

    javascript:window.bitly_callback = function(response){;if(response.errorCode){alert("An error occured: " + response.errorMessage);}else{prompt('', response.results[window.location.href].shortCNAMEUrl);}}; var s = document.createElement("script"); s.src = "http://api.bit.ly/shorten?version=2.0.1&longUrl=" + encodeURIComponent(window.location.href) + "&login=bitlyapidemo&apiKey=R_0da49e0a9118ff35f52f629d2d71bf07&callback=bitly_callback"; void(document.body.appendChild(s));


    Next, on the page whose URL you want to shorten - click on this bookmarklet and get a shortened



    UPD link : the Payne habrayuzer gave a link to two more advanced official bookmarklets for bit.ly


    Also popular now: