Skip to main content
Question

Custom User Agent

  • March 3, 2022
  • 0 replies
  • 5 views

Forum|alt.badge.img+1

I am trying to set a custom user agent script to force safari to set itself in a customer way.

The current code that I am attempting to run in terminal on an intel based Macbook Pro running Big Sur is:

defaults write com.apple.Safari setCustomUserAgent "Mozilla/5.0 ('Macintosh; Intel Mac OS X 11.6.4') AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Safari/605.1.15: ASSET"

When executing that code all that returns in 

zsh: parse error near `)'

Any suggestions?