Set Browser Property
From UBot Studio
(Difference between revisions)
m (Removed protection from "Set Browser Property") |
|||
(7 intermediate revisions by one user not shown) | |||
Line 2: | Line 2: | ||
This command sets the browser property of the internal browser. This includes display properties such as navigator language, screen height and screen width. | This command sets the browser property of the internal browser. This includes display properties such as navigator language, screen height and screen width. | ||
+ | |||
+ | '''Setting:''' The browser property being set in the specified browser. | ||
+ | |||
+ | '''New Value:''' The new value being given the the specified property. | ||
+ | |||
+ | |||
+ | |||
+ | '''The command is currently unavailable as we improve its performance.''' | ||
Line 9: | Line 17: | ||
navigate("http://www.whatismyip.com/", "Wait") | navigate("http://www.whatismyip.com/", "Wait") | ||
</pre> | </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. | 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: | + | |
+ | [[File:browserprop.jpg]] |
Latest revision as of 18:58, 5 October 2014
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.
Setting: The browser property being set in the specified browser.
New Value: The new value being given the the specified property.
The command is currently unavailable as we improve its performance.
[edit] 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.