"HTTP Nowhere" is a Firefox extension that blocks all non-HTTPS requests. It doesn't try to rewrite HTTP requests to HTTPS, though.
https://addons.mozilla.org/en-US/firefox/addon/http-nowhere/
https://addons.mozilla.org/en-US/firefox/addon/http-nowhere/
The prefs.js syntax is, noscript.httpsForced "¤.cn\n¤.ru\n*.uk"
Edits: ¤ characters are asterisks.