WebKit UserAgent Override

From WebOS Internals
Revision as of 20:50, 2 July 2012 by Dkirker (talk | contribs) (Created page with " == What It Is and Does == The user-agent override is a feature that allows one to do a wholesale replacement of the user-agent. == How to Override the User-Agent == The Browser...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

What It Is and Does

The user-agent override is a feature that allows one to do a wholesale replacement of the user-agent.

How to Override the User-Agent

The BrowserServer loads an instance of WebKit that uses the /etc/palm/browser.conf configuration file.

To change the User-Agent, you need to edit this (/etc/palm/browser.conf) file, with the proper token.

Under the "[General]" section, you will need to add the "UserAgentOverride" key. An example is below:

[General]
...
UserAgentOverride=Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120427 Firefox/15.0a1
...