Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //place the following in your Firebug Javascript command editor and run after searching for "zerg rush" on google.com
- //slow down the interval (eg: 1500) to make the results more "visual"
- setInterval("click_zergs( )", 500);
- function click_zergs( ){
- divs = document.getElementsByTagName('div');
- div_len = divs.length;
- for(i = 0; i < div_len; i++){
- t_div = divs[i];
- if(t_div.className == 'zr_zergling_container'){
- var event = document.createEvent("MouseEvents");
- event.initMouseEvent("mousedown", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
- t_div.dispatchEvent(event);
- //uncomment below to eliminate zerg immediately
- //t_div.dispatchEvent(event);
- //t_div.dispatchEvent(event);
- }
- }
- }
Add Comment
Please, Sign In to add comment