Skip to content

Instantly share code, notes, and snippets.

@NickDeckerDevs
Created December 1, 2022 17:52
Show Gist options
  • Save NickDeckerDevs/2d1c11f8cc0833e4d8e9a09fca272dc3 to your computer and use it in GitHub Desktop.
Save NickDeckerDevs/2d1c11f8cc0833e4d8e9a09fca272dc3 to your computer and use it in GitHub Desktop.
website pages / landing pages inhubspot, run in console after opening up to 100 pages, will be able to copy/paste out the data into vscode, then find/replace the VM..... text with blank
document.querySelectorAll('.content-table-row').forEach(item => {
let linktext = item.querySelector('a').innerText
let linkedit = item.querySelector('a').href
let linkurl = item.querySelector('.private-microcopy.is--text--help').innerText
let status = item.querySelector('[data-test-id="content-status-cell"]').innerText
console.log(`${linktext},https://${linkurl},${linkedit},${status}`)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment