M
M
miner21002020-10-22 07:29:33
Ad blocking
miner2100, 2020-10-22 07:29:33

How to cancel the filter action in Ublock Origin?

on one site, an anti adblock script is installed that checks the display of the element:

<div id="ad-banner" class="ad-banner" style="height: 5px; width: 5px; position: absolute; top: 0;"></div>

var adBlock = $('#ad-banner');
  if (adBlock.filter(':visible').length === 0 ||
      adBlock.filter(':hidden').length > 0 ||
      adBlock.height() === 0) { ...

It turns out that first ublock works (filter ##.ad-banner, ###ad-banner), and then anti adblock works, which checks for the presence of these elements and closes access to the site. How to disable the specified adblock filters on one specific site?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
shurshur, 2020-10-22
@shurshur

For example, like this:
site.com##script:contains(adBlock)
Sites that dare to turn off the adblock should suffer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question