Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

168
Views
mousemove event doesnt work on ads in chrome extension

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?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!