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»
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»