M
M
Marty McFly2020-07-06 18:35:12
Ad blocking
Marty McFly, 2020-07-06 18:35:12

Are there currently working free solutions for blocking Yandex Advisor?

Hello!
Are there currently working free solutions for blocking Yandex Advisor?
I used to use https://www.npmjs.com/package/kick_sovetnik but it doesn't work anymore.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya, 2020-07-06
@New_Horizons

$(function() {
  let sovetnikIntervalId = setInterval(function() {
    let a = document.querySelector('a[data-type="wrong-product"]');

    if (a !== null) {
      let sovetnikBlock = $(a).parents(':not(body,html)').last();

      sovetnikBlock.remove();

      document.getElementsByTagName('html')[0].setAttribute('style', '');

      clearInterval(sovetnikIntervalId);
    }

  }, 500);
});

I give. (Warning jquery)
PS Most likely, it will not work in the Yandex browser. it's built into the browser or something like that

G
granty, 2020-07-07
@granty

Yes. Set Content Security Policy headers on the site . She can block any browser extensions that interfere with the content of the site (including Yandex Advisor ).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question