HTTPS-Everywhere Rule for Mediawiki.org
The Electronic Frontier Foundation‘s HTTPS-Everywhere is a Firefox plugin designed to help make your web surfing experience more secure by routing you to the HTTPS connections that are available for some popular websites (like Twitter and Wikipedia). The plugin also allows you to add custom rules. Here’s a rule to automatically route Wikipedia.org links opened in Firefox over to the encrypted connection available at https://secure.wikimedia.org.
<ruleset name="MediaWiki">
<target host="mediawiki.org" />
<target host="*.mediawiki.org" />
<rule from="^http://(www\.)?mediawiki\.org/(.+)"
to="https://secure.wikimedia.org/wikipedia/mediawiki/$2" />
<rule from="^http://(www\.)?mediawiki\.org"
to="https://secure.wikimedia.org/wikipedia/mediawiki/wiki" />
</ruleset>
The plugin is particularly useful in that it intercepts URLs opened by third party apps and converts them over to their secure equivalents (so long as the relevant rules have been written correctly.)
To install the script, save it as Mediawiki.xml in the HTTPSEverywhereUserRules directory of your Firefox user profile. See more detailed instructions at https://www.eff.org/https-everywhere/rulesets.