Can a Chrome code snippet be used to detect changes to the DOM?

有些话、适合烂在心里 提交于 2021-02-11 15:49:54

问题


Hi I created this question - Play a sound/notification each time a particular user messages on an existing website - but realized it warranted a more specific question.

The Answerer referenced using Chrome code snippets as a solution - but then someone told me this may not work since the code needs to actively "watch" for changes and Chrome code snippets "only load once."

Who is right, can Chrome code snippets be used to watch for DOM changes and execute code based on them?

来源:https://stackoverflow.com/questions/61327204/can-a-chrome-code-snippet-be-used-to-detect-changes-to-the-dom

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!