Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

95
Vistas
How to access the DOM of a Contentful page with a bookmarklet?

After a page like this is fully loaded https://app.contentful.com/spaces/.../entries/... (an internal customized company page for editing a page on a site), I easily can access elements and text like this from the console:

document.querySelectorAll("p[data-test-id='cf-ui-paragraph']")[8].textContent;

But using the same query in a bookmarklet fails on the very first line -- even after the page is fully loaded.

javascript:(function() {
    var path = document.querySelectorAll("p[data-test-id='cf-ui-paragraph']")[8].textContent;
    //
    //
})();

Uncaught TypeError: Cannot read properties of undefined (reading 'textContent')

This seems to be a common issue but all I've seen here is the fact that it's 'not the same DOM'.

Any wisdom on how to get this (or any query at all) working on a Contentful backend editor page?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda