Difference between revisions of "WebKit UserAgent Override"

From WebOS Internals
Jump to navigation Jump to search
(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...")
 
Line 1: Line 1:
  
== What It Is and Does ==
+
== What It Is and What It Does ==
 
The user-agent override is a feature that allows one to do a wholesale replacement of the user-agent.
 
The user-agent override is a feature that allows one to do a wholesale replacement of the user-agent.
  
Line 16: Line 16:
 
...
 
...
 
</nowiki></pre>
 
</nowiki></pre>
 +
 +
== Ok, great, but this overrides LunaSysMgr, right? ==
 +
Nope! LunaSysMgr uses a separate instance of WebKit with different preferences.

Revision as of 20:52, 2 July 2012

What It Is and What It 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
...

Ok, great, but this overrides LunaSysMgr, right?

Nope! LunaSysMgr uses a separate instance of WebKit with different preferences.