Skip to Content

JavaScript File

URL: https://yandex.ru/ads/system/context.js
HTTP Status: 200 OK
MIME Type: text/javascript
Last Modified: Mon, 01 Jan 1601 00:00:00 GMT
Download Time: Less than a second
Cookies: yashr=4680033561713692812 receive-cookie-deprecation=1
Size: 358 KB
HTTP Headers:  12 headers
Links In:  1 pages
OK Issues: No issues found

1/*! v:1011800 b:default c:loaders/context */

2try{var cnc=function(e){if(!e||!e.toString)return!1;const t=e.toString();return/\[native code\]/.test(t)||/\/\* source code not available \*\//.test(t)}

3;cnc(Function.prototype.bind)?Function.prototype.__pbind=Function.prototype.bind:Function.prototype.__pbind=function(e,...t){let n=this;return function(...r){return n.apply(e,[...t,...r])}

4}

5,cnc(Array.prototype.reduce)?Object.defineProperty&&Object.defineProperty(Array.prototype,"__preduce",{enumerable:!1,iterable:!1,value:Array.prototype.reduce}

6):Object.defineProperty(Array.prototype,"__preduce",{enumerable:!1,iterable:!1,value:function(e){if(null==this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof e)throw new TypeError(e+" is not a function");var t,n=Object(this),r=n.length>>>0,o=0;if(arguments.length>=2)t=arguments[1];else{for(;o<r&&!(o in n);)o++;if(o>=r)throw new TypeError("Reduce of empty array with no initial value");t=n[o++]}

7for(;o<r;o++)o in n&&(t=e(t,n[o],o,n));return t}

8}

9)}

10catch(e){}

11!function(){var e,t,n,r,o,i,a={43699:function(e,t,n){"use strict";t.a=void 0,t.a=function(){(0,n(1164).SS)(),(0,n(29479).W)(),(0,n(21760).Z)(),(0,n(76079).c)(),(0,n(73133).K)(),(0,n(25479).Q)(),(0,n(40755).jI)(),(0,n(78257).b)();var e=(0,n(38710).BT)();e.AdvManager||(0,n(60572).A)(),e.processCallbacks(),e.staticOnceLoaded||(e.staticOnceLoaded=!0,(0,n(13691).n)())}

12}

13,88205:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}

14),t.DEBUG_CONSOLE_ENABLED_LOCAL_STORAGE_PARAMETER=void 0,t.DEBUG_CONSOLE_ENABLED_LOCAL_STORAGE_PARAMETER="adfoxDebugConsoleEnabled"}

15,29916:function(e,t,n){"use strict";function r(e){i&&n(5945)((function(t){e(t.debugConsole)}

16),(function(e){console.error(e,"External debug bundle loading error")}

17))}

18function o(e,t,n){void 0===n&&(n="info");var o=performance.now();r((function(r){r.log(e,o,n,t)}

19))}

20Object.defineProperty(t,"__esModule",{value:!0}

21),t.isAdConsoleEnabled=t.enableAdConsole=t.openAdConsole=t.isDebugMode=t.setCurrentRequestParams=t.createRequest=t.setCurrentSessionParams=t.setCurrentSessionState=t.createSession=t.error=t.warning=t.setPlaceParams=t.log=t.createRecord=void 0,t.createRecord=function(e,t){var n=performance.now();r((function(r){r.createRecord(e,n,t)}

22))}

23,t.log=o,t.setPlaceParams=function(e,t){r((function(n){n.setPlaceParams(e,t)}

24))}

25,t.warning=function(e,t){o(e,t,"warning")}

26,t.error=function(e,t){o(e,t,"error")}

27,t.createSession=function(e,t){var n=performance.now();r((function(r){r.createSession(e,n,t)}

28))}

29,t.setCurrentSessionState=function(e,t){var n=performance.now();r((function(r){r.setCurrentSessionState(e,n,t)}

30))}

31,t.setCurrentSessionParams=function(e,t){r((function(n){n.setCurrentSessionParams(e,t)}

32))}

33,t.createRequest=function(e,t){var n=Date.now();r((function(r){r.createRequest(e,n,t)}

34))}

35,t.setCurrentRequestParams=function(e,t){r((function(n){n.setCurrentRequestParams(e,t)}

36))}

37;var i=!1;t.isDebugMode=function(){return i}

38,t.openAdConsole=function(e){e&&(i=!0),r((function(t){e?t.open():t.close()}

39))}

40,t.enableAdConsole=function(){return n(74987).safeLocalStorage.setItem(n(88205).DEBUG_CONSOLE_ENABLED_LOCAL_STORAGE_PARAMETER,"1"),"Reload page to view console"}

...

</html>