faceair
2015-10-24 01:33:15 +08:00
修复后的脚本 (主要是关闭按钮不能直接 click, 要模拟鼠标事件)
prize=function(){document.querySelector('div[clk="main:prize"]').click();setTimeout(close,500*Math.random()+500)};close=function(){var a=document.querySelector('div[clk="core:close"]');a&&(triggerMouseEvent(a,"mouseover"),triggerMouseEvent(a,"mousedown"),triggerMouseEvent(a,"mouseup"),triggerMouseEvent(a,"click"));prize()};function triggerMouseEvent(a,c){var b=document.createEvent("MouseEvents");b.initEvent(c,!0,!0);a.dispatchEvent(b)}prize();
不过也并没有什么卵用, 最后发现抽奖次数是有限的, 一会就抽完了