File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
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
+ } ) ( ) ;
You can’t perform that action at this time.
0 commit comments