# NAME: TikTok(美国解锁)
# AUTHOR: Semporia
# REPO: https://github.com/Semporia/TikTok-Unlock
# UPDATED: 2021-04-17 00:16:07
# REWRITE: 4
# SCRIPT: 0
# MITM: 3

[URL Rewrite]
(?<=&mcc_mnc=)4 2 307
(?<=_region=)CN(?=&) US 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 = *.byteoversea.com,*.tik-tokapi.com,*.tiktokv.com