Move tabs from Chrome to Firefox

a.k.a continue tab hoarding in Firefox with ease

Martin Olsansky
3 min readSep 25, 2019

If you are a tab hoarder, this will come handy when migrating/transfering 50+ tabs.

Update: Apparently, you can bookmark all tabs in Chrome, then select all of them in Chrome bookmarks manager and drag them to Firefox. By selecting all of them in Firefox, you can use the context menu to open all links in tabs.

Now the annoying battery bug has been fixed in (landed in nightly), we can all make the switch.

Maybe there is some easier way, but I didn’t want to install more extensions or some random sync tab service.

Disclaimer: chrome/browser.tabs only works with extensions that have the tabs permission.

Chrome part 💩

0. A pro tab hoarder should have the The Great Suspender extension. Let’s use it, because it has the tabs permission

  1. Enable developer mode and inspect the background page

2. Open the console tab in dev tools and paste

var tabs = [];chrome.tabs.query({}, openTabs => {
tabs = openTabs.map(tab => tab.url);
});
// This is a built in copy to system clipboard helper
copy(tabs);

3. Should look like

4. Paste it into some text editor, or just keep our clipboard untouched/safe

Firefox part 😇

  1. Let’s continue the tradition of tab hoarding with https://addons.mozilla.org/en-US/firefox/addon/ff-tab-suspender, it also has the almighty tabs permission.

2 .In Firefox, open Remote debugging

3. Inspect the extension

4. Paste in the tabs (hopefully still in our clipboard 😂)

// var tabs = // now cmd/ctrl + v (PASTE OUR TABS HERE) // e.g.var tabs = ["https://www.ecosia.org/", "https://bioinf.me/"];

5. Execute code to open tabs

tabs.forEach(tab => {
browser.tabs.create({
url: tab
});
});

6. Should like like

Done! 🚀

About me ⚡️

Hi, I’m Martin Olsansky (olso). If you have any questions/suggestions, feel free to contact me at https://olso.space or @olso_uznebolo

Also check out https://www.seasy.at/ ⛵️

--

--