I have chrome extension, with content script. Here's a part the manifest:
{
"permissions": [
"https://*/*","http://*/*"
],
"content_scripts": [
{
"matches": [
"https://*/*","http://*/*"
],
"css": [
"src/inject/inject.css"
],
"js": [
"js/jquery/jquery.min.js",
"src/inject/inject.js"
]
}
]
}
As you can see inject script will process all kinds of pages. Some of them will be classic request loaded pages (stateful), some of them will be angular-like apps (stateless).
My question is how to detect and handle page html changes while page was already loaded? After each change i would like to add some addtion markup do the page DOM.
Do you have any clues how to do that?