Skip to content

Instantly share code, notes, and snippets.

@cvan
Created September 27, 2021 13:17
Show Gist options
  • Save cvan/c62ff55bd751d9a95814a92b23cd8cdd to your computer and use it in GitHub Desktop.
Save cvan/c62ff55bd751d9a95814a92b23cd8cdd to your computer and use it in GitHub Desktop.
export list of URLs from mobile <-> PC synced tabs
// ensure password syncing enabled on both Chrome devices
//
// from Chrome desktop, load chrome://history/syncedTabs
// select "Tabs from other devices" link on sidebar
//
// once list loads, inspect the element of a link
// paste into the Console:
//
containerEl = $0.closest('div#history-item-container');
links = [...containerEl.querySelectorAll('div a[href^="http"].website-link')].map(x => `${x.textContent} | ${x.href}`);
console.log(links);
copy(links.join('\n'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment