Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

90
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!