J
J
jorshjorsh952017-08-06 00:28:46
JavaScript
jorshjorsh95, 2017-08-06 00:28:46

Track the url change and replace the event handler?

Hello everyone, I am writing an extension for chrome, everything works fine until it comes to ajax sites, vk, yandex images, etc.
I need to slightly change the content on reboot, tell me how can this be implemented?
onhashchange - doesn't work unfortunately :c

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2017-08-06
@Sanasol

https://developer.mozilla.org/en/docs/Web/API/Muta... in general.
https://stackoverflow.com/a/27363569
to catch ajax like this, but you need to be sure that sites use it and that your code is working out earlier.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question