I want to detect when a specific part of a webpage changes and have the page refresh when it happens. Is this possible? For example, let's say there's a green, absolutely positioned element about 50px by 50px in the upper left corner of a page - I want the page to refresh whenever it turns red.
Basically what I'm trying to build is an overlay of a website that will detect when notifications pop up and refresh the page automatically. If there's other methods that are better than what I've come up with, please I'm open to anything.