Skip to content

Instantly share code, notes, and snippets.

@special-character
Last active June 5, 2020 23:52
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 special-character/59bf63d5a62bf6b870046a43503266c9 to your computer and use it in GitHub Desktop.
Save special-character/59bf63d5a62bf6b870046a43503266c9 to your computer and use it in GitHub Desktop.
Sign Lease Script
// Super janky hack to scroll through my lease and click the signature button, then click the next page
var run7 = () => {
setTimeout(() => {
const signatures = document.getElementsByClassName('signature')
const initials = document.getElementsByClassName('initialHL')
console.log('SIGNATURES', signatures)
console.log('INITIALS', initials)
const sign = () => {
document.getElementsByClassName('btn btn btn-primary okClickSignature')[0].click()
}
const thingsToSign = [...signatures, ...initials]
thingsToSign.map((toSign, index) => {
setTimeout(() => {
toSign.click()
}, index * 1000)
setTimeout(() => {
document.getElementsByClassName('btn btn btn-primary okClickSignature')[0].click()
}, index * 1500)
})
setTimeout(() => {
document.getElementsByClassName('goto_next_page')[0].click()
setTimeout(() => run7(), 1500)
}, 4000)
}, 7000)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment