3a9LL / attackapi

Automatically exported from code.google.com/p/attackapi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enchancement, make a hijackVar? code provided.

GoogleCodeExporter opened this issue · comments

make a function hijackVar for logging everytime a variable's content is
accessed.

code:
    AttackAPI.dom.hijackVar = function (varo,callback) {
        if(varo.hijacked)return varo;
        var varn=Object();
        varn.original=varo;
        varn.valueOf=varn.toSource=varn.toString=function () {
            if(callback)callback();
            return this.original;
        };
    };


Original issue reported on code.google.com by sirdarckcat on 12 Aug 2007 at 6:49

Original comment by pdp.gnucitizen on 10 Feb 2011 at 4:51

  • Changed state: WontFix