zhanghai / Untracker

App to help you remove tracking information before sharing links

Home Page:https://play.google.com/store/apps/details?id=me.zhanghai.android.untracker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not a function

jc-wood opened this issue · comments

Screenshot_20240103-095009.png

I wrote a filter for tiktok URLs. It was working for quite a while and then it just randomly broke. I haven't changed the script and the app hasn't been updated. Not sure what the issue is.

Scripts are as follows:

if ($.matches(url, '(www\\.)?tiktok\\.com')) {
    return $.followRedirect(url);
}
if ($.matches(url, '(www\\.)?tiktok\\.com')) {
    return $.setEncodedQuery(url, null);
}

I think your app has been updated where I removed the followRedirect function. You can check the updated built-in short link rule for how to use the new $.fetch which is more generic and I plan to maintain compatibility for.