Skip to content

Instantly share code, notes, and snippets.

@brianswisher
Created November 29, 2016 00:24
Show Gist options
  • Save brianswisher/7af09791c284b2fcf39a832014dc55a0 to your computer and use it in GitHub Desktop.
Save brianswisher/7af09791c284b2fcf39a832014dc55a0 to your computer and use it in GitHub Desktop.
Console Agent
window.name=`
()=>{
const i=0
function step(num){window.name = window.name.split('i='+num).join('i='+(num+1))}
const commands=[
()=>{
step(0)
document.forms[0].username.value = 'username'
document.forms[0].password.value = 'password'
},
()=>{
step(1)
document.getElementById('submit').click()
},
()=>{
step(2)
document.querySelector('#filterOverview').click()
}
]
commands[i]()
}
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment