Last active
March 20, 2024 23:18
-
-
Save prasmussen/7fda8d5bcce65fd7d186 to your computer and use it in GitHub Desktop.
chrome-cli execute loop
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
#!/bin/bash | |
for n in $(chrome-cli list tabs | awk '{print $1}' | sed -e 's/\[//' | sed -e 's/\]//'); do | |
chrome-cli execute '$("#run-code-button").click()' -t $n > /dev/null | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment