[App][2.2+] Short URL Resolver

Search This thread

julianjm

Senior Member
Aug 13, 2010
78
71
Fuerteventura
Hi,

Excellent app!

Just so you know: Feedly shortens URLs under some circumstances.

It gives a you URL like this:

feedly (dot) com/e/lTWp53yG (I'm new so no URLs for me!)

which redirects to some random Techdirt article.

Would it be possible to add support for those too?


Feedly also uses those shortened URLs when sharing articles. I have no idea how Android's sharing infrastructure works, but it'd be nice to be able to "share" them with your app so they could get de-crappified. (Yeah, this would add some steps to the sharing process, but I'd rather go through a few more steps than share obfuscated URLs.)

Hi... That's some interesting feature: When you share an url with your favourite application, if it happens to be a supported short url, Short URL Resolver could advertise itself with the text "Share long url" or something... after the url is resolved, the share intent is relaunched with the long url.

What do you think? I have to check if it can be practically done.

Regarding feed(dot)ly/e/* i'll try add support for in in the next version, although a bit more work is needed. Check the redirects for your url:
1) http://feedly (dot) com/e/lTWp53yG
2) http://feedproxy (dot) google (dot) com/~r/techdirt/feed/~3/52W0A3UZKC8/story01.htm
3) http://techdirt (dot) feedsportal (dot) com/c/35345/f/661541/s/35aeba21/sc/4/l/0L(blablabla)/story01.htm?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+techdirt%2Ffeed+%28Techdirt%29
4) http://www (dot) techdirt (dot) com/articles/20131220/00300825645/when-you-give-doctors-incentives-to-get-it-right-rather-than-to-do-everything-people-get-better-care-less.shtml

Julian.
 

SkUrRiEr

Member
Jul 12, 2013
8
3
Hi... That's some interesting feature: When you share an url with your favourite application, if it happens to be a supported short url, Short URL Resolver could advertise itself with the text "Share long url" or something... after the url is resolved, the share intent is relaunched with the long url.

What do you think? I have to check if it can be practically done.

I'd rather do three steps to share a long URL than one step to share a short one, so that's exactly what I was thinking.

Regarding feed(dot)ly/e/* i'll try add support for in in the next version, although a bit more work is needed. Check the redirects for your url:
1) <http>feedly (dot) com/e/lTWp53yG
2) <http>feedproxy (dot) google (dot) com/~r/techdirt/feed/~3/52W0A3UZKC8/story01.htm
3) <http>techdirt (dot) feedsportal (dot) com/c/35345/f/661541/s/35aeba21/sc/4/l/0L(blablabla)/story01.htm?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+techdirt%2Ffeed+%28Techdirt%29
4) <http>www (dot) techdirt (dot) com/articles/20131220/00300825645/when-you-give-doctors-incentives-to-get-it-right-rather-than-to-do-everything-people-get-better-care-less.shtml

I probably chose a bad example: That link is Feedly's short version of a link from an RSS feed, and, like most of them, it uses feedproxy for stuff. It also looks like Techdirt uses another portal of it's own before redirecting to the article in question. To be quite honest, I'd be more than happy if just the first level of redirect was stripped, but it's really up to you.
 

Walter.White

Senior Member
Nov 28, 2013
1,275
2,062
Last edited:

Walter.White

Senior Member
Nov 28, 2013
1,275
2,062
Sorry for the late reply. As far as i can tell it works for link synergy.com but when i tried resolving the following url it said "error resolving"

http://redirectingat.com/rewrite.ph...tp://www.svsound.com/specials/outlet-specials

Interestingly enough the beta apk you posted can't resolve the following url but apk currently in the app store can do it just fine. Weird. I get the same error as above

http://www.jdoqocy.com/click-122526...ction-_-cables-_-na-_-na&Item=N82E16811112300
 
Last edited:

julianjm

Senior Member
Aug 13, 2010
78
71
Fuerteventura
Sorry for the late reply. As far as i can tell it works for link synergy.com but when i tried resolving the following url it said "error resolving"

http://redirectingat.com/rewrite.ph...tp://www.svsound.com/specials/outlet-specials

Interestingly enough the beta apk you posted can't resolve the following url but apk currently in the app store can do it just fine. Weird. I get the same error as above

http://www.jdoqocy.com/click-122526...ction-_-cables-_-na-_-na&Item=N82E16811112300

The first link you posted works fine here... The second fails, but I think it's because Tapatalk replaces some parts of the URL with Smilies...
-_- <-- (dash, underscore, dash) Anyway, I changed the unmask process, and now it works (even the actual URL contains <img src=..." in it)

Please download the beta on this link: https://dl.dropboxusercontent.com/u/7646923/Android/ShortURLResolver_1017Beta2.apk

I've been refactoring the code, programing a generic library for expanding/unmasking different services... Some things might break. I'll have them sorted out before updating the play store version ;)

Thanks for your help,
Julian.
 

julianjm

Senior Member
Aug 13, 2010
78
71
Fuerteventura
I'm about to upload a new version to the Play Store... Can you test it and report any problem you see?

Chagelog for 1.0.17 Beta 4:
  • Add hidden mode for background resolving (no progress dialog)
  • Removed some animations on open and launch.
  • Internal changes to ease adding more services. Email me if you want support for new services.
  • Added click.linksynergy.com and redirectingat.com services

You can get the APK here. It's signed with the same key, so it should update your current version just fine:
https://dl.dropboxusercontent.com/u/7646923/Android/ShortURLResolver_1017Beta4.apk

Thanks!
 

Muscleduck

Senior Member
Jun 9, 2012
93
18
Gent
Hey. I live the app, but could you add support for po.st links? I can't open anything George Takei posts on FB because of Adaway. Not sure if support for po.st will actually present this, I guess I could also just add it to the whitelist.
 

julianjm

Senior Member
Aug 13, 2010
78
71
Fuerteventura
Hey. I live the app, but could you add support for po.st links? I can't open anything George Takei posts on FB because of Adaway. Not sure if support for po.st will actually present this, I guess I could also just add it to the whitelist.

Hello!
po.st links are already supported. I've updated the apk in the OP (version 1.0.20), in case you don't use the Play Store version.
Doesn't the following link work for you? http://po.st/eczded

Julian.
 

rishabh56

Senior Member
Apr 21, 2013
259
78
If I untick sent anyltics and then exit the app and try to restart the app the option is already ticked? Any solutions
 

julianjm

Senior Member
Aug 13, 2010
78
71
Fuerteventura
If I untick sent anyltics and then exit the app and try to restart the app the option is already ticked? Any solutions

Same issue...
Moreover even if the link from OP is quickly solved, YouTube is not available in the popup to follow the link. Crappalinks is very useful for these situations.

Sorry, i've not been following this thread... It happens on my phone too (lollipop). Haven't checked since I implemented it. For your information, only the short url service is tracked (po.st, bit.ly), not full urls. Anyway, a non working opt-out is not good :(

Julian.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 40
    Short URL Resolver handles the short URLs typically used in social networks: t.co, goo.gl, bit.ly, etc.

    Why would you need a (big) web browser to open a Youtube video. Click this link on your Android phone: Video (Then try again after installing this app to see the difference).

    Sure, there are other apps that do this, but I think mine has unique features:
    • Doesn't get in the way: It's small (~200kb). Minimal user interface. Does exactly 1 thing and does it right.
    • Handles Facebook's external links. Tired of launching the browser to open a m.facebook.com?l.php URL? No more.
    • Handles Youtube's attribution links. These should be handled by the Youtube app (Google's fault). Short URL Resolver handles them for you, so you get to see the video on the Youtube app. No browser involved.
    • Handles Tapatalk api click links.
    • Handles Google.com/url links. They are used in the Play Store descriptions, for example.

    Also, it's free, and ad-free. You can make an in-app donation if you feel it's worth it.
    It doesn't use any third party service for resolving the URLs. The basic principle is making an HTTP request and determining where it's being redirected.

    It's my first public Android App, but I think it's the best of its kind :cool: (you can try and prove me wrong X-D)

    Download



    I'm also attaching the latest version to this post, for those that can't access the Google Play Store.
    5
    How does this compare to CrappaLinks. I know that this one doesn't require root/xposed...But my question is what benefits/advantage does this offer over CrappaLinks for people who are already rooted and have xposed??

    I'm the author of CrappaLinks. If you're already using CrappaLinks: you can use it for apps that may not be supported by CrappaLinks, or use it for shortened URLs (as CrappaLinks doesn't unshorten URLs yet.) It's also useful if you come across a shortened/masked link in a document or similar.
    CrappaLinks removes masking from *specific* apps that mask your links. This app can be used anywhere for unmasking *and* unshortening.

    I personally use it alongside CrappaLinks, for the reasons I've mentioned above.
    2
    I'm about to upload a new version to the Play Store... Can you test it and report any problem you see?

    Chagelog for 1.0.17 Beta 4:
    • Add hidden mode for background resolving (no progress dialog)
    • Removed some animations on open and launch.
    • Internal changes to ease adding more services. Email me if you want support for new services.
    • Added click.linksynergy.com and redirectingat.com services

    You can get the APK here. It's signed with the same key, so it should update your current version just fine:
    https://dl.dropboxusercontent.com/u/7646923/Android/ShortURLResolver_1017Beta4.apk

    Thanks!
    2

    Just installed slickdeals app (https://play.google.com/store/apps/details?id=net.slickdeals.android), but the URLs generated by the app aren't like yours... Example:
    http://slickdeals.net/?sdtrk=android&api_key_id=872706&pno=112586&lno=1

    You see the destination URL is not visible there (I have to contact their server to get it).... Also, there URL is too generic to add it to the manifest. I.e., I don't want to handle all links to slickdeals.net... just the ones that mask redirection links.
    http://slickdeals.net/click?whatever (good, I can match the /click prefix)
    http://slickdeals.ne/?whatever (bad, too generic, would catch urls that arent redirections)

    Julian.
    2
    I'm about to release next version. If anyone wants to beta test, here is the beta apk:
    https://dl.dropboxusercontent.com/u/7646923/Android/ShortURLResolver_1016Beta2.apk

    New in 1.0.16:
    • Add Arabic Language, thanks to Sulaiman Alhotan.
    • New services: v.ht, slickdeals.net, jdogocy.com, v0v.in
    • Partial support for adf(dot)ly. Only urls not obfuscated.
    • You can copy the resolved URL by clicking on it.

    Thanks!