Bellow is a simple snippet which will load valid proxies from TXT file and make them ready to be used inside UBot. Proxies are loaded to a list with name %PROXIES and whenever we want to change a proxy we just need to tell UBot which list item should be used as proxy.
When using UBot navigate command you usually want to make sure that the page you are trying to load really gets loaded, and beside that when using proxies you may also want to re-try loading the page, in case proxy was down when UBot tried to load the page or if the proxy may not work at all. So to make your software more robust you should use some checks after navigate commands, to make sure that the page you are expecting to load has actually loaded and if not, a command that will try to load it again.
In some cases you would want the URL to open in users default browser, instead of opening itself in UBot’s one, and for example that way replacing the custom HTML that you’ve generated previously.
Bellow is a simple UBot script that will open links clicked in UBot browser in users default browser. JQuery part of the code is written the way that it only applies that behavior to links that have attribute target=”_blank” set , so other links will still get opened as usual. In case that invalid URL (not starting with “http”) is passed into the command, it will return “” (blank string) without opening the default browser.