Skip to content

Instantly share code, notes, and snippets.

@Misaka-0x447f
Created September 4, 2021 04:30
Show Gist options
  • Save Misaka-0x447f/a95ff24be9a9e63b593dfd8a31d7927d to your computer and use it in GitHub Desktop.
Save Misaka-0x447f/a95ff24be9a9e63b593dfd8a31d7927d to your computer and use it in GitHub Desktop.
// 粘贴到 console 里就可以了
let r = () => {
const temp = Math.random; Math.random = () => 0; document.getElementById('random').click(); Math.random = temp;
}
let s = () => {
let t;
t = setInterval(() => {
let e = document.getElementById('lifeTrajectory')
if (!e) clearInterval(t)
else e.click()
}, 5);
}
let rbutton = document.createElement('button')
rbutton.onclick = r
// 出现十连抽按钮时使用
rbutton.innerHTML = '🎰'
rbutton.setAttribute('style', 'position: fixed; top: 0; left: 0; z-index: 10000; font-size: 30px;')
document.body.appendChild(rbutton)
let sbutton = document.createElement('button')
sbutton.onclick = s
// 自动快进
sbutton.innerHTML = '⏩'
sbutton.setAttribute('style', 'position: fixed; top: 0; left: 60px; z-index: 10000; font-size: 30px;')
document.body.appendChild(sbutton)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment