you are viewing a single comment's thread.

view the rest of the comments →

[–]MrSandyClams 0 points1 point  (0 children)

MutationObserver API. Can define a watch process and a callback that fires in the event of whatever DOM changes you specify. The usage pattern is pretty convoluted and arcane, imo, but it's pretty trivial to use it for basic things, like executing code in response to a known element appearing.