zhanghai/Untracker

Not a function

jc-wood opened this issue · 2 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.