My Greasemonkey script is designed to run on Amazon's search results page. However, I've noticed that when the "Next Page" button is clicked and new results are dynamically loaded, my script only executes once after the initial page load.
Here's an example scenario: If I visit an Amazon page like this one and my script processes the results, clicking the "Next Page" link at the bottom of the page causes the script to stop working because it doesn't apply to the updated results.
I'm looking for a solution to ensure that my script can handle the new set of results whenever they are loaded due to user interaction with the pagination links. How can this be achieved?