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

261
Views
Use javascript to edit inner code of an iframe

I'm using google trends widget to show some stuff on my website, but it comes with an annoying and ugly looking footer which i wanted very much to remove

enter image description here

if I run javascript code in the console it can easily be removed

like:

let c = document.querySelector("body > div > trends-widget > ng-include > widget > div > div > ng-include:nth-child(3)");
c.parentElement.removeChild(c);

this will work fine if used in the chrome dev console, but if try to run this code in the page html it does nothing ( i guess there is something related with cors blocks)

does anyone know any way to edit a third party iframe or just remove this annoying google footer?

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!