aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/templates/base.html
diff options
context:
space:
mode:
authorzrose584 <57181548+zrose584@users.noreply.github.com>2020-10-17 19:51:41 +0200
committerzrose584 <57181548+zrose584@users.noreply.github.com>2020-10-17 19:51:41 +0200
commitf7f2b9fa06fd2218179636c712e43f0c4d65bd9e (patch)
tree809db0f303e52811a544f0351fe60a193e9d2897 /youtube/templates/base.html
parente3c311e10a54ae1b7d9114cc58de315157538e0f (diff)
downloadyt-local-f7f2b9fa06fd2218179636c712e43f0c4d65bd9e.tar.lz
yt-local-f7f2b9fa06fd2218179636c712e43f0c4d65bd9e.tar.xz
yt-local-f7f2b9fa06fd2218179636c712e43f0c4d65bd9e.zip
add sponsorblock.js
Diffstat (limited to 'youtube/templates/base.html')
-rw-r--r--youtube/templates/base.html4
1 files changed, 3 insertions, 1 deletions
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 @@
<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 "" }}">
+ {{ "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 }}">
+
<link href="{{ theme_path }}" type="text/css" rel="stylesheet">
<link href="/youtube.com/static/shared.css" type="text/css" rel="stylesheet">
<link href="/youtube.com/static/comments.css" type="text/css" rel="stylesheet">