i was testing my extension and i thought everything is fine until i moved my mouse cursor on an ad in stackoverflow and w3school and some other websites! my mousemove event doesnt work on ads. i dont know why. my event handler is:
window.handler = window.handler || function (e) {
console.log("on");
document.querySelectorAll(".x_place_ext")[
document.querySelectorAll(".x_place_ext").length - 1
].textContent = e.clientX;
document.querySelectorAll(".y_place_ext")[
document.querySelectorAll(".y_place_ext").length - 1
].textContent = e.clientY;
};
let positions = document.querySelectorAll("#positions_container_ext");
positions = positions[positions.length - 1];
document
.querySelector("html")
.addEventListener("mousemove", window.handler);
i have no idea why these codes dont work on ads in websites. can you halp me?