M
M
madc0de2018-11-27 15:05:24
Yandex
madc0de, 2018-11-27 15:05:24

Actual problem with Yandex advisor, how to solve?

There is a code that blocks the output of the adviser in all browsers, except for the Yandex browser:

<script>
(function(open) {  
    XMLHttpRequest.prototype.open = function(method, url, async, user, pass) { 
      
        this.addEventListener("readystatechange", function() {  
        
      var parser = document.createElement('a')
      parser.href = url;
      if( parser.hostname == 'sovetnik.market.yandex.ru' ) {
        this.abort();
        }
            
        }, false);  
        open.call(this, method, url, async, user, pass);
    };  
})(XMLHttpRequest.prototype.open);
</script>

I tried more than 8 scripts on the Runet, nothing helped
. Does anyone have a code that blocks the strip in YANDEX.browser.
Paid solution with 2500+ monthly subscription is too expensive. But they work.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question