SafeUrl is a simple script that converts all external links of your safesite between the safe protocol (safe://xxx.yyyy) and the http protocol (http://xxx.yyyy.safenet) depending on which browser you are using.
How it works
- Add the script safe_url.js to all your web pages that contains links to convert (note: relative links don’t need to be converted).
- Add the css class “safe_url” to the links you want converted.
That’s it, your safesite is now compatible for the Safe browser and other browser (tested Chrome and Firefox). Here’s a live example on Alpha.
You can also call the function convert_to_http_protocol(url) and convert_to_safe_protocol(url) manually if you need to do it dynamically.
Now a bit of self-promotion. I setup a github account where I uploaded all my projects, feel free to clone / push request / fork any of it.