D
D
Danil2016-07-29 12:42:51
JavaScript
Danil, 2016-07-29 12:42:51

How to track in Google Chrome what script is changing an element?

There is an HTML element that always hangs on

element.style {
    display: none !important;
}

When deleted, the script overrides it. How can I find out what the script is?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2016-07-29
@Veneomin

Google Chrome has a special feature for catching such manipulations:
RMB on the element -> Break On -> Attrs Mods, then when the element changes, there will be a debugger that will pause the script and show where it happened
4ca35b8b801d49079b838e9b96074155.jpg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question