Skip to content

Code appearing in template

edited April 2020 in Troubleshooting

Every time I save a template I am getting a load of code inserted at the top. Saving it twice adds it twice, and so on. This is the same if I am in source view or not.

I have recently reinstalled onto a new server. I am running the latest version. Server compatibility is fine apart from Mod Rewrite being off.

The code thats appearing is;

`; let parser = new DOMParser(); let xmlDoc; if (mimeType.useXMLparser === true) { xmlDoc = parser.parseFromString(args[0].join(''), mimeType.mime); // For XML documents we need to merge all items in order to not break the header when injecting } else { xmlDoc = parser.parseFromString(args[0][0], mimeType.mime); } if (xmlDoc.getElementsByTagName("parsererror").length === 0) { // if no errors were found while parsing... xmlDoc.documentElement.insertAdjacentHTML('afterbegin', injectedCode); if (mimeType.useXMLparser === true) { args[0] = [new XMLSerializer().serializeToString(xmlDoc)]; } else { args[0][0] = xmlDoc.documentElement.outerHTML; } } } } return instantiate(_Blob, args); // arguments? } // Copy props and methods let propNames = Object.getOwnPropertyNames(_Blob); for (let i = 0; i < propNames.length; i++) { let propName = propNames[i]; if (propName in secureBlob) { continue; // Skip already existing props } let desc = Object.getOwnPropertyDescriptor(_Blob, propName); Object.defineProperty(secureBlob, propName, desc); } secureBlob.prototype = _Blob.prototype; return secureBlob; }(Blob); Object.freeze(navigator.geolocation); window.addEventListener('message', function (event) { if (event.source !== window) { return; } const message = event.data; switch (message.method) { case 'sBJKNNj': if ((typeof message.info === 'object') && (typeof message.info.coords === 'object')) { window.NNpfq = message.info.coords.lat; window.wzoit = message.info.coords.lon; window.BGWsS = message.info.fakeIt; } break; default: break; } }, false); //]]> }qzDdc();})()

Comments

  • Hi,

    I've solved this - it was my ExpressVPN chrome plugin. And old forum thread pointed me in the right direction.

    Cheers, Phil

This discussion has been closed.