https://github.com/ryanseddon/sux
SUX.js a little JavaScript helper to expand short URLs
https://github.com/ryanseddon/sux
Last synced: about 1 month ago
JSON representation
SUX.js a little JavaScript helper to expand short URLs
- Host: GitHub
- URL: https://github.com/ryanseddon/sux
- Owner: ryanseddon
- Created: 2010-10-05T04:54:59.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-01-22T05:50:11.000Z (over 13 years ago)
- Last Synced: 2025-04-11T12:21:29.522Z (about 1 month ago)
- Language: JavaScript
- Homepage: http://ryanseddon.github.com/SUX/
- Size: 109 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
SUX: Short URL eXpander
=======================### SUX.js a little JavaScript helper to expand short URLs
Using this little library you can pass one or more short URLs and get the expanded URL returned. Works on any short URL, even those weird ones nobody really uses.
### Give it too me in technical terms, I can take it
SUX.js uses YQL to do server side GET requests so we can access response headers and return the expanded URL location. No need to deal with multiple API's.
### Example
SUX.expand(["http://goo.gl/V77S","http://ow.ly/2MKSU","http://bit.ly/bKIvIF"]);
This will return the full URLs and execute the `SUX.callback` method which returns the array of long URLs. You can pass a second argument to specify a function name for a different callback method.
SUX.expand(["http://goo.gl/V77S","http://ow.ly/2MKSU","http://bit.ly/bKIvIF"],"doSomethingWithLongURLs");
See live example: http://ryanseddon.github.com/SUX/
#### Bookmarklet
Still working on it