309ff40943
watch.html: Move loose inline javascript into watch.js
...
The number of inline code blocks and the dependencies between them
became unmanageable.
From 9d96c07a3c2e68f1893634574c3be64e41a2c041 Mon Sep 17 00:00:00 2001
From: James Taylor <user234683@users.noreply.github.com>
2021-08-29 22:43:10 -05:00
James Taylor
6e39ae19b6
Prevent Firefox from remembering quality select on page refresh
...
The video quality is only changed when the quality selector
changes. If it was changed and the user refreshes, Firefox
remembers the selected value, but since no change event is fired,
the select will display the wrong quality.
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-29 21:51:41 -05:00
James Taylor
9f44e0474b
Integrate quality selection into Plyr
...
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-29 21:47:14 -05:00
James Taylor
fa3b78583f
avmerge: Close streams to avoid errors while changing quality
...
If a fetchRange network request finished after the quality was
changed, there would be a "InvalidStateError: An attempt was made
to use an object that is not, or is no longer, usable" because
appendSegment was trying to append to the sourceBuffer that was
unusable after the video src was changed to a new mediaSource.
Adds a close method to the AVMerge class to properly clean and
close everything so these sorts of errors won't happen.
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-29 21:00:30 -05:00
James Taylor
a7da23c6da
Add video quality selector
...
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-29 20:52:57 -05:00
James Taylor
c9a75042d2
Add support for more qualities, merging video+audio using MSE
...
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-29 18:48:56 -05:00
e4af99fd17
Revert "Add support for more qualities, merging video+audio using MSE"
...
This reverts commit d56df02e7b1eba86baf511289208295b1f6c5a50.
2021-08-29 18:48:01 -05:00
James Taylor
d56df02e7b
Add support for more qualities, merging video+audio using MSE
...
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-29 18:44:26 -05:00
af1df31161
[plyr]: update
2021-08-09 22:09:04 -05:00
33d732f781
fix right click for video
2021-07-05 15:44:07 -05:00
de5510d3e3
Improved plyr configuration
2021-07-03 23:38:50 -05:00
c6fe980a7a
autoplay-toggle: use label tag
...
from upstream:
<label> is semantic and makes clicking the text activate in checkbox
2021-06-29 19:07:40 -05:00
5906633641
fix settings.subtitles_mode in plyr
2021-06-23 15:48:19 -05:00
2c56a24711
fix name id of video
2021-06-23 15:35:01 -05:00
61b4518335
Fix set language subtitles
2021-06-23 15:19:31 -05:00
7f79269cf3
usage let
not var
2021-06-23 14:43:10 -05:00
Umimaso
2d1794889a
feat: autoplay for related videos
...
Add autoplay support for related videos. Move the playlist autoplay code
into this shared script. Add the SameSite=Strict attribute to the
autoplay cookie due to Firefox soon rejecting cookies which use
SameSite=None without the secure attribute.
Closes : #50
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-06-23 14:34:55 -05:00
ff7aae05c4
Open direct link in new tab
2021-06-23 12:43:55 -05:00
Umimaso
5b4c99c702
feat: add direct link
...
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-06-23 12:42:17 -05:00
1b860c6917
Not force plyr as player
2021-05-24 21:17:59 -05:00
b3abec81e1
Add plyr as main player
...
Also plyr supports switch quality
2021-05-22 17:05:39 -05:00
James Taylor
d88a69d811
Add tooltip to video speed box to improve discoverability
...
See #60
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-04-13 21:08:08 -05:00
1f4d7cc958
General theme: fix syntax W3C markup and add improve 'Published' date
...
Signed-off-by: Jesús <heckyel@hyperbola.info>
2020-12-30 16:52:26 -05:00
0a9d24b261
General theme: Add license to missing script in watch.html
2020-12-29 21:33:56 -05:00
0f78e73e80
General theme: add license and add URL source code in footer
2020-12-29 15:36:23 -05:00
97f00efa8a
Migration general theme: fix video player method in javascript
2020-12-15 22:34:45 -05:00
e9215534d3
Migration general theme: fix missing message-box style
2020-12-15 11:24:13 -05:00
7a765dc664
Change general design theme
2020-12-14 23:44:29 -05:00
James Taylor
1a7ed0a981
Add box to enter custom video speed
2020-11-30 17:10:11 -08:00
James Taylor
aa52c7a42e
Merge branch 'master' into add_sponsorblock
2020-10-21 18:53:12 -07:00
James Taylor
f100685d64
Move comment.js reply button styling to comments.css
...
So that the style will also be present on the /comments pages
2020-10-20 17:19:45 -07:00
zrose584
a8916b9308
proxy 'sponsor.ajay.app'
2020-10-18 18:48:52 +02:00
zrose584
f7f2b9fa06
add sponsorblock.js
2020-10-17 19:51:41 +02:00
zrose584
6a7d0557e2
jinja: only include 'comments.js' if needed
2020-10-09 18:55:04 +02:00
zrose584
fd9bb643f8
replies: remove css border
2020-10-09 18:53:43 +02:00
zrose584
debc11931f
add comments.js
2020-10-07 20:32:57 +02:00
James Taylor
9123d9a6cf
Fix video height not scaling down when browser window is narrow
...
This solution still makes sure the video doesn't jump in height
when it loads, and makes it so the video scales down properly in
aspect ratio as the browser window is made narrower.
2020-10-01 13:38:57 -07:00
James Taylor
cf08f96de9
Add some space between transcript button and related videos
2020-09-25 09:48:29 -07:00
James Taylor
20152a6316
Specify video height in html so page doesn't shift down after load
...
Use true video height extracted from youtube to handle videos
shorter than their quality size. (e.g. widescreen videos)
2020-09-24 18:50:54 -07:00
James Taylor
9f0d84ddb9
Transcript: Add label for table view checkbox
2020-09-24 15:16:41 -07:00
James Taylor
97b092bf7a
Merge pull request #15 from zrose584/transcript_table
...
Transcript table
2020-09-24 12:14:20 -07:00
James Taylor
753f6c5389
Jump video to timestamp in description or comments
2020-09-18 17:32:28 -07:00
zrose584
0830468bd1
style transcript div
2020-09-15 20:57:11 +02:00
zrose584
0be0a59a2a
transcript-table: show transcript as contiguous text by default
2020-09-12 13:22:46 +02:00
zrose584
57978485ee
let jinja create the transcript <details> element
2020-09-12 10:51:01 +02:00
zrose584
05a7907be4
add transcript-table.js
2020-09-11 21:28:29 +02:00
zrose584
94ece08a1e
hotkeys.js: add 'c' for transcript
2020-09-11 21:27:49 +02:00
James Taylor
c2ca47c5d3
Add setting to enable/disable video hotkeys
2020-09-09 18:53:11 -07:00
zrose584
12e56c7e71
add hotkeys.js
2020-09-09 21:01:16 +02:00
James Taylor
e78d239323
Add support for &t parameter
2020-07-25 21:25:23 -07:00