Created
September 27, 2021 13:17
-
-
Save cvan/c62ff55bd751d9a95814a92b23cd8cdd to your computer and use it in GitHub Desktop.
export list of URLs from mobile <-> PC synced 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
// 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