hi... some code displays when i open a web page... i copied the info... can i submit and ask what is happening?
150129... this has been displaying often when i open a webpage in firefox... i have to close the page & reopen it to get it to display without this... whats going on??
In address bar: https://sc1.checkpoint.com/dev/abine/scripts/inject.js
Displayed:
(function () {
// tell toolbar that inject was successful dntPageEvents("hello");
// return if already injected if (window.dntToolbarClicked) return;
function sendPageEvent(action, params, callback) { var documentElement = document.documentElement; var element = document.createElement("DNTPDataElement"); element.setAttribute("action", action); if (params) { element.setAttribute("param", "[\"" + params + "\"]"); } element.style.display = 'none'; documentElement.appendChild(element);
var fn = function () { if (callback) callback(element.innerHTML); element.parentNode.removeChild(element); };
if (!document.addEventListener) { // IE8 documentElement.DNTPPageEventResponse = 0; var listener = function(event){ if (event.propertyName === 'DNTPPageEventResponse') { documentElement.detachEvent('onpropertychange', listener); setTimeout(fn, 0); } }; documentElement.attachEvent('onpropertychange', listener); var triggerEvent = function (retry) { var triggerElement = document.getElementById('DNTPPageEvent'); if (!triggerElement) { if (retry < 40) setTimeout(function(){triggerEvent(retry+1)}, 50); return; } triggerElement.setAttribute('element', element); triggerElement.click(); }; triggerEvent(0); } else { if (document.all) { // IE9 element.onclick = fn; var evt = document.createEvent("CustomEvent"); evt.initCustomEvent("DNTPPageEvent", true, true, null); } else { // all other browsers element.addEventListener('click', fn, true); var evt = document.createEvent("Events"); evt.initEvent("DNTPPageEvent", true, false); } setTimeout(function () { element.dispatchEvent(evt); }, 50); } }
function iconChange(e) { e = e || event; var target = e.target || e.srcElement; var data = target.innerHTML;
var timer = setInterval(function () { try { if (typeof dntPageEvents == "function") { clearInterval(timer); dntPageEvents(data); } }catch (e) { } }, 50); }
var listener = document.createElement('div'); listener.setAttribute('id', 'zaIconChangeListener'); listener.setAttribute('dntpIgnore', 'true'); listener.style.display = 'none'; document.documentElement.appendChild(listener);
if (listener.addEventListener) listener.addEventListener('click', iconChange, true); else if (listener.attachEvent) listener.attachEvent('onclick', iconChange);
window.dntToolbarClicked = function (pos) { sendPageEvent('toolbarClicked', pos); sendPageEvent('refreshIcon'); };
window.dntUpdateIcon = function () { sendPageEvent('refreshIcon'); };
sendPageEvent('refreshIcon');
})();
All Replies (5)
A javascript file is not a web page. The extension ".js" refers to a javascript file. If you copy that to the address bar and hit Return, you see the listing of the javascript file. That is what is supposed to happen.
I thing he wants to know why the program is being displayed instead of running as it should.
Please tell us how this page came up? What site were you on? What were you trying to do at the time?
Are you using software from Abine like Blur (Formerly DoNotTrackMe)?
Start Firefox in Safe Mode to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
- Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
- Do NOT click the Reset button on the Safe Mode start window
Okulungisiwe
james_s said
150129... this has been displaying often when i open a webpage in firefox... i have to close the page & reopen it to get it to display without this... whats going on?? In address bar: https://sc1.checkpoint.com/dev/abine/scripts/inject.js Displayed: (function () { // tell toolbar that inject was successful dntPageEvents("hello"); // return if already injected if (window.dntToolbarClicked) return; function sendPageEvent(action, params, callback) { var documentElement = document.documentElement; var element = document.createElement("DNTPDataElement"); element.setAttribute("action", action); if (params) { element.setAttribute("param", "[\"" + params + "\"]"); } element.style.display = 'none'; documentElement.appendChild(element); var fn = function () { if (callback) callback(element.innerHTML); element.parentNode.removeChild(element); }; if (!document.addEventListener) { // IE8 documentElement.DNTPPageEventResponse = 0; var listener = function(event){ if (event.propertyName === 'DNTPPageEventResponse') { documentElement.detachEvent('onpropertychange', listener); setTimeout(fn, 0); } }; documentElement.attachEvent('onpropertychange', listener); var triggerEvent = function (retry) { var triggerElement = document.getElementById('DNTPPageEvent'); if (!triggerElement) { if (retry < 40) setTimeout(function(){triggerEvent(retry+1)}, 50); return; } triggerElement.setAttribute('element', element); triggerElement.click(); }; triggerEvent(0); } else { if (document.all) { // IE9 element.onclick = fn; var evt = document.createEvent("CustomEvent"); evt.initCustomEvent("DNTPPageEvent", true, true, null); } else { // all other browsers element.addEventListener('click', fn, true); var evt = document.createEvent("Events"); evt.initEvent("DNTPPageEvent", true, false); } setTimeout(function () { element.dispatchEvent(evt); }, 50); } } function iconChange(e) { e = e || event; var target = e.target || e.srcElement; var data = target.innerHTML; var timer = setInterval(function () { try { if (typeof dntPageEvents == "function") { clearInterval(timer); dntPageEvents(data); } }catch (e) { } }, 50); } var listener = document.createElement('div'); listener.setAttribute('id', 'zaIconChangeListener'); listener.setAttribute('dntpIgnore', 'true'); listener.style.display = 'none'; document.documentElement.appendChild(listener); if (listener.addEventListener) listener.addEventListener('click', iconChange, true); else if (listener.attachEvent) listener.attachEvent('onclick', iconChange); window.dntToolbarClicked = function (pos) { sendPageEvent('toolbarClicked', pos); sendPageEvent('refreshIcon'); }; window.dntUpdateIcon = function () { sendPageEvent('refreshIcon'); }; sendPageEvent('refreshIcon'); })();
REPLY TO ANSWERS:
yes, i use blur and a couple of other security and ad blocker add-ons.
actually, just now, it was the "firefox help" screen that always displays the code.
based on info provided by cor-el, i started disabling add-ons... I use zonealarm firewall and antivirus which installs its own toolbar... when i disabled blur & other add-ons in turn, the problem continued... when i disabled the zonealarm toolbar, the problem stopped.
so im going to surmise that its the zonealarm toolbar causing the problem... ill uninstall it
great product in firefox... been using it for years... like everything about it... and now the support too!
thank you for the help.... cheers!!
If it turns out that is the cause, contact the programer or support.