Last active
September 28, 2021 12:28
-
-
Save supersonictw/1256d731663f6898f992ff5828f3272b to your computer and use it in GitHub Desktop.
The inject script for popcat.click to help Taiwan get No.1.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
const app = document.getElementById("app").__vue__; | |
setInterval(()=>{ | |
app.bot=false; | |
app.accumulator = 800; | |
}, 5); | |
})(); |
其實只改accumulator
的話,sendStats
仍然會被觸發,
sendStats
的條件,實質上只有accumulator
和bot
。
counter
是為了累計觸發次數設立的,只應用於顯示觸發次數,
還是感謝你的貢獻就是((
歡迎一起按貓貓 /
是噢?因爲我拿原本大大的程式碼去試
從 XHR 去看是看不到有送出請求的... 所以才想說是不是有檢測 counter
THIS SCRIPT GET 1000 POPS
var event = new KeyboardEvent('keydown', {
key: 'g',
ctrlKey: true
});
setInterval(function(){
for (i = 0; i < 1000; i++) {
document.dispatchEvent(event);
}
}, 0);250
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
不確定原始碼寫在哪,但是 counter 沒有變動的話似乎不會觸發 sendStats。
因此基於大大提供的原始碼,我改成這樣: