When the website first loads i easily iterate through all images with $(‘img’)
But if the website loads new images, especially like google/bing image search, is there some way to catch an event for that or something in order to handle those images too?
When the website first loads i easily iterate through all images with $(‘img’) But
Share
You can use a DOM mutation observer to detect when a new
<img>element is added. See this MDN post for more details. You’ll want to look for theaddedNodesproperty of theMutationRecordobject.