Hacker News new | ask | show | jobs
by ehsankia 1868 days ago
> I have an iOS shortcut that expands the URL and chops off the gross tracking stuff

Ooo, that's pretty neat. I wonder if something similar can be achieved on Android. I usually manually paste it in chrome and copy the redirect, although I also enable desktop view to not get the mobile link.

1 comments

You might want to look at some basic Android automation tools. I'm pretty sure I've seen some before but I don't know any off the top of my head. It was really simple to write the iOS Shortcut, all I did was:

* Accept a URL as input

* Expand the URL to the full link

* Find the "?" in the new url and snip everything after and including it.

Originally I looked for ".html?" but some TikTok links don't have the ".html" anymore so I had to switch to just "?". Tasker for Android [0] might be what you are looking for but I can't be sure. You might want to ask on the subreddit [1] for help or search there for something similar.

[0] https://play.google.com/store/apps/details?id=net.dinglisch....

[1] https://www.reddit.com/r/tasker/

I didn't realize iOS shortcuts were so powerful, that's awesome. I do believe tasker should be able to do it, thanks!