Created
July 4, 2020 06:44
-
-
Save shsunmoonlee/c10cc89b07fa752fac0222fc9ca4eb9e to your computer and use it in GitHub Desktop.
blocket automated find tenant like script
This file contains hidden or 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
let clickButton = () => { | |
let button = document.querySelector('#app > div > div.FocusContainer > div > div > div.MatchingUserEvaluationHandler > div.Submit > div > div.button.apply') | |
button.click() | |
} | |
let intervalID | |
let startAutomaticInterval = (seconds) => { | |
if(intervalID) { clearTimeout(intervalID) } | |
intervalID = setInterval(clickButton, seconds*1000) | |
} | |
// every 3 seconds seem to have no issues with api limit | |
startAutomaticInterval(3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment