Firefox – How to redirect YouTube’s videos URL (googlevideo.com) from HTTPS to https automatically

firefoxhttpshttps-everywherevideoyoutube

I am using FireFox on Linux and I want to redirect HTTP URLs in YouTube videos to HTTPS. YouTube’s videos are from googlevideo.com so I want to use HTTPS instead of HTTP:

http://r8---sn-qxau5-btqs.googlevideo.com...

To:

https://r8---sn-qxau5-btqs.googlevideo.com...

(r8---sn-qxau5-btqs) may change with every video URL.

I tried HTTPS Everywhere and made this rule:

<ruleset name="googlevideo">
<target host="*.googlevideo.com" />

<rule from="http://([^@:/][^/:@])\.googlevideo\.com/" to="https://$1.googlevideo.com"/>
</ruleset>

But it doesn’t seem to work.

Best Answer

As of March 2015, all Youtube videos are served through HTTPS by default.

Firefox console screenshot

Related Question