you are viewing a single comment's thread
view the rest of the comments
[–] 12 points 1 day ago (2 children)

yep for websites that's literally just checking if their ad element exists in the DOM tree.

const myAdElementSelector = "#fuckingAd";
const myAdElement = document.querySelector(myAdElementSelector);
if (!myAdElement) return "yes user is using adblocker";

simple as.

or maybe not honestly i don't know i just wanted everyone to know i know javascript.

  • source
  • parent
  • hideshow 2 child comments