Skip to content

Instantly share code, notes, and snippets.

@quantumsheep
Created January 23, 2020 22:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quantumsheep/922904592116c9745892fe5c034f4886 to your computer and use it in GitHub Desktop.
Save quantumsheep/922904592116c9745892fe5c034f4886 to your computer and use it in GitHub Desktop.
(function () {
const interval = {
min: 15000,
max: 30000,
}
function add_random() {
const peoples = document.querySelectorAll("button[id^=ember]:not(.artdeco-button--muted)")
const i = Math.floor(Math.random() * peoples.length)
const selected = peoples[i]
const next_interval = Math.random() * (interval.max - interval.min) + interval.min
console.log(`Next connect in ${next_interval / 1000} seconds`)
selected.click()
setTimeout(add_random, next_interval)
window.scrollTo(0,document.body.scrollHeight)
}
add_random()
})()
@quantumsheep
Copy link
Author

quantumsheep commented Jan 23, 2020

This script is meant to be used in the Developer Console.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment