Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

262
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda