Chrome에서 모든 탭을 자동으로 Chrome에서 Firefox로 전송하는 쉘 스크립트를 작성하고 싶습니다 (Chrome에서 탭 목록을 가져온 다음 스크립트를 사용하여 Firefox에서 탭을 열어서). Chrome에서 목록을 얻을 수 있습니다 명령 줄을 통해 열린 탭
답변
이 질문에 대한 답변이 없습니다. 위의 솔루션은 CLI에서 OP가 요청한 Chrome 개발자 도구에 대한 것이므로 이것이 내가 찾은 솔루션입니다.
strings ~/'.config/chromium/Default/Current Session' | 'grep' -E '^https?://'
답변
나는 마침내 중복 질문을 찾았습니다 (그러나 그것을 찾으려면 많은 검색이 필요했습니다) : https : //.com/questions/4968271/chrome-on-linux-query-the-browser-to-see-what- 탭이 열려 있습니다
답변
오픈 소스 유틸리티를 사용할 수도 있습니다 chrome-cli
. Homebrew와 함께 설치할 수 있습니다.
brew install chrome-cli
또한 README에서 한 가지 사항에 유의하십시오.
자바 스크립트를 실행하려면 먼저 아래에서 허용해야합니다
View > Developer > Allow JavaScript from Apple Events
.
그 모습은 다음과 같습니다.
$ chrome-cli list tabs
[1889] Edit - Super User
[1918] prasmussen/chrome-cli: Control Google Chrome from the command line
[1905] Yotto Winter Mix 19 by Yotto
$ chrome-cli list links
[1889] /superuser//posts/1407956/edit
[1918] https://github.com/prasmussen/chrome-cli
[1905] https://soundcloud.com/yotto/yotto-winter-mix-2019