It's available as a button to insert into any page eg Blogger, but it's especially handy for micro-blogging services like Twitter. You can also get it as a bookmarklet for when you're browsing around and come across a mysterious TinyURL.
The hack works by using Dapper to grab the URL from the TinyURL preview page and munging the resulting JSON object with regular expressions.
I cobbled this together as part of another project on URL manipulation and tagging, but thought it might be useful enough to release on its own. There's no reason why this approach couldn't be applied to other common-yet-cryptic URLs, like YouTube, so watch this space.
Any other suggestions, feedback, bug reports etc? Please leave a comment.
Filed in: webtech, hacks, tinyURL, bookmarklets
Seriously though, there's a welter of competing services. I don't think I've ever seen one "in the wild" that isn't TinyURL. Maybe I'm not visiting the right pages, but I think we've got a classic first-adopter scenario whereby they garner 90% of marketshare.
Still, the basic Embiggen approach can be very readily re-purposed by those with sufficient interest thanks to the Creative Commons licensing. (And, of course, the unusually good code comments!)
So steps one and two in your case would be something like this -- and then supply "Embiggen.dapperCallback" for Dapper, instead of "procURL". (The junk on the last line is to keep your current config style, if you want to remain compatible with it.)
$x('//div[@class="OnePost"][div/div/div[@class="PermFooterPost" and not(contains(.,"by Greg"))]]').map(function(d){d.style.display="none"})
:-)
I've seen this approach before from del.icio.us and the benefits of encapsulation struck me immediately. The explanation provided on the YUI blog is great!
Want a serious help from u . I recently updated my template but it showed slow loading time . I tweaked it a bit by removing HTML images and all and time improved but still it is quite slow . I knw the theme is heavy , but still if u can tweak it for me would be gr8 . Pls help me out ...
I can mail u my XML , if u agree ... Waiting in anticipation .
http://karenerickson.blogspot.com/
What did I do? How do I fix this?
But it would be nice, if also TinyURLs, that aren't formated as links (plain text) would be expanded.
I'm thinking of adding other url redirection services, but I'm not sure where I should focus my efforts.
Which services should I target?
It would be very great, if you could implement plain text url expansion into the bookmarklet in the next time. Because I know some news pages, where urls will not be formated after posting them there.
>I'm thinking of adding other url >redirection services, but I'm not >sure where I should focus my >efforts.
>Which services should I target?
That's a good question.
I never thought, that there could so many other redirection services exist. It would make sense to add the more popular ones (yeah, great proposition, I know :) )
Sadly, I don't know any of the listed services on that page. Only TinyURL.
Maybe it could help to make a poll anywhere.
Btw: Would it also be possible to implement a function, that all expanded urls will be displayed in their redirection-url form again by a second click on the Bookmarklet? It would be helpful and more comfortable in my eyes, if this would be possible. To have to reload a page to see a site in its unchanged form is a little bit annoying sometimes.
Thank you! :)
Thanks