Google's "zerg rush" zerg killer
This code is intended to find and kill all zergs on Googles "Zerg Rush" easter egg.

Run the code in Chrome's developer console:

    zerg = $x("//div[@class='zr_zergling_container']");
    killZerg();
    function killZerg() {
    setTimeout("killZerg()", 1000);
    for (i =0;i<zerg.length;i++){ var evt = document.createEvent("MouseEvents");
    evt.initMouseEvent("mousedown", true, true, window,0, 0, 0, 0, 0, false,false, false, false, 0, null); zerg[i].dispatchEvent(evt);}
    }

The problem is the `zer = ..` line should be in the killZerg function, so that new zergs are found, and killed.  When the `zerg = ..` line is moved in the killZerg function, console shows this error: 

> ReferenceError: $x is not defined


Google's "zerg rush" zerg killer
===

This code is intended to find and kill all zergs on Googles "Zerg Rush" easter egg.

Run the code in Chrome's developer console:

    zerg = $x("//div[@class='zr_zergling_container']");
    killZerg();
    function killZerg() {
    setTimeout("killZerg()", 1000);
    for (i =0;i<zerg.length;i++){ var evt = document.createEvent("MouseEvents");
    evt.initMouseEvent("mousedown", true, true, window,0, 0, 0, 0, 0, false,false, false, false, 0, null); zerg[i].dispatchEvent(evt);}
    }

The problem is the `zer = ..` line should be in the killZerg function, so that new zergs are found, and killed.  When the `zerg = ..` line is moved in the killZerg function, console shows this error: 

> ReferenceError: $x is not defined

