diff options
author | zrose584 <57181548+zrose584@users.noreply.github.com> | 2020-10-18 17:58:16 +0200 |
---|---|---|
committer | zrose584 <57181548+zrose584@users.noreply.github.com> | 2020-10-18 18:48:52 +0200 |
commit | a8916b9308a4e2b7c1441a4d8d3c6d0b19c38fd2 (patch) | |
tree | c8da0b06304993904214b2018d8ea33355c0c02e /youtube/templates | |
parent | f7f2b9fa06fd2218179636c712e43f0c4d65bd9e (diff) | |
download | yt-local-a8916b9308a4e2b7c1441a4d8d3c6d0b19c38fd2.tar.lz yt-local-a8916b9308a4e2b7c1441a4d8d3c6d0b19c38fd2.tar.xz yt-local-a8916b9308a4e2b7c1441a4d8d3c6d0b19c38fd2.zip |
proxy 'sponsor.ajay.app'
Diffstat (limited to 'youtube/templates')
-rw-r--r-- | youtube/templates/base.html | 5 | ||||
-rw-r--r-- | youtube/templates/watch.html | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/youtube/templates/base.html b/youtube/templates/base.html index df7bb99..ef69960 100644 --- a/youtube/templates/base.html +++ b/youtube/templates/base.html @@ -4,8 +4,9 @@ <meta charset="utf-8"> <title>{{ page_title }}</title> <meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline'; media-src 'self' https://*.googlevideo.com; - {{ "img-src https://*.googleusercontent.com https://*.ggpht.com https://*.ytimg.com;" if not settings.proxy_images else "" }} - {{ "" if not settings.use_sponsorblock_js else "connect-src 'self' https://sponsor.ajay.app;"|safe }}"> + {% if not settings.proxy_images %} + img-src https://*.googleusercontent.com https://*.ggpht.com https://*.ytimg.com; + {% endif %} <link href="{{ theme_path }}" type="text/css" rel="stylesheet"> <link href="/youtube.com/static/shared.css" type="text/css" rel="stylesheet"> diff --git a/youtube/templates/watch.html b/youtube/templates/watch.html index d89cc05..319c314 100644 --- a/youtube/templates/watch.html +++ b/youtube/templates/watch.html @@ -695,6 +695,7 @@ Reload without invidious (for usage of new identity button).</a> {% endif %} {% endif %} + <script> data = {{ js_data|tojson }} </script> <script src="/youtube.com/static/js/common.js"></script> <script src="/youtube.com/static/js/transcript-table.js"></script> {% if settings.use_video_hotkeys %} <script src="/youtube.com/static/js/hotkeys.js"></script> {% endif %} |