diff options
author | James Taylor <user234683@users.noreply.github.com> | 2021-08-25 14:50:50 -0700 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-08-29 21:51:41 -0500 |
commit | 6e39ae19b6b38a24ae7b6e7d8c1321eaad40d397 (patch) | |
tree | 4e47a9704f23c2ea0b0d20e10a8e4bb69a0c77da /youtube | |
parent | 9f44e0474be03e1a7d616db092293df0c0e496a3 (diff) | |
download | yt-local-6e39ae19b6b38a24ae7b6e7d8c1321eaad40d397.tar.lz yt-local-6e39ae19b6b38a24ae7b6e7d8c1321eaad40d397.tar.xz yt-local-6e39ae19b6b38a24ae7b6e7d8c1321eaad40d397.zip |
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>
Diffstat (limited to 'youtube')
-rw-r--r-- | youtube/templates/watch.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube/templates/watch.html b/youtube/templates/watch.html index 450ba60..4b2aa50 100644 --- a/youtube/templates/watch.html +++ b/youtube/templates/watch.html @@ -126,7 +126,7 @@ <div class="external-player-controls"> <input class="speed" id="speed-control" type="text" title="Video speed"> <script src="/youtube.com/static/js/speedyplay.js"></script> - <select id="quality-select"> + <select id="quality-select" autocomplete="off"> {% for src in uni_sources %} <option value='{"type": "uni", "index": {{ loop.index0 }}}' {{ 'selected' if loop.index0 == uni_idx and not using_pair_sources else '' }} >{{ src['quality_string'] }}</option> {% endfor %} |