#!name=TikTok(日本解锁)
#!desc=最后更新时间 2021-04-17 00:16:07
#!author=Semporia
#!repo=https://github.com/Semporia/TikTok-Unlock
#!rewrite=4
#!script=0
#!force_http_engine_hosts=0
#!mitm=3

[URL Rewrite]
(?<=&mcc_mnc=)4 2 307
(?<=_region=)CN(?=&) JP 307
(^https?:\/\/*\.\w{4}okv.com\/.+&.+)(\d{2}\.3\.\d)(.+) $118.0$3 302
^(https?:\/\/(tnc|dm)[\w-]+\.\w+\.com\/.+)(\?)(.+) $1$3 302

[MITM]
hostname = %APPEND% *.byteoversea.com,*.tik-tokapi.com,*.tiktokv.com