Search code examples
javascriptadblock

Does Adblock+ stop scripts called "tracker"?


It seems that my script for playing tracker music files ( .xm/.s3m/.it ) that I inadvertently named "tracker.js" only works if I disable Adblock+

If that's the case, are there any other keywords that should be avoided when naming files, to save tearing my hair out in future ?


Solution

  • Adblock Plus works by two mechanisms:

    1) A filter list which includes specific rules for specific sites.

    2) A set of generic filter rules which apply broadly to all sites.

    It's the second one that can get you in trouble when naming page elements.

    As a general rule, avoid all element names that include the word "ad": "adbanner", "advert", "adarea", etc. These have a high likelihood of being filtered by generic filters.

    Many adblockers have their own set of rules these days, but EasyList is still the most widely used. You can check the generic names here:

    https://easylist.to/easylist/easylist.txt

    You can also do a search for Adblock filters targeting specific elements on your site here:

    https://blockadblock.com/search-adblock-filters.php