grahams / safari-utm-stripper

Safari extension that strips Google Analytics (i.e. Urchin Traffic Monitor) tokens from URL query strings.
https://safari-extensions.apple.com/details/?id=com.dosburros.safari-utm-stripper-J3Q79T636D
48 stars 6 forks source link

Alternatives? #11

Open mcg opened 4 years ago

mcg commented 4 years ago

I fully realize this project is dead, but have been searching for anything that will strip these tokens in Safari and have come up empty. Does anyone know of a solution that works with current Safari?

kiliankoe commented 4 years ago

The app StopTheMadness (AppStore Link) does this, including many other useful things. At least supposedly, it isn't working for me for a quick test atm (but other features are). Sorry for the apparently not very helpful response, but at least it should be working, maybe it does for you.

grahams commented 4 years ago

@kiliankoe thanks for the tip... years ago when Apple first began hinting that the old mechanism was going to be killed, I spent some time trying to make an App Extension version of this plugin. At the time, the beforeNavigate event that I use in my extension wasn't available in the App Extension API. I tried some of the alternative events but none behaved quite right.

It's very possible that they've improved the App Extension API in the intervening years (or someone else had a completely different solution...) I kept meaning to circle back around and pick up where I left off but I never had. Glad to hear that hopefully some alternatives are available.

mcg commented 4 years ago

I'd hate to pay $9 for StopTheMadness and find out it doesn't work, ugh.... This really seems like something AdGuard for Safari could do, if it is even possible now.

kiliankoe commented 4 years ago

After contacting the developers it should be working fine, but my test case was the issue, since it was being redirected first.

StopTheMadness can remove parameters from clicked links, but Safari doesn't allow extensions to handle redirects.

Just FYI.

Sh1d0w commented 4 years ago

Hi I've created similar extension for my personal use, which I plan to expand and maintain and also made open source.

You are more than welcome to try it and leave some feedback.

https://github.com/Sh1d0w/clean-links

I also have some nice features planned and will implement them very soon.

mcg commented 4 years ago

@Sh1d0w Thanks for sharing. I'll check it out.