aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/templates/watch.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/watch.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/watch.html')
-rw-r--r--youtube/templates/watch.html15
1 files changed, 9 insertions, 6 deletions
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).</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>
@@ -691,10 +697,7 @@ Reload without invidious (for usage of new identity button).</a>
<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 %}