Update User-Agent to match chromium version, ref: #15 (#28)

This commit is contained in:
Alexandre Beloin 2020-12-14 03:09:18 -05:00 committed by GitHub
parent d4d7b93d7e
commit 7ca880da7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,7 @@ type OverridesProps =
'headers' 'headers'
// We always set a Windows User-Agent because ARM builds are detected by CloudFlare // We always set a Windows User-Agent because ARM builds are detected by CloudFlare
const DEFAULT_USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36" const DEFAULT_USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36"
const CHALLENGE_SELECTORS = ['#trk_jschal_js', '.ray_id', '.attack-box'] const CHALLENGE_SELECTORS = ['#trk_jschal_js', '.ray_id', '.attack-box']
const TOKEN_INPUT_NAMES = ['g-recaptcha-response', 'h-captcha-response'] const TOKEN_INPUT_NAMES = ['g-recaptcha-response', 'h-captcha-response']