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

282
Visualizações
How to keep element selectors (class names, IDs, etc) updated in Chrome extensions?

I'm working on a Chrome extension that loads on top of another site, because of that I need to select some of that site's elements by class name or ID, and everything works fine until the site releases an update. Then every class name is different and some IDs may be missing or even changed. So what is the best practice to prevent my extension from breaking? Should I just keep the class names updated myself?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

you may check an anchestor node that you know its properties won't change and then loop throught its inner nodes or you can periodically check for any site updates by your own and then "instruct" the extension about the nodes to be selected. This can be done through a web service that you will develop on your own server and then query through the extension

about 4 years ago · Juan Pablo Isaza Relatório
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