Twitter and FriendFeed Short URL Expander

By jadi Last update Feb 10, 2009 — Installed 3,715 times.

Thanks for it,could you...

in
Subscribe to Thanks for it,could you... 8 posts, 3 voices



dupola Scriptwright

Hi Jadi,

Thanks for your hard working,that's very good.Would add more liked service? As you said in the content,snipurl,is.gd,etc.
I think you needn't add too many services,you just add the services which is very popular.

Then,would add the feature to the next version:do not expand the original urls on the web pages,just expand it when the mouse hover the tinyurl link.
Just like this script:http://userscripts.org/scripts/show/8918

thanks.
dupola
http://dupola.com

 
jadi Script's Author

Added a couple more: is.gd and zz.gd...

 
dupola Scriptwright

thanks a lot.

Would add snipr.com too?

By the way,the script only include http://*.twitter.com,please include https://twitter.com by default too.

Then,can I include all pages? I've set it to include *.

thanks.

 
jadi Script's Author

added some more domains and added snipr.com too...

 
dupola Scriptwright

many thanks.
I'm going to install it again,hmm,update.

 
dupola Scriptwright

Hi Jadi,I see you add http://*twitter.com/* and https://*twitter.com/*,did you mean http://*.twitter.com/* and https://*.twitter.com/*?

I think it may be *.twitter.com...

 
Null man Scriptwright

Could you add ow.ly ?

and bit.ly doesn't seem to be working for me.

 
Null man Scriptwright

Update: Bit.ly works. Bitly.com does not.

Here is the replacement code for Bit.ly. It adds functionality to check bitly.com

Replace:

} else if (bitly_apiKey && bitly_login &&
/http:\/\/bit\.ly/.test(link.href) &&
/http:\/\/bitly\.ly/.test(linkText.nodeValue)){
expand( link, bitly_url+link.href, url_from_bitly_response );
}

With:


} else if (bitly_apiKey && bitly_login &&
/http:\/\/bit(\.ly|ly\.com)/.test(link.href) &&
/http:\/\/bit(\.ly|ly\.com)/.test(linkText.nodeValue)){
expand( link, bitly_url+link.href, url_from_bitly_response );
}

The key change is: bit\.ly --> bit(\.ly | ly\.com)

Still looking forward to ow.ly support. I looked around and couldn't find any word of any way to expand URLs.