Skip to content

Instantly share code, notes, and snippets.

@AndyDaSilva52
Created April 17, 2021 19:54
Show Gist options
  • Save AndyDaSilva52/1194632d78f2acea174074bbe4378428 to your computer and use it in GitHub Desktop.
Save AndyDaSilva52/1194632d78f2acea174074bbe4378428 to your computer and use it in GitHub Desktop.
Chrome SyncedTabs - Export `chrome://history/syncedTabs`
let openTabList = Array.from( document.querySelector("body > history-app").shadowRoot.querySelector('#main-container > #content > #synced-devices').shadowRoot.querySelector('#synced-device-list > history-synced-device-card:nth-child(1)').shadowRoot.querySelector('#history-item-container > #collapse > div#tab-item-list').querySelectorAll('div.item-container') )
.map(e => ` ${e.querySelector('a').getAttribute("href")}`);
copy(openTabList.join('\n'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment