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

192
Visualizações
How to filter through newsfeed

I've build chrome extension where it takes out newsfeeds from social media pages. However, I'd like to keep posts from specific social media accounts that users follow w/o injecting but filtering. The problem is that sometimes(if not most of the times) the posts might not be in the preloaded feed & all social media companies use lazy loading. Therefore, I am really looking for creative solutions to solve this intriguing problem.

Unsuccessful methods I've tried:

  • deleting posts so new one comes
  • scrolling inside context
over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

This question does not really fit that well within Stack Overflow, IMHO, because it is not about code, but about programming principles in general.

Thus, no-one can give you an answer showing how your code should look like. But at least we can come up with advises on how to deal with your scenario.

My advise would be for you to:

  1. Debug the network traffic for each and every social media site your are supporting. Look for XHR requests at the network inspector, and inspect the responses to find which endpoint is responsible for fetching more content.
  2. In the Sources tab of the web inspector, Add a new XHR/fetch breakpoint for this URL
  3. Inspect the stack trace backwards, until you find a function or method call which is responsible for calling the content fetch
  4. Verify that when you call this function, content will load via XHR and will be injected in your network feed. If not, you may have to drill further down the rabbit hole, or continue single-stepping the execution to find which method/function is responsible for injection the newly loaded content into the document.
  5. When you have successfully managed to reliably reproduce this, your extension have to inject code into the page itself in order to trigger the content loading
over 4 years ago · Santiago Trujillo 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