Q: How can I undo this terminal command?
I entered the following command in terminal under the understanding that it would help me stop MacKeeper ads popping up cause it would tell youtube I was using safari but on a Windows system. Which had the unexpected result of not being able to use whatsapp web (and I guess other things) cause it tells me I should update Safari or use another browser (it didn't before and the change was immediate, it's obviously my fault for entering the command...).
defaults write com.apple.Safari CustomUserAgent "\"Mozilla/5.0 (Windows; Windows NT 6.1) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2\""
If it's any help, I post my last terminal meddling...
PEPEDJ:~ JDarJul$ defaults write com.apple.Safari CustomUserAgent "\"Mozilla/5.0 (Windows; Windows NT 6.1) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2\""
PEPEDJ:~ JDarJul$
PEPEDJ:~ JDarJul$
PEPEDJ:~ JDarJul$ defaults write com.apple.Safari CustomUserAgent "\"Mozilla/5.0 (Windows; Windows NT 6.1) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2\""
PEPEDJ:~ JDarJul$ defaults write com.apple.Safari CustomUserAgent "\"Mozilla/5.0 (Windows; Windows NT 6.1) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2\
>
> defaults write com.apple.Safari CustomUserAgent "\"Mozilla/5.0 (Windows; Windows NT 6.1) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2
-bash: syntax error near unexpected token `('
PEPEDJ:~ JDarJul$ defaults write com.apple.Safari CustomUserAgent "\"Mozilla/5.0 (Windows; Windows NT 6.1) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2\"
> "
PEPEDJ:~ JDarJul$ defaults write com.apple.Safari CustomUserAgent "\"Mozilla/5.0 (Windows; Windows NT 6.1) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2\""
PEPEDJ:~ JDarJul$
[Restaurado]
Last login: Fri Dec 18 01:54:40 on ttys000
PEPEDJ:~ JDarJul$ #defaults write com.apple.Safari CustomUserAgent "\"Mozilla/5.0 (Windows; Windows NT 6.1) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2\""
PEPEDJ:~ JDarJul$
PEPEDJ:~ JDarJul$
[Restaurado]
Last login: Fri Dec 18 01:57:22 on ttys000
PEPEDJ:~ JDarJul$
[Restaurado]
Last login: Fri Dec 18 02:00:51 on ttys000
PEPEDJ:~ JDarJul$ defaults write com.apple.Safari CustomUserAgent "\"Mozilla/5.0 (Windows; Windows NT 6.1) AppleWebKit/534.57.2 (K
> defaults delete com.apple.Safari CustomUserAgent "\"Mozilla/5.0 (Windows; Windows NT 6.1) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2\
-bash: syntax error near unexpected token `('
PEPEDJ:~ JDarJul$
PEPEDJ:~ JDarJul$ defaults delete com.apple.Safari CustomUserAgent "\"Mozilla/5.0 (Windows; Windows NT 6.1) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2\
>
> s
>
>
> defaults delete com.apple.Safari CustomUserAgent "\"Mozilla/5.0 (Windows; Windows NT 6.1) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2\""
-bash: syntax error near unexpected token `('
PEPEDJ:~ JDarJul$
MacBook Pro with Retina display, OS X Mavericks (10.9.5)
Posted on Dec 17, 2015 5:15 PM
Run the following:
defaults delete com.apple.Safari CustomUserAgent
When deleting a plist entry, you don’t need to provide a value for it.
(137294)
Posted on Dec 19, 2015 9:14 AM