I have installed an extension in Chrome which opens up a pop-up tab when I click anywhere on the page (even if there is no link). When I see the "sources" tab in the "Developer Tools", it has a lot of extra scripts (like more than a hundred different scripts from hundreds of different sources) loaded which are never present in the original web page. I am trying to find out what particular script causes this. How do I do this?
Here's what I have already tried:
I tried adding breakpoint on "mousedown" event listener. Turns out there are a couple of scripts adding event listener on that so I can't say which particular script is that.
I also tried go through the div
and iframe
that have attributes like height: 0, left: 0
or top: -999, left: -999
but there are multiple such div
s.
Any help?
Try overriding window.open:
window.open = function () { debugger; }
or
window.open = function () { console.trace(); }
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.