Answer the question
In order to leave comments, you need to log in
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>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question