Created
October 27, 2023 21:34
-
-
Save andypiper/02886277c9ec3bcd4b29614a08586a46 to your computer and use it in GitHub Desktop.
Recover suspended tabs
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
chrome-cli list links | rg suspended\.html > tabs.txt | |
while read -r line; do tabid=`echo $line | cut -c 2-11`; url=`echo $line | awk -F "uri[=]" '{print $NF}'`; chrome-cli open $url -t $tabid; done < tabs.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment