when goyim musk forced twatter accounts to play videos I used this
you first have to copy a video url from YT twatter or something else (the third party frontends like nitter and pipe work all the same) then exec the script, requires dmenu
#!/bin/sh
# Get user selection for platforms via dmenu
SELECTED_DOMAIN=$(echo -e "\nyt:youtube.com\ntw:twitter.com\np:PLAY" | dmenu -i -l 4 | sed "s/.*://")
# exit if none chosen
[ -z "$SELECTED_DOMAIN" ] && exit
# get url from clipboard
url=$(xclip -o -sel c)
# if a platform was chosen (ie, no the 'PLAY' value), replace the domain name in the url
[[ ! "$SELECTED_DOMAIN" = 'PLAY' ]] && url=$(echo "$url" | sed -e "s/\([^/]*\/\/\([^@]*@\)\?\)\([^:/]*\)\(.*\)/\1$SELECTED_DOMAIN\4/")
# play the url
[[ "$url" == *"twitter"* || "$url" == *"x.com"* ]] && mpv --ytdl-raw-options=username=<throw account username>,password=<throw account password> --force-window=immediate "$url" || mpv --force-window=immediate "$url"