When designing the site I decided, as usual in firefox, to view the markup, noticed an incomprehensible div with non-existent attributes and some sort of data. In other browsers this is not. And on some sites I check - it is there, on others it isn’t. I tried to disable all browser add-ons - the block does not disappear. Of course, you can reinstall Firefox, but I would like to know for the future that this screen this diva For div, from where it is generated? In web development recently, but before this has never noticed. That just did not change my mind: the hidden miner, and code-spy. Antivirus costs and does not swear. Here is the code:

<code> <div id="extwaiimpotscp" style="display:none" v="{8cda" f="ZXpoalpHRTVZMlUyTFRjNE9UTXROR1kwTnkxaFl6Y3dMV0UyTlRJeE5XTmxZekk0T0gwPQ==" q="4d3a5c00" c="63.22" i="67.51" u="20.96" s="8d4e4c40" w="false" vn="0tren"></div> </code> 

Raised to the main page by a community spirit member yesterday .

This question contains answers that can be both good and bad; the system offered them for verification.

  • one
    text information is better to attach as text: a) easier to read; b) can be copied; c) the search works. You can correct the question text by clicking below to edit the question text - aleksandr barakin

2 answers 2

There is currently no API for tracking the source of changes to the DOM, as far as I know. It is also not at all clear from the question what could be the reason for the appearance of the script. Therefore, I propose to use a small hack, maybe it will allow to trace the source of the changes:

 <script> function traceCall(old){ var _old = old; return function(){ console.log('[CALL] ', old, ' at ', new Error().stack); return old.call(this, arguments); }} document.body.append = traceCall(document.body.append) document.body.appendChild = traceCall(document.body.appendChild) </script> 

You can add this code after the body tag. It will track calls to the main DOM modification methods.

  • , I inserted this script into the markup, updated the page, looked into the console - no information, only the standard message "Switched to the page", etc. - Sanya S.
  • Try it at the diva to style it so that it is displayed: display: block - FLCL
  • I have already tried it before, and asked the height - it seemed like an empty place. monosnap.com/file/5kzWkWtDhp5j1fm4h3RpgJiF8M76dg - Sanya S.
  • If you add my script at the very beginning of the body and it does not help, then you cannot do without a complete search of the whole page - FLCL
  • I did not remove this script from the code when I applied display: block to a diva. And he (unknown div) is added on some sites I’ve visited and specifically checked by opening the inspector in Firefox. - Sanya S.

After two days of searching I found the cause. It turns out that I have not disabled all add-ons in FireFox. After turning off the "Google translator" div ceased to appear. Accordingly, after switching on again on the same sites an unknown div appeared in the footer. But now, at least, it is clear that this is not something harmful. Anyway, thanks for participating in the problem.