Skip to content

Commit

Permalink
d
Browse files Browse the repository at this point in the history
  • Loading branch information
404b committed Jun 8, 2023
1 parent 9e247bb commit 4270cf5
Show file tree
Hide file tree
Showing 55 changed files with 12,604 additions and 69 deletions.
Binary file added firefox/icons/128n.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added firefox/icons/16n.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added firefox/icons/32n.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added firefox/icons/48n.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added firefox/icons/logonew.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added firefox/index.html
Empty file.
886 changes: 886 additions & 0 deletions firefox/light.css

Large diffs are not rendered by default.

79 changes: 79 additions & 0 deletions firefox/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"manifest_version": 2,
"name": "noCaptchaAi Captcha Solver",
"version": "0.1",
"background": {
"scripts": ["src/background.js"]
},
"author": "noCaptchaAi.com",
"description": "Captcha Solving Ai. ReCaptcha v2 Image and Audio, hCaptcha normal/Enterprise, hCaptcha Token, OCR Captcha Automated Solver",
"permissions": [
"tabs",
"storage",
"webRequest",
"webNavigation",
"declarativeNetRequest",
"scripting",
"contextMenus",
"activeTab",
"<all_urls>",
"*://*.hcaptcha.com/*"
],
"browser_action": {
"default_icon": {
"16": "icons/16n.png",
"48": "icons/48n.png"
},
"default_title": "noCaptchaAi",
"default_popup": "popup.html"
},
"browser_specific_settings": {
"gecko": {
"id": "oss@noCaptchaAi.com",
"strict_min_version": "42.0"
}
},
"content_scripts": [
{
"matches": ["<all_urls>"],
"js": ["src/hCaptcha.js"],
"all_frames": true,
"match_about_blank": false
},
{
"matches": ["<all_urls>"],
"js": ["src/iframes.js"],
"all_frames": true,
"match_about_blank": false
},
{
"matches": ["https://discord.com/channels/*"],
"js": ["src/uu.js"],
"run_at": "document_start",
"all_frames": false,
"match_about_blank": false
},
{
"matches": ["<all_urls>"],
"js": ["src/recaptcha_audio.js"],
"all_frames": true,
"match_about_blank": false
},
{
"matches": ["<all_urls>"],
"js": ["src/reCaptcha.js"],
"all_frames": true,
"match_about_blank": false
},
{
"matches": ["https://config.nocaptchaai.com/?apikey=*"],
"js": ["src/config.js"]
}
],
"icons": {
"16": "icons/16n.png",
"32": "icons/32n.png",
"48": "icons/48n.png",
"128": "icons/128n.png"
}
}
74 changes: 74 additions & 0 deletions firefox/modal.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<!DOCTYPE html>
<html>

<head>
</head>

<body>
<div class="hcapWrapper">
<label for="hCaptchaAutoOpen">
Auto Open:
<input type="checkbox" id="hCaptchaAutoOpen" name="hCaptchaAutoOpen" />
<span class="toggle-switch"></span>
</label>

<label for="hCaptchaAutoSolve">
Auto Solve:
<input type="checkbox" id="hCaptchaAutoSolve" name="hCaptchaAutoSolve" />
<span class="toggle-switch"></span>
</label>
<label for="hCaptchaAlwaysSolve">
Always Solve:
<input type="checkbox" id="hCaptchaAlwaysSolve" name="hCaptchaAlwaysSolve" />
<span class="toggle-switch"></span>
</label>

<label>
Solving Type
<select name="hCaptchaSolvingType" id="hCaptchaSolvingType">
<option value="audio">Audio</option>
<option value="image">Image</option>
</select>
</label>

<div>
<h4>Solving Delay (Click, Submit)</h4>
<input type="number" min="1" placeholder="Click Delay" id="reCaptchaClickDelay"
name="reCaptchaClickDelay" />
<input type="number" min="1" placeholder="Submit Delay" id="reCaptchaSubmitDelay" min="1"
name="reCaptchaSubmitDelay" />
</div>
</div>

<script>
const inputElements = document.querySelectorAll('input[type="checkbox"], input[type="number"], select');

// Retrieve values from localStorage for all input elements
inputElements.forEach((element) => {
const elementId = element.id;
const elementType = element.nodeName.toLowerCase() === 'select' ? 'select' : element.getAttribute('type');

if (elementType === 'checkbox') {
element.checked = localStorage.getItem(`${elementType}Value_${elementId}`) === 'true';
} else {
element.value = localStorage.getItem(`${elementType}Value_${elementId}`) || '';
}
});

// Update values in localStorage when inputs change
inputElements.forEach((element) => {
element.addEventListener('input', () => {
const elementId = element.id;
const elementType = element.nodeName.toLowerCase() === 'select' ? 'select' : element.getAttribute('type');

if (elementType === 'checkbox') {
localStorage.setItem(`${elementType}Value_${elementId}`, element.checked.toString());
} else {
localStorage.setItem(`${elementType}Value_${elementId}`, element.value);
}
});
});
</script>
</body>

</html>
Loading

0 comments on commit 4270cf5

Please sign in to comment.