Home > Software engineering >  Remove tracker javascript after </html> elemnt
Remove tracker javascript after </html> elemnt

Time:08-08

After moving app to shared hosting i see i have new javascript code after </html> tag. This code create big problems for ajax requests and other. I try to found script but i cant. I use Laravel framework and i have only custom js abd CDN jquery, bootstrap, dataTables and Select2 plugin included in page but on every request this code is here.

What i try:

  • First i try to put opened comment <!-- but not working.

  • Second what i try to create <div id="deleteThis"> and with javascript to remove all inner html with body onl oad event. Not work js is still there.

  • Third what i try is using jQuery $("#deleteThis").remove(). not working Check photo to see enter image description here

Does somebody have idea to remove this? I cant reinstall project becouse project is so big.

Thanks

enter image description here

enter image description here

CodePudding user response:

Did you try to open the site without chrome extension (via private browsing mode for example), it already happened to me that extensions add JavaScript in my files and that it causes problem because it is a development environment.

The "live server" can also add scripts, maybe it is involved. (But it seems to me not very probable).

  • Related