Commit Graph

24 Commits (50bab26a3a6409b2a23ff5537f0469434fd4c0b9)

Author SHA1 Message Date
leonklingele 70cbe91776
Migrate to a good Content Security Policy (#1023)
So attacks such as XSS (see [0]) will no longer be of an issue.

[0]: https://github.com/omarroth/invidious/issues/1022
5 years ago
Omar Roth 23ccaea2ff
Fix comment event listener 5 years ago
Omar Roth be055d9dcb
Add support for custom playlists 5 years ago
leonklingele e6b4e12689 js: add support for keydown events (#678)
* js: add support for keydown events

This will modify the player behavior even if the player element is unfocused.

Based on the YouTube key bindings, allow to

- toggle playback with space and 'k' key
- increase and decrease player volume with up / down arrow key
- mute and unmute player with 'm' key
- jump forwards and backwards by 5 seconds with right / left arrow key
- jump forwards and backwards by 10 seconds with 'l' / 'j'  key
- set video progress with number keys 0–9
- toggle captions with 'c' key
- toggle fullscreen mode with 'f' key
- play next video with 'N' key
- increase and decrease playback speed with '>' / '<' key

* js: remove unused dependency 'videojs.hotkeys.min.js'

Support for controlling the player volume by scrolling over it is
still retained by copying over the relevant code part from the
aforementioned library.
5 years ago
Omar Roth d034fecc89
Remove default arguments from function definitions 5 years ago
Omar Roth 17edfd6573
Shorten timeout for AJAX 5 years ago
Omar Roth 552f616305
Fix retry on timeout for AJAX requests 5 years ago
Omar Roth 8c944815bc
Minor refactor 6 years ago
Omar Roth efd54b7523
Add 'comments' as URL parameter 6 years ago
Omar Roth de77c71042
Add "local" to "next video" URLs 6 years ago
Omar Roth 7d2e1f63b5
Refactor watched_widget.js 6 years ago
Omar Roth e833ccf309
Fix comments for age-restricted videos 6 years ago
Omar Roth 058711d3a8
Refactor player.js 6 years ago
Omar Roth 2faa2ed1f4
Refactor watch.js 6 years ago
Omar Roth 1a9360ca75
Minor formatting changes 6 years ago
Omar Roth 1692f7640c Remove JS from download widget 6 years ago
Omar Roth f8467fcda6 Fix locale text for "Show replies" 6 years ago
Omar Roth c0fdc28a84 Fix colors and data-url in download widget 6 years ago
Omar Roth 1a9057a175 Add fix to download widget for titles with unescaped characters 6 years ago
Omar Roth 08e8d0f56f Fix typo in default.css 6 years ago
Omar Roth fb535ad6bb Add download widget 6 years ago
Omar Roth 3ee7201f5d Comma seperate comment scores 6 years ago
Omar Roth 57d88ffcc8 Fix fallback for comments 6 years ago
Omar Roth f7125c1204 Move watch page JS into seperate file 6 years ago