Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

191
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!