Logo Help Center

Elvis 4 action plug-ins setting - userAgents

Elvis 4 action plug-ins setting - userAgents

(6) Optional setting

Platform specific user agent used when loading the url in a tab or dialog. Replaces the default AIR user agent. It can be useful to use a specific userAgent when you're loading an external website which is not working correctly with the default AIR user agent.

<action>
    <userAgents>...</userAgents>
</action>

Examples

Define a userAgent for Mac OS X

<userAgents>
    <userAgentMacOSX>Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0.2) Gecko/20100101 Firefox/6.0.2</userAgent>
</userAgents>

Define a userAgent for Windows

<userAgents>
    <userAgentWindows>Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)</userAgentWindows>
</userAgents>

Define a userAgent for Mac OS X and Windows

<userAgents>
    <userAgentMacOSX>Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.186 Safari/535.1</userAgentMacOSX>
    <userAgentWindows>Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.186 Safari/535.1</userAgentWindows>
</userAgents>
Was this article helpful?
0 out of 0 found this helpful / Created: / Updated:
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.