Skip to content

Commit fb25ae3

Browse files
committed
initial commit
0 parents  commit fb25ae3

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

manifest.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"manifest_version": 3,
3+
"name": "Edusoft Auto In",
4+
"description": "This extension bypasses the captcha on International University - Ho Chi Minh City Edusoft page.",
5+
"version": "1.0.0",
6+
"content_scripts": [
7+
{
8+
"js": ["scripts/content.js"],
9+
"matches": ["https://edusoftweb.hcmiu.edu.vn/*"]
10+
}
11+
]
12+
}

scripts/content.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
function autoFill() {
2+
const captchaElement = document.querySelector(
3+
"#ContentPlaceHolder1_ctl00_lblCapcha"
4+
);
5+
const captchaInputElement = document.querySelector(
6+
"input[name='ctl00$ContentPlaceHolder1$ctl00$txtCaptcha'"
7+
);
8+
const captchaInputButton = document.querySelector(
9+
"#ContentPlaceHolder1_ctl00_btnXacNhan"
10+
);
11+
12+
// If have no element, it is mean we are already in
13+
if (captchaElement === null || captchaInputElement === null) {
14+
console.warn(
15+
"There are no captcha input element. The system might be detected as already in."
16+
);
17+
return;
18+
}
19+
const captchaValue = captchaElement.textContent;
20+
captchaInputElement.value = captchaValue;
21+
captchaInputButton.click();
22+
}
23+
24+
(async () => {
25+
autoFill();
26+
})();

0 commit comments

Comments
 (0)