Tag Archives: URL

SNIPPET: OPEN URL IN DEFAULT BROWSER

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.

SNIPPET & TEST CODE (UBOT AND JQUERY):

Continue reading «SNIPPET: OPEN URL IN DEFAULT BROWSER»

FREE PLUGIN: URI Encode/Decode

URI Encode/DecodeURI Encode/Decode plugin will help you to Encode/Decode parts of URLs faster, without workaround. Currently we had to use JavaScript functions to be able to perfom such encoding/decoding, but now this plugin allows you to do that right inside UBot, with native UBot function.

This type of encoding/decoding is used when  information is transferred through URL parameters. Replacements are made so that valid URLs are maintained (parameter value that contains (decoded) “&” would mean the end of value for that parameter) and information isn’t changed during the transfer (space ” ” could be treated as “+” if not escaped properly).

Continue reading «FREE PLUGIN: URI Encode/Decode»