aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/templates/watch.html
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2020-12-29 15:36:23 -0500
committerJesús <heckyel@hyperbola.info>2020-12-29 15:36:23 -0500
commit0f78e73e80dd1801bbcadb31e2bd3de11b68b267 (patch)
tree1d54e0cc482cf14754e660f6ad1de6fa408b93e7 /youtube/templates/watch.html
parent701786a9cc0aa21ef83fa17139599814662cf869 (diff)
downloadyt-local-0f78e73e80dd1801bbcadb31e2bd3de11b68b267.tar.lz
yt-local-0f78e73e80dd1801bbcadb31e2bd3de11b68b267.tar.xz
yt-local-0f78e73e80dd1801bbcadb31e2bd3de11b68b267.zip
General theme: add license and add URL source code in footer
Diffstat (limited to 'youtube/templates/watch.html')
-rw-r--r--youtube/templates/watch.html20
1 files changed, 5 insertions, 15 deletions
diff --git a/youtube/templates/watch.html b/youtube/templates/watch.html
index dbc7e83..60fd941 100644
--- a/youtube/templates/watch.html
+++ b/youtube/templates/watch.html
@@ -76,21 +76,7 @@
<div class="external-player-controls">
<input class="speed" id="speed-control" type="text">
- <script>
- (function main() {
- 'use strict';
- const video = document.getElementById('js-video-player');
- const speedInput = document.getElementById('speed-control');
- speedInput.addEventListener('keyup', (event) => {
- if (event.key === 'Enter') {
- let speed = parseFloat(speedInput.value);
- if(!isNaN(speed)){
- video.playbackRate = speed;
- }
- }
- });
- }());
- </script>
+ <script src="/youtube.com/static/js/speedyplay.js"></script>
</div>
<input class="v-checkbox" name="video_info_list" value="{{ video_info }}" form="playlist-edit" type="checkbox">
@@ -184,6 +170,7 @@
</nav>
{% if playlist['current_index'] is not none %}
<script>
+ // @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later
(function main() {
// from https://stackoverflow.com/a/6969486
function escapeRegExp(string) {
@@ -260,10 +247,12 @@
}
}
}());
+ // @license-end
</script>
{% endif %}
{% if playlist['id'] is not none %}
<script>
+ // @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later
(function main() {
// lazy load playlist images
// copied almost verbatim from
@@ -296,6 +285,7 @@
observer.observe(img);
});
}());
+ // @license-end
</script>
{% endif %}
</div>