If Google Chrome and Firefox are both running, is there any way to transfer all browser tabs from Firefox to Google Chrome? I want to write a shell script that will transfer all tabs from Firefox to Google Chrome on Ubuntu.
If Google Chrome and Firefox are both running, is there any way to transfer all browser tabs from Firefox to Google Chrome? I want to write a shell script that will transfer all tabs from Firefox to Google Chrome on Ubuntu.
Following the idea given in the comments (getting the links from the
sessionrestore.js
file in the FF profile dir), here is a Bash script with embedded Python to open the current tabs in Google Chrome:Please note that although the script works alright, it isn't verifying anything. But a more robust version of this would check the existence of file
sessionrestore.js
, verify the result of loading the JSON file and its contents, and so on.Install the Xmarks extension on both Firefox and Chrome. Besides synchronizing your bookmarks across the browsers you'll be able to use the function "Open remote tabs" which does precisely what you want.