Page 1 of 1
Seeking addon: Default HTTPS from address bar?
Posted: Fri Jan 24, 2014 1:43 am
by Thrawn
Hi, all.
If you type a domain name in the address bar, Firefox will add http:// for you. If you want HTTPS, you have to type it in full.
Has anyone heard of an addon that could reverse this behavior, so https:// gets added unless you specify HTTP?
It wouldn't be for everyone, of course, but it could be a really simple way to get most of the benefits of HTTPS Everywhere, HTTPS Finder, HSTS preloading, etc, without breaking sites or spending bandwidth on probing them.
I'd imagine it wouldn't be too complicated to build.
Re: Seeking addon: Default HTTPS from address bar?
Posted: Fri Jan 24, 2014 10:59 am
by Hecuba's daughter
nvm
Re: Seeking addon: Default HTTPS from address bar?
Posted: Fri Jan 24, 2014 3:02 pm
by barbaz
You might be able to make such an extension by modifying URL Fixer to look for typed scheme, and if there isn't one, prepend "https://" to the typed URL?
Re: Seeking addon: Default HTTPS from address bar?
Posted: Sat Jan 25, 2014 11:33 am
by Hecuba's daughter
nvm
Re: Seeking addon: Default HTTPS from address bar?
Posted: Mon Jan 27, 2014 2:17 am
by Thrawn
barbaz wrote:You might be able to make such an extension by modifying URL Fixer to look for typed scheme, and if there isn't one, prepend "https://" to the typed URL?
I had high hopes for its out-of-the-box functionality, but unfortunately it only seems to read hostnames

Re: Seeking addon: Default HTTPS from address bar?
Posted: Mon Jan 27, 2014 2:28 am
by barbaz
Thrawn wrote:unfortunately it only seems to read hostnames

Nope
It actually reads everything, strips down the typed URL to a hostname, does its thing, then pieces the URL back together. It should be possible to make it mess with protocols instead.
(If the latest URL Fixer doesn't work like that, take a look at version 4.0.1)
Re: Seeking addon: Default HTTPS from address bar?
Posted: Mon Jan 27, 2014 5:15 am
by Thrawn
Well, when I tried matching
replace with
it matched this site and changed the URL to http://https://forums.informaction.com
Yet www.example.com was correctly changed to https://www.example.com
And www.google.com.au becomes https://https://www.google.com.au
According to Wladimir, it's really only for hostnames

Re: Seeking addon: Default HTTPS from address bar?
Posted: Mon Jan 27, 2014 3:02 pm
by barbaz
Oh... sorry about the misunderstanding.
I don't know any add-on that will do what you want OOB. But I thought that editing URL Fixer's XPI might achieve that.
If you decide to try, you'll mainly want to look at typoFixer.js (and of course there's a lot you'll be able to just delete).
Also, it seems version 3.1 and older *do* correct entire URLs:
https://addons.mozilla.org/firefox/addo ... /versions/
Re: Seeking addon: Default HTTPS from address bar?
Posted: Tue Jan 28, 2014 6:15 am
by Thrawn
So close:
URL Suffix
The only significant problem is that it doesn't work for URLs starting with 'www'. Otherwise it seems to do the job quite well.
Re: Seeking addon: Default HTTPS from address bar?
Posted: Tue Jan 28, 2014 1:54 pm
by barbaz
That extension sounds similar to
about:config -> browser.fixup.alternate.prefix
But I don't know if that pref affects protocols...
Its default value is '
www.', maybe that's why URL Suffix isn't fully achieving what you want?