From f7f2b9fa06fd2218179636c712e43f0c4d65bd9e Mon Sep 17 00:00:00 2001
From: zrose584 <57181548+zrose584@users.noreply.github.com>
Date: Sat, 17 Oct 2020 19:51:41 +0200
Subject: add sponsorblock.js
---
youtube/templates/base.html | 4 +++-
youtube/templates/watch.html | 15 +++++++++------
2 files changed, 12 insertions(+), 7 deletions(-)
(limited to 'youtube/templates')
diff --git a/youtube/templates/base.html b/youtube/templates/base.html
index f325f86..df7bb99 100644
--- a/youtube/templates/base.html
+++ b/youtube/templates/base.html
@@ -4,7 +4,9 @@
{{ page_title }}
+ {{ "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 }}">
+
diff --git a/youtube/templates/watch.html b/youtube/templates/watch.html
index 86644ea..d89cc05 100644
--- a/youtube/templates/watch.html
+++ b/youtube/templates/watch.html
@@ -494,6 +494,12 @@ Reload without invidious (for usage of new identity button).
Used Invidious as fallback.
{% endif %}
Allowed countries: {{ allowed_countries|join(', ') }}
+
+ {% if settings.use_sponsorblock_js %}
+
+ {% endif %}
@@ -691,10 +697,7 @@ Reload without invidious (for usage of new identity button).
- {% if settings.use_video_hotkeys %}
-
- {% endif %}
- {% if settings.use_comments_js %}
-
- {% endif %}
+ {% if settings.use_video_hotkeys %} {% endif %}
+ {% if settings.use_comments_js %} {% endif %}
+ {% if settings.use_sponsorblock_js %} {% endif %}
{% endblock main %}
--
cgit v1.2.3