Как расшифровать jaavscript?

Здравствуйте. Имеется вот такой скрипт, встраивается в head:
<script type="text/javascript" src="//dvaslona.ru/yandexsovetnik/assets/js/client.js" charset="UTF-8" async></script>

Его содержимое:
!function(b,c){t="script",a=document.createElement(t),a.async=1,a.src="//www.dvaslona.ru/yandexsovetnik/api/method/getblocker-js?host="+window.location.host,m=c.getElementsByTagName(t)[0],m.parentNode.insertBefore(a,m)}(window,document);


Содержимое этого скрипта обращается к этому:
https://www.dvaslona.ru/yandexsovetnik/api/method/getblocker-js/?host=td-kvartal.ru

Его содержимое:
"use strict";!function(){function f(a){try{var b={opacity:"0","pointer-events":"none",background:"transparent",transition:"none","box-shadow":"none","border-color":"transparent"},c=document.createElement("style");c.type="text/css";var d="#"+a.id,e="";for(var f in b)b.hasOwnProperty(f)&&(e+=f+":"+b[f]+"!important;");a.id&&(c.appendChild(document.createTextNode(d+","+d+" *,"+d+":hover{"+e+"}")),document.body.appendChild(c))}catch(a){}}function g(){try{var a=document.querySelectorAll("div");a=[].slice.call(a);var b=!1;return a.forEach(function(a){if(a.querySelector('[href*="sovetnik.market.yandex.ru"]'))return f(a),j(),b}),b}catch(a){}}function h(){try{var a=document.getElementsByTagName("html");if(void 0!==a&&a.length){a=a[0];var b=a.style.position,c=a.style.marginTop;a.setAttribute("style","position:"+b+";margin-top:"+c+";")}if("object"==typeof a&&"string"==typeof a.getAttribute("mbr-initial-position")){var d=a.getAttribute("mbr-initial-position"),e=a.getAttribute("mbr-initial-margin-top");return a.setAttribute("style","position:"+d+";margin-top:"+e+";"),j(),!0}}catch(a){}return!1}function i(){try{if(!e){var a=document.createElement("script");a.setAttribute("src","//www.dvaslona.ru/yandexsovetnik/api/method/stat/?host="+window.location.host),a.setAttribute("id","ysblds"),document.body.appendChild(a),setTimeout(function(){document.getElementById("ysblds").remove()},2e3),e=!0}}catch(a){}}function j(){b<150&&(b=150,d=c-parseInt(.1*c)),i()}function l(){try{"function"==typeof MutationObserver?k.init():a=setInterval(function(){h(),g(),d>=c&&clearInterval(a),d++},b)}catch(a){}}var a,b=50,c=5e3,d=0,e=!1,k={observer:{},stop:function(){var a=this;setTimeout(function(){"object"==typeof a.observer&&a.observer.disconnect()},1e3)},check:function(a){var b=this;if("childList"===a.type&&g()&&setTimeout(function(){b.stop()},200),"attributes"===a.type&&"style"===a.attributeName&&"string"==typeof a.target.getAttribute("style")){var c=a.target.getAttribute("mbr-initial-margin-top"),d=parseInt(a.target.style.marginTop);c!=d&&d<=38&&(g(),setTimeout(function(){g(),b.stop()},200),a.target.setAttribute("style","margin-top:"+c+"!important;"))}},init:function(){try{var a=this;this.observer=new MutationObserver(function(b){b.forEach(function(b){a.check(b)})});var b={attributes:!0,childList:!0},c=document.getElementsByTagName("html")[0];this.observer.observe(c,b)}catch(a){}}};try{l()}catch(a){}}();


Этот сервис блокировки - бесплатный, но все-же хотелось-бы не зависеть от него а поместить скриптом на свой сайт.
Помогите пожалуйста ув. знатоки javascript разобрать его, уже часа 3 пытаюсь - все никак, не хочет работать, советник все равно вылазиет
  • Вопрос задан
  • 239 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы