Skip to content

Instantly share code, notes, and snippets.

@x43x61x69
Created September 3, 2021 15:19
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 x43x61x69/93bbef2e73008142238f1681c06c45df to your computer and use it in GitHub Desktop.
Save x43x61x69/93bbef2e73008142238f1681c06c45df to your computer and use it in GitHub Desktop.
ELF Auto CAPTCHA
// ELF Auto CAPTCHA
// URL Pattern:
// - https://www.elf.com.tw/login.aspx
window.addEventListener('load', function () {
const formData = new FormData();
formData.append('p', 'ELF_Identify');
fetch('GetSession.ashx', {
method: 'POST',
body: formData
})
.then(function(response) {
return response.text();
})
.then(function(code) {
console.log('CAPTCHA: ' + code);
document.getElementById('txtCaptcha').value = code;
});
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment