Skip to content

Commit

Permalink
v1.2 bugFix update
Browse files Browse the repository at this point in the history
  • Loading branch information
404b committed Aug 19, 2023
1 parent f86f309 commit f1bf325
Show file tree
Hide file tree
Showing 14 changed files with 276 additions and 463 deletions.
1 change: 0 additions & 1 deletion .gitignore

This file was deleted.

12 changes: 11 additions & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "noCaptchaAi: CAPTCHA Solver",
"version": "1.0",
"version": "1.2",
"background": {
"service_worker": "src/background.js"
},
Expand Down Expand Up @@ -46,6 +46,16 @@
"all_frames": true,
"match_about_blank": false
},
{
"matches": [
"<all_urls>"
],
"js": [
"src/iframesRefresh.js"
],
"all_frames": true,
"match_about_blank": false
},
{
"matches": [
"<all_urls>"
Expand Down
3 changes: 2 additions & 1 deletion popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ body,

body {
padding: 3px;
border: 3px solid #00000038;
background-color: transparent;
border: 3px solid #6b6d6def;
width: 400px;
height: fit-content;
overflow-y: hidden;
Expand Down
12 changes: 8 additions & 4 deletions popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ <h3>Global Settings</h3>
<small>Test Only New Challenges</small>
</div>
</label>

<button id="export">
<p>Export Settings </p>
</button>
Expand Down Expand Up @@ -158,12 +159,12 @@ <h1>noCaptchaAi</h1>
<div id="apikey" class="api-key">
<div title="https://dash.nocaptchaai.com" id="apikey-text">
<a href="https://dash.nocaptchaai.com" target="_blank" rel="noopener noreferrer">
Enter APIKEY : Visit Dash
🔑 Enter APIKEY : Visit Dash
</a>
</div>
<input type="text" placeholder="APIKEY" name="apikey" id="apikey-input" style="display: none" />
<button title="Edit API Key" id="edit-button" class="edit-button">
🖋️
Edit
</button>
</div>

Expand Down Expand Up @@ -208,7 +209,10 @@ <h3>hCAPTCHA</h3>
<div id="hcModal" class="modal">
<div class="modal-content">
<div class="caphead">
<h2>hCaptcha Config</h2>
<div class="row">
<h2>hCaptcha Config</h2>
<a href="">Demo</a>
</div>
<span id="hcModalCloseButton">
<img src="/icons/back.png" alt="CloseButton" srcset="" />
<!-- &times; -->
Expand Down Expand Up @@ -460,7 +464,7 @@ <h2>Text OCR Captcha Config</h2>
<a title="What's new in this version?" target="_blank" rel="noopener noreferrer" href=""></a>
<a title="Current version" target="_blank" rel="noopener noreferrer"
href="https://github.com/noCaptchaAi/chrome">
<b id="version">v1.1</b></a>
<b id="version">v1.2</b></a>
</div>
</div>
</div>
Expand Down
11 changes: 5 additions & 6 deletions popup.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

document.getElementById("imagePicker").addEventListener("click", function () {
chrome.runtime.sendMessage({ command: "ImageElementPicker" });
console.log("imagePicker");
Expand Down Expand Up @@ -494,20 +495,18 @@ const freebalurl = "https://free.nocaptchaai.com/balance";

const refreshData = async () => {

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

const refreshButton = document.getElementById("refresh-button");
refreshButton.innerHTML = '<img src="/icons/s.svg" width="16px" alt="██▒▒▒▒▒▒▒▒ 20%" /> ██▒▒▒▒▒▒▒▒ 20% ';
await sleep(50);
refreshButton.innerHTML = '<img src="/icons/s.svg" width="16px" alt="█████▒▒▒▒▒ 50%" /> █████▒▒▒▒▒ 50% ';
await sleep(50);
refreshButton.innerHTML = '<img src="/icons/s.svg" width="16px" alt="█████████▒ 90%" /> █████████▒ 90% ';
let plan;
chrome.storage.sync.get(null, (settings) => {
console.log(settings.APIKEY);
plan = settings.PLANTYPE;
});

// console.log(plan, "planplan", plan === "free", Local.PLANTYPE);
await fetchAndDisplayData(
plan === "free" ? freebalurl : probalurl,
Local.PLANTYPE === "free" ? freebalurl : probalurl,
"balance-section",
balanceFields
);
Expand Down
96 changes: 0 additions & 96 deletions src/Token.js

This file was deleted.

41 changes: 20 additions & 21 deletions src/background.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
chrome.runtime.onInstalled.addListener((details) => {
// automate extension configuration, easy to deploy in batch.
// automate extension configuration, easy to deploy in batch.
// visit https://newconfig.nocaptchaai.com or https://dash.nocaptchaai.com/setup
// paste the json {} defaultConfigs = {your export json}

const defaultConfigs = {
APIKEY: null,
PLANTYPE: null,
customEndpoint: null,
hCaptchaEnabled: true,
reCaptchaEnabled: true,
dataDomeEnabled: true,
ocrEnabled: true,
ocrToastEnabled: true,
extensionEnabled: true,
logsEnabled: false,
fastAnimationMode: true,
debugMode: false,
hCaptchaAutoOpen: true,
hCaptchaAutoSolve: true,
hCaptchaGridSolveTime: 7,
hCaptchaMultiSolveTime: 5,
hCaptchaBoundingBoxSolveTime: 5,
hCaptchaAlwaysSolve: true,
englishLanguage: true,
reCaptchaAutoOpen: true,
reCaptchaAutoSolve: true,
reCaptchaAlwaysSolve: true,
hCaptchaEnabled: "true",
reCaptchaEnabled: "true",
dataDomeEnabled: "true",
ocrEnabled: "true",
ocrToastEnabled: "true",
extensionEnabled: "true",
logsEnabled: "false",
fastAnimationMode: "true",
debugMode: "false",
hCaptchaAutoOpen: "true",
hCaptchaAutoSolve: "true",
hCaptchaGridSolveTime: 5,
hCaptchaMultiSolveTime: 3,
hCaptchaBoundingBoxSolveTime: 3,
hCaptchaAlwaysSolve: "true",
englishLanguage: "false",
reCaptchaAutoOpen: "true",
reCaptchaAutoSolve: "true",
reCaptchaAlwaysSolve: "true",
reCaptchaClickDelay: 400,
reCaptchaSubmitDelay: 1,
reCaptchaSolveType: "image",
Expand Down Expand Up @@ -124,7 +124,6 @@ chrome.runtime.onMessage.addListener((request) => {
// }
// });


// screenshot
// chrome.runtime.onMessage.addListener((request, sender) => {
// return chrome.tabs.captureVisibleTab(sender.tab.windowId, { format: "png" }).then((screenshotUrl) => {
Expand Down
85 changes: 0 additions & 85 deletions src/datadome.js

This file was deleted.

2 changes: 0 additions & 2 deletions src/elementPicker.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(async () => {


let selectedType = null;
let highlightedElement = null;
let metadataElement = null;
Expand Down
2 changes: 1 addition & 1 deletion src/hCaptcha.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const version = "1.0";
const version = "1.1";
(async () => {
let settings = await chrome.storage.sync.get(null);
let logs = settings.logsEnabled === "true" ? true : false;
Expand Down
7 changes: 0 additions & 7 deletions src/hcaptchaToken.js

This file was deleted.

Loading

0 comments on commit f1bf325

Please sign in to comment.