diff options
-rw-r--r-- | doc/changelog.asciidoc | 10 | ||||
-rwxr-xr-x | misc/userscripts/view_in_mpv | 7 |
2 files changed, 13 insertions, 4 deletions
diff --git a/doc/changelog.asciidoc b/doc/changelog.asciidoc index f1bd96f81..12416bcc2 100644 --- a/doc/changelog.asciidoc +++ b/doc/changelog.asciidoc @@ -15,6 +15,16 @@ breaking changes (such as renamed commands) can happen in minor releases. // `Fixed` for any bug fixes. // `Security` to invite users to upgrade in case of vulnerabilities. +[[v3.0.1]] +v3.0.1 (unreleased) +------------------- + +Fixed +~~~~~ + +- The "restore video" functionality of the `view_in_mpv` script works again on + webengine. + [[v3.0.0]] v3.0.0 (2023-08-18) ------------------- diff --git a/misc/userscripts/view_in_mpv b/misc/userscripts/view_in_mpv index 472920433..4f371c6b5 100755 --- a/misc/userscripts/view_in_mpv +++ b/misc/userscripts/view_in_mpv @@ -49,7 +49,7 @@ msg() { MPV_COMMAND=${MPV_COMMAND:-mpv} # Warning: spaces in single flags are not supported -MPV_FLAGS=${MPV_FLAGS:- --force-window --no-terminal --keep-open=yes --ytdl} +MPV_FLAGS=${MPV_FLAGS:- --force-window --quiet --keep-open=yes --ytdl} IFS=" " read -r -a video_command <<< "$MPV_COMMAND $MPV_FLAGS" js() { @@ -94,9 +94,9 @@ cat <<EOF <a style=\\"font-weight: bold; color: white; background: transparent; + cursor: pointer; \\" onClick=\\"restore_video(this, " + i + ");\\" - href=\\"javascript: restore_video(this, " + i + ")\\" >click here</a>. </p> "; @@ -119,7 +119,6 @@ cat <<EOF function restore_video(obj, index) { obj = App.all_replacements[index]; video = App.backup_videos[index]; - console.log(video); obj.parentNode.replaceChild(video, obj); } @@ -137,7 +136,7 @@ EOF printjs() { js | sed 's,//.*$,,' | tr '\n' ' ' } -echo "jseval -q $(printjs)" >> "$QUTE_FIFO" +echo "jseval -q -w main $(printjs)" >> "$QUTE_FIFO" msg info "Opening $QUTE_URL with mpv" "${video_command[@]}" "$@" "$QUTE_URL" |