From ae29136063f1565ae5b58a795abfc18ad806f7b3 Mon Sep 17 00:00:00 2001 From: "s0wlz (Matthias Puchstein)" Date: Tue, 10 Mar 2026 13:16:21 +0100 Subject: [PATCH] updated the xdg-https-handler script to remove resume playback when opening links --- dot_local/bin/executable_xdg-https-handler | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dot_local/bin/executable_xdg-https-handler b/dot_local/bin/executable_xdg-https-handler index f28534d..a86d9ec 100644 --- a/dot_local/bin/executable_xdg-https-handler +++ b/dot_local/bin/executable_xdg-https-handler @@ -1,10 +1,8 @@ #!/bin/bash BROWSER=firefox.desktop -if [[ "$1" =~ ^https?://(www\.)?(youtube\.com/watch|youtu\.be)/ ]]; then - mpv "$1" -elif [[ "$1" =~ ^https?://(www\.)?(youtube\.com/shorts|youtu\.be)/ ]]; then - mpv "$1" +if [[ "$1" =~ ^https?://(www\.)?(youtube\.com/(watch|shorts)|youtu\.be/) ]]; then + mpv --no-resume-playback "$1" else gtk-launch "$BROWSER" "$1" fi