Wikipedia (as well as other wikimedia projects) have the ability to provide connection to users using https. This feature can be very useful in places with active censorship over the internet.
This script ensures that wikipedia, and wikipedia's sister projects use the https connection.
The script works well, yet it's still the first version, and many enhancement are still possible.
If you have problem with it, drop a comment in order to try to fix out bugs.
I hope you consider it useful. If you find it interesting, I have made as well a Firefox search engine that returns wikipedia articles directly in secure http (i.e. https). Its code can be found here, and you can install it to your browser by clicking on it here.
2 comments:
You can reduce clutter in history/back by changing line 69:
location.href=fixlink(location.href);
to this line:
location.replace( fixlink(location.href) );
With the current way, the history/back button will go back to the unsecured version of the wiki on initial navigation into the wiki. But using location.replace() will replace the URL rather than adding to the history list.
meta and wikiversity aren't captured. Thank you for the script.
Post a Comment