PJ/apps/firefox.sh

72 lines
1 KiB
Bash
Raw Normal View History

#firefox(){
# debug "no op for ff on this website"
#}
2025-06-13 16:09:14 -07:00
firefox_youtube(){
# fullscreen
split_up(){
2025-06-18 10:10:22 -07:00
sleep .2
2025-06-13 16:09:14 -07:00
xdotool key f
}
search(){
helpers
search
}
play(){
2025-06-18 10:10:22 -07:00
sleep .2
2025-06-13 16:09:14 -07:00
xdotool key k
}
# go to yt.com in shared container
desktop(){
helpers
firefox 'ext+container:name=shared&url=https://youtube.com'
close_last_tab
}
# open hh container
back(){
helpers
firefox 'ext+container:name=hh&url=https://youtube.com'
close_last_tab
}
# open fr container
forward(){
helpers
firefox 'ext+container:name=fr&url=https://youtube.com'
close_last_tab
}
}
firefox_pbs(){
split_up(){
2026-02-17 10:03:23 -08:00
xdotool mousemove 900 900
2025-06-13 16:09:14 -07:00
xdotool click 1 click 1
}
play(){
2026-02-17 10:03:23 -08:00
xdotool mousemove 900 900
2025-06-13 16:09:14 -07:00
xdotool click 1
}
desktop(){
helpers
home "https://www.pbs.org"
}
}
### helpers
helpers(){
close_last_tab(){
sleep .2
xdotool key ctrl+shift+Tab
sleep .1
xdotool key ctrl+w
}
search(){
sleep .2
xdotool key slash
sleep .2
xdotool key ctrl+a
sleep .2
xdotool key BackSpace
}
}