Created
February 2, 2017 21:51
-
-
Save james-see/9b62fb8b55629d4add572818eefa818c to your computer and use it in GitHub Desktop.
redirect to onion if possible
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type="text/javascript"> var onion = 'https://dua6u3dsufohrnsz.onion'; var query = new XMLHttpRequest(); if (window.location.protocol + "//" + window.location.hostname != onion) { query.onload = function(e) { if (query.status != 200) return else { window.location.assign(onion + window.location.pathname); } }; query.timeout = 5000; query.open('HEAD', onion, true); query.send(); }; </script> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment