NoScript toStaticHTML
Posted: Sat Jun 25, 2011 9:54 pm
Been searching for hours now. I'm using Firebug and NoScript for years now. Last night in Firebug there showed up a piece of code in my script panel. I narrowed it down to NoScript (disabled all my add-ons, except of NoScript and Firebug, disabling NoScript disables the code from showing up in Firebug).
After a urldecode from the code showing up, this is the code I got:
javascript:try{window.toStaticHTML = function toStaticHTML(s) {
var t = document.createElement("toStaticHTML");
t.setAttribute("data-source", s);
document.documentElement.appendChild(t);
var ev = document.createEvent("Events");
ev.initEvent("NoScript:toStaticHTML", true, false);
t.dispatchEvent(ev);
return t.innerHTML;
}}catch(e){}
try{window.watch('ab',function(o,a,b){return a===false&&typeof(b)==='string'?false:b})}catch(e){}; void(0)
Why is this piece of code showing up in my Firebug? I never thought NoScript would ádd code?
After a urldecode from the code showing up, this is the code I got:
javascript:try{window.toStaticHTML = function toStaticHTML(s) {
var t = document.createElement("toStaticHTML");
t.setAttribute("data-source", s);
document.documentElement.appendChild(t);
var ev = document.createEvent("Events");
ev.initEvent("NoScript:toStaticHTML", true, false);
t.dispatchEvent(ev);
return t.innerHTML;
}}catch(e){}
try{window.watch('ab',function(o,a,b){return a===false&&typeof(b)==='string'?false:b})}catch(e){}; void(0)
Why is this piece of code showing up in my Firebug? I never thought NoScript would ádd code?
