Set Browser Property
From UBot Studio
(Difference between revisions)
(Created page with "Set Browser Property is a Settings Command. This command sets the browser property of the internal browser. This includes display properties such as nav...") |
(→Example) |
||
| Line 5: | Line 5: | ||
== Example == | == Example == | ||
| + | <pre> | ||
| + | set browser property("navigator.language", "zh-cn") | ||
| + | navigate("http://www.whatismyip.com/", "Wait") | ||
| + | </pre> | ||
| + | |||
| + | Running the script will set the navigator.language to Chinese (PRC). Any website that checks for the property will find the specified language property. | ||
| + | |||
| + | [[File:setbrowserproperty.png]] | ||
Revision as of 20:22, 8 December 2012
Set Browser Property is a Settings Command.
This command sets the browser property of the internal browser. This includes display properties such as navigator language, screen height and screen width.
Example
set browser property("navigator.language", "zh-cn")
navigate("http://www.whatismyip.com/", "Wait")
Running the script will set the navigator.language to Chinese (PRC). Any website that checks for the property will find the specified language property.