如何将 YouTube 的视频 URL (googlevideo.com) 自动从 HTTPS 重定向到 https?

Sab*_*r.T 5 video firefox youtube https https-everywhere

我在 Linux 上使用 FireFox,并且希望将 YouTube 视频中的 HTTP URL 重定向到 HTTPS。YouTube\xe2\x80\x99s 视频来自googlevideo.com,所以我想使用 HTTPS 而不是 HTTP:

\n\n
http://r8---sn-qxau5-btqs.googlevideo.com...\n
Run Code Online (Sandbox Code Playgroud)\n\n

到:

\n\n
https://r8---sn-qxau5-btqs.googlevideo.com...\n
Run Code Online (Sandbox Code Playgroud)\n\n

( r8---sn-qxau5-btqs) 可能会随每个视频 URL 的变化而变化。

\n\n

我尝试了 HTTPS Everywhere 并制定了以下规则:

\n\n
<ruleset name="googlevideo">\n<target host="*.googlevideo.com" />\n\n<rule from="http://([^@:/][^/:@])\\.googlevideo\\.com/" to="https://$1.googlevideo.com"/>\n</ruleset>\n
Run Code Online (Sandbox Code Playgroud)\n\n

但它似乎不起作用。

\n

小智 1

截至 2015 年 3 月,所有 Youtube 视频默认通过 HTTPS 提供。

火狐控制台截图