Addon Download:
https://addons.mozilla.org/en-GB/firefox/addon/external-application/
Also required:
https://github.com/andy-portmen/native-client/releases
download, then unzip, then run installer
Example for dl option using remote yt-dlp (requires password-less preshared ssh keys)
Name: Download with yt-dlp on remote system exec: gnome-terminal args: -- ssh user@remotesystem "yt-dlp_linux [HREF] ; echo ''; echo 'press enter'; read line" Toolbar, page and link context #on local system use only: args: -- "yt-dlp_linux [HREF] ; echo ''; echo 'press enter'; read line"
Small bash script to exit immediately if all went fine but stops on error:
#!/bin/bash url=$1 tmp=$(mktemp -t ytdlp.XXXXXXX) ~/.local/bin/yt-dlp_linux $url 2>&1 | tee $tmp grep -q -i "ERROR:" $tmp && (echo ""; echo "An error occurred. Press any key"; read line;) rm $tmp
Create in ~/.local/bin and copy yt-dlp_linux into ~/.local/bin as well, then
chmod 755 ytdlp-wrapper.sh
Adjust the Firefox External App Launcher args to:
-- ssh user@remotesystem "/home/user/.local/bin/ytdlp-wrapper.sh [HREF]" #for local system use only: -- ytdlp-wrapper.sh [HREF]