If you’re like me, you’ve wanted to have the Googlebot user agent availalbe in the Develop menu of Safari.
- Go to /Applications/
- Right-click on Safari.app and select Show Package Contents
- Navigate to Contents/Resources/
- Find `UserAgents.plist`
- Open `UserAgents.plist` in your favorite text editor
- Either
- Replace with the contents of this file and continue to step 9: [download id=”12″]
- … or continue on:
- At the end of the file, find:
</array> </plist>
- Replace with:
<dict> <key>separator</key> <true/> </dict> <dict> <key>name</key> <string>Googlebot</string> <key>version</key> <string>2.1</string> <key>platform</key> <string>Googlebot</string> <key>user-agent</key> <string>Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)</string> </dict> <dict> <key>name</key> <string>Bing</string> <key>version</key> <string>2.0</string> <key>platform</key> <string>Bingbot</string> <key>user-agent</key> <string>Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)</string> </dict> </array> </plist>
- Save the file (you’ll need to type in your user password)
Voila! Now in your Safari Develop > User Agent menu, you should see `Googlebot 2.1 – Googlebot` and `Bing 2.0 – Bingbot`.
You must be logged in to post a comment.