Skip to content

Instantly share code, notes, and snippets.

@gotbletu
Created October 15, 2022 06:54
Show Gist options
  • Save gotbletu/3a924f58c639bd97da713ddbe421f74b to your computer and use it in GitHub Desktop.
Save gotbletu/3a924f58c639bd97da713ddbe421f74b to your computer and use it in GitHub Desktop.
autofill current url with prefix string to rip videos using just 9xbuddy.com
#!/usr/bin/env sh
# author: gotbletu (@gmail|twitter|youtube|github|lbry|odysee)
# https://www.youtube.com/user/gotbletu
helpmsg() {
printf "%s\n" "desc: autofill current url with prefix string to rip videos using just 9xbuddy.com"
printf "%s\n" "depend: xdotool coreutils"
}
if [ "$1" = -h ] || [ "$1" = --help ]; then
helpmsg
exit 0
else
sleep 0.5
xdotool key ctrl+l
sleep 0.5
xdotool key Left
sleep 0.5
xdotool type "9xbud.com/"
sleep 0.5
xdotool key Return
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment