Last active
February 28, 2018 00:36
-
-
Save jnankin/4e23f5a9c0dc3a3308e0a2358549cbde to your computer and use it in GitHub Desktop.
Empower IL - Fast Form Submission Script
This file contains 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
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