aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/templates/watch.html
diff options
context:
space:
mode:
authorJames Taylor <28744867+user234683@users.noreply.github.com>2020-10-21 18:53:34 -0700
committerGitHub <noreply@github.com>2020-10-21 18:53:34 -0700
commit8b54a5f3aa376651bf063baa6893fe9b7f0e2ca0 (patch)
tree6bff6ae507db03e435bb04e3969ef08093f3f8d8 /youtube/templates/watch.html
parentf01ef36a37c9112eca3f85d49622c41d68000a69 (diff)
parentaa52c7a42e9573105dfadb07981c7f5f1447ca9d (diff)
downloadyt-local-8b54a5f3aa376651bf063baa6893fe9b7f0e2ca0.tar.lz
yt-local-8b54a5f3aa376651bf063baa6893fe9b7f0e2ca0.tar.xz
yt-local-8b54a5f3aa376651bf063baa6893fe9b7f0e2ca0.zip
Merge pull request #32 from zrose584/add_sponsorblock
add sponsorblock.js
Diffstat (limited to 'youtube/templates/watch.html')
-rw-r--r--youtube/templates/watch.html16
1 files changed, 10 insertions, 6 deletions
diff --git a/youtube/templates/watch.html b/youtube/templates/watch.html
index 3542d94..b6faf21 100644
--- a/youtube/templates/watch.html
+++ b/youtube/templates/watch.html
@@ -482,6 +482,12 @@ Reload without invidious (for usage of new identity button).</a>
<p>Used Invidious as fallback.</p>
{% endif %}
<p class="allowed-countries">Allowed countries: {{ allowed_countries|join(', ') }}</p>
+
+ {% if settings.use_sponsorblock_js %}
+ <ul class="more-actions">
+ <li><label><input type=checkbox id=skip_sponsors checked>skip sponsors</label> <span id=skip_n></span>
+ </ul>
+ {% endif %}
</div>
</details>
</div>
@@ -677,12 +683,10 @@ 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 %}
- {% if settings.use_comments_js %}
- <script src="/youtube.com/static/js/comments.js"></script>
- {% endif %}
+ {% if settings.use_video_hotkeys %} <script src="/youtube.com/static/js/hotkeys.js"></script> {% endif %}
+ {% if settings.use_comments_js %} <script src="/youtube.com/static/js/comments.js"></script> {% endif %}
+ {% if settings.use_sponsorblock_js %} <script src="/youtube.com/static/js/sponsorblock.js"></script> {% endif %}
{% endblock main %}