Skip to content

Instantly share code, notes, and snippets.

@jnankin
Last active February 28, 2018 00:36
Show Gist options
  • Save jnankin/4e23f5a9c0dc3a3308e0a2358549cbde to your computer and use it in GitHub Desktop.
Save jnankin/4e23f5a9c0dc3a3308e0a2358549cbde to your computer and use it in GitHub Desktop.
Empower IL - Fast Form Submission Script
async function loadScript(url) {
let response = await fetch(url);
let script = await response.text();
eval(script);
first_name = 'YOUR_FIRST_NAME'
last_name = 'YOUR_LAST_NAME'
phone_number = 'YOUR PHONE NUMBER'
email = 'YOUR EMAIL ADDRESS'
inputs = $('input')
$(inputs[0]).val(first_name)
$(inputs[1]).val(last_name)
$(inputs[2]).val(phone_number)
$(inputs[3]).val(email)
$(inputs[4]).val(email)
}
let scriptUrl = 'http://zeptojs.com/zepto.min.js'
loadScript(scriptUrl);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment