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

213
Visualizações
How do I *keep* overflow as scroll or auto?

Some sites (notably twitter) like to set overflow:hidden, typically on either body or html, particularly when they pop up a modal window. With a chrome extension, I've set it to scroll as !important, but ... after a delay, it changes. Is there a way (short of turning off javascript entirely) to keep the overflow attribute where I set it?

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

0

You should share your code - however I think the best way to do this would be to listen to changes to the DOM (in the content script of your extension) and re-set the overflow to auto/scroll. You can use MutationObserver:

 let observer = new MutationObserver(mutations => {
    // Code here
 });
 observer.observe(document, { childList: true, subtree: true });
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