Skip to content

Commit f1bf325

Browse files
committed
v1.2 bugFix update
1 parent f86f309 commit f1bf325

14 files changed

+276
-463
lines changed

.gitignore

-1
This file was deleted.

manifest.json

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "noCaptchaAi: CAPTCHA Solver",
4-
"version": "1.0",
4+
"version": "1.2",
55
"background": {
66
"service_worker": "src/background.js"
77
},
@@ -46,6 +46,16 @@
4646
"all_frames": true,
4747
"match_about_blank": false
4848
},
49+
{
50+
"matches": [
51+
"<all_urls>"
52+
],
53+
"js": [
54+
"src/iframesRefresh.js"
55+
],
56+
"all_frames": true,
57+
"match_about_blank": false
58+
},
4959
{
5060
"matches": [
5161
"<all_urls>"

popup.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ body,
88

99
body {
1010
padding: 3px;
11-
border: 3px solid #00000038;
11+
background-color: transparent;
12+
border: 3px solid #6b6d6def;
1213
width: 400px;
1314
height: fit-content;
1415
overflow-y: hidden;

popup.html

+8-4
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ <h3>Global Settings</h3>
5757
<small>Test Only New Challenges</small>
5858
</div>
5959
</label>
60+
6061
<button id="export">
6162
<p>Export Settings </p>
6263
</button>
@@ -158,12 +159,12 @@ <h1>noCaptchaAi</h1>
158159
<div id="apikey" class="api-key">
159160
<div title="https://dash.nocaptchaai.com" id="apikey-text">
160161
<a href="https://dash.nocaptchaai.com" target="_blank" rel="noopener noreferrer">
161-
Enter APIKEY : Visit Dash
162+
🔑 Enter APIKEY : Visit Dash
162163
</a>
163164
</div>
164165
<input type="text" placeholder="APIKEY" name="apikey" id="apikey-input" style="display: none" />
165166
<button title="Edit API Key" id="edit-button" class="edit-button">
166-
🖋️
167+
Edit
167168
</button>
168169
</div>
169170

@@ -208,7 +209,10 @@ <h3>hCAPTCHA</h3>
208209
<div id="hcModal" class="modal">
209210
<div class="modal-content">
210211
<div class="caphead">
211-
<h2>hCaptcha Config</h2>
212+
<div class="row">
213+
<h2>hCaptcha Config</h2>
214+
<a href="">Demo</a>
215+
</div>
212216
<span id="hcModalCloseButton">
213217
<img src="/icons/back.png" alt="CloseButton" srcset="" />
214218
<!-- &times; -->
@@ -460,7 +464,7 @@ <h2>Text OCR Captcha Config</h2>
460464
<a title="What's new in this version?" target="_blank" rel="noopener noreferrer" href=""></a>
461465
<a title="Current version" target="_blank" rel="noopener noreferrer"
462466
href="https://github.com/noCaptchaAi/chrome">
463-
<b id="version">v1.1</b></a>
467+
<b id="version">v1.2</b></a>
464468
</div>
465469
</div>
466470
</div>

popup.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
document.getElementById("imagePicker").addEventListener("click", function () {
23
chrome.runtime.sendMessage({ command: "ImageElementPicker" });
34
console.log("imagePicker");
@@ -494,20 +495,18 @@ const freebalurl = "https://free.nocaptchaai.com/balance";
494495

495496
const refreshData = async () => {
496497

498+
let Local = await chrome.storage.sync.get(null);
497499

498500
const refreshButton = document.getElementById("refresh-button");
499501
refreshButton.innerHTML = '<img src="/icons/s.svg" width="16px" alt="██▒▒▒▒▒▒▒▒ 20%" /> ██▒▒▒▒▒▒▒▒ 20% ';
500502
await sleep(50);
501503
refreshButton.innerHTML = '<img src="/icons/s.svg" width="16px" alt="█████▒▒▒▒▒ 50%" /> █████▒▒▒▒▒ 50% ';
502504
await sleep(50);
503505
refreshButton.innerHTML = '<img src="/icons/s.svg" width="16px" alt="█████████▒ 90%" /> █████████▒ 90% ';
504-
let plan;
505-
chrome.storage.sync.get(null, (settings) => {
506-
console.log(settings.APIKEY);
507-
plan = settings.PLANTYPE;
508-
});
506+
507+
// console.log(plan, "planplan", plan === "free", Local.PLANTYPE);
509508
await fetchAndDisplayData(
510-
plan === "free" ? freebalurl : probalurl,
509+
Local.PLANTYPE === "free" ? freebalurl : probalurl,
511510
"balance-section",
512511
balanceFields
513512
);

src/Token.js

-96
This file was deleted.

src/background.js

+20-21
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
chrome.runtime.onInstalled.addListener((details) => {
2-
// automate extension configuration, easy to deploy in batch.
2+
// automate extension configuration, easy to deploy in batch.
33
// visit https://newconfig.nocaptchaai.com or https://dash.nocaptchaai.com/setup
44
// paste the json {} defaultConfigs = {your export json}
55

66
const defaultConfigs = {
77
APIKEY: null,
88
PLANTYPE: null,
99
customEndpoint: null,
10-
hCaptchaEnabled: true,
11-
reCaptchaEnabled: true,
12-
dataDomeEnabled: true,
13-
ocrEnabled: true,
14-
ocrToastEnabled: true,
15-
extensionEnabled: true,
16-
logsEnabled: false,
17-
fastAnimationMode: true,
18-
debugMode: false,
19-
hCaptchaAutoOpen: true,
20-
hCaptchaAutoSolve: true,
21-
hCaptchaGridSolveTime: 7,
22-
hCaptchaMultiSolveTime: 5,
23-
hCaptchaBoundingBoxSolveTime: 5,
24-
hCaptchaAlwaysSolve: true,
25-
englishLanguage: true,
26-
reCaptchaAutoOpen: true,
27-
reCaptchaAutoSolve: true,
28-
reCaptchaAlwaysSolve: true,
10+
hCaptchaEnabled: "true",
11+
reCaptchaEnabled: "true",
12+
dataDomeEnabled: "true",
13+
ocrEnabled: "true",
14+
ocrToastEnabled: "true",
15+
extensionEnabled: "true",
16+
logsEnabled: "false",
17+
fastAnimationMode: "true",
18+
debugMode: "false",
19+
hCaptchaAutoOpen: "true",
20+
hCaptchaAutoSolve: "true",
21+
hCaptchaGridSolveTime: 5,
22+
hCaptchaMultiSolveTime: 3,
23+
hCaptchaBoundingBoxSolveTime: 3,
24+
hCaptchaAlwaysSolve: "true",
25+
englishLanguage: "false",
26+
reCaptchaAutoOpen: "true",
27+
reCaptchaAutoSolve: "true",
28+
reCaptchaAlwaysSolve: "true",
2929
reCaptchaClickDelay: 400,
3030
reCaptchaSubmitDelay: 1,
3131
reCaptchaSolveType: "image",
@@ -124,7 +124,6 @@ chrome.runtime.onMessage.addListener((request) => {
124124
// }
125125
// });
126126

127-
128127
// screenshot
129128
// chrome.runtime.onMessage.addListener((request, sender) => {
130129
// return chrome.tabs.captureVisibleTab(sender.tab.windowId, { format: "png" }).then((screenshotUrl) => {

src/datadome.js

-85
This file was deleted.

src/elementPicker.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
(async () => {
2-
3-
42
let selectedType = null;
53
let highlightedElement = null;
64
let metadataElement = null;

src/hCaptcha.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const version = "1.0";
1+
const version = "1.1";
22
(async () => {
33
let settings = await chrome.storage.sync.get(null);
44
let logs = settings.logsEnabled === "true" ? true : false;

src/hcaptchaToken.js

-7
This file was deleted.

0 commit comments

Comments
 (0)