How to redirect YouTube's videos URL (googlevideo.com) from HTTPS to https automatically?

13,278

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

Firefox console screenshot

Share:
13,278

Related videos on Youtube

Saber.T
Author by

Saber.T

Updated on September 18, 2022

Comments

  • Saber.T
    Saber.T almost 2 years

    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.