0

I am building a Chrome extension that is supposed to replace all elements of a certain class with something else. It works on the initial page load, but when you scroll down to content that was not included on the original page load, it does not.

I know I need some sort of event listener maybe that calls the function again when scrolling down or loading new content, but nothing seems to work. I've tried document.onload, window.onload, etc., even tried using jquery waypoints, but to no success.

Does anyone know the simplest way to do this?

Jessie Richardson
  • 938
  • 2
  • 9
  • 24

0 Answers0