Created
October 15, 2022 06:54
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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