H
H
habrdima2016-06-07 18:01:04
JavaScript
habrdima, 2016-06-07 18:01:04

How to detect a page change, for example through a chrome extension?

Using the extension, I add code to the page, but when you go to internal links, the site probably uses content loading, and my code in this case does not work, only if you reload the page, you need to determine that the page has changed in certain criteria, how to do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rou1997, 2016-06-07
@Rou1997

There are Mutation Events, and you can also work not at the page level, but at the HTTP level, including AJAX.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question