Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

193
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda