Skip to content

Instantly share code, notes, and snippets.

@geekdada
Last active February 15, 2023 17:36
Show Gist options
  • Save geekdada/6d136126daee8811f24c2d4e79b7baa5 to your computer and use it in GitHub Desktop.
Save geekdada/6d136126daee8811f24c2d4e79b7baa5 to your computer and use it in GitHub Desktop.
;(async () => {
const headers = $request.headers
delete headers['user-agent']
delete headers['sec-ch-ua-full-version']
delete headers['sec-ch-ua-full-version-list']
headers['User-Agent'] = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.41'
headers['sec-ch-ua'] = '"Chromium";v="110", "Not A(Brand";v="24", "Microsoft Edge";v="110"'
headers['sec-ch-ua-mobile'] = '?0'
headers['sec-ch-ua-platform'] = 'macOS'
$done({ headers })
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment