Skip to content
This repository has been archived by the owner on May 6, 2023. It is now read-only.

Commit

Permalink
add disclaimers, readme and license
Browse files Browse the repository at this point in the history
  • Loading branch information
Sqaaakoi committed Aug 13, 2022
1 parent 37d835b commit 9cf46f8
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 10 deletions.
3 changes: 3 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
All original code was developed by GPU Drops.
Original source can be obtained by seeing the first commit in the repository, and was obtained from https://chrome.google.com/webstore/detail/noptcha-recaptcha-hcaptch/dknlfmjaanfblgfdfebhijalfmhmjjjo
No warranty or guarantee is provided that this extension will function or be updated.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Noptcha, without affiliate link injection

Noptcha is a reCaptcha and hCaptcha solving extension created by GPU Drops.

This fork was made because I hate tracking stuff and I use an ad blocker (like you should on the modern internet) and also hate captchas, but I don't really want people over at GPU Drops to profit off me using their AI captcha solver.

Unfortunately, I discovered that the extension redirects some websites to have affilate tracking codes. I have prettified the code, made some of it readable and removed such functionality.

Most of the changes are in [background.js](background.js) and all tracking functionality _can_ be disabled by removing the `start()` call near the end of the file.

None of the original code in here belongs to me.

No warranty or guarantee is provided that this extension will function or be updated.

[Original extension](https://chrome.google.com/webstore/detail/noptcha-recaptcha-hcaptch/dknlfmjaanfblgfdfebhijalfmhmjjjo)
3 changes: 1 addition & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,14 @@
"matches": [ "*://*.google.com/recaptcha/*", "*://*.recaptcha.net/recaptcha/*", "*://recaptcha.net/recaptcha/*" ],
"run_at": "document_start"
} ],
"description": "Automatically solve CAPTCHAs using AI.",
"description": "Automatically solve CAPTCHAs using AI. Affiliate tracking link injection has been removed.",
"host_permissions": [ "\u003Call_urls>" ],
"icons": {
"128": "icon/128.png",
"16": "icon/16.png",
"32": "icon/32.png",
"48": "icon/48.png"
},
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlWiyXSK0GK0nDwOfOJ2zUvRv99E2XU6LnR67zKE5RjM2icff7Cwmo6nR5i+4UukShIyEaDdQsbC+vyTpDeaJMn+bNphPYjQxGY6spIk3KV1h71Jj0dSUOYUwGrViKg3LnC4LKtENYOsbIxTmMw8JG4oH1hU1tY4KlnSzcqiwTaDLTP0X7MVdDK0WPOyypNlkL7v1HWMjPZa32EudqcrWub/EMpMFuSugTyIu8dHaAQhW13RkU77BiMRoZfZYxbcED48YPmZS8qi3KOrymjOTWCJeDMjwy/MLCqrwhjoG1Y5jDXHFbxNUPxEJYw9mxxPTN+asraML9tywlLuzZluHwwIDAQAB",
"manifest_version": 3,
"name": "Noptcha: ReCAPTCHA & hCAPTCHA Solver",
"permissions": [ "storage", "scripting", "declarativeNetRequest", "webRequest" ],
Expand Down
5 changes: 4 additions & 1 deletion popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,15 @@ html, body {
.clickable:hover {
opacity: 0.8;
}
.disclaimer {
font-weight: 600;
}

#main {
padding: 8px 16px;
}

#footer {
.footer {
margin-top: 8px;
width: 100%;
text-align: center;
Expand Down
6 changes: 5 additions & 1 deletion popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@
</div> -->

<div class="settings_group">
<div id="footer" class="clickable">bug report & feature request</div>
<div id="footer" class="footer clickable">bug report & feature request</div>
</div>

<div class="settings_group">
<div id="disclaimer" class="footer disclaimer">affiliate link injection has been removed from this fork of noptcha.<br><br>no warranty or guarantee is provided that this extension will continue to function like the original noptcha extension<br></div>
</div>
</div>
<script src="popup.js"></script>
Expand Down
14 changes: 8 additions & 6 deletions popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,11 @@ async function set_select(e, t) {
}
async function main() {
document.querySelector("#footer").addEventListener("click", async () => {
await BG.exec("open_tab", {
url: "https://discord.gg/gpudrops"
})
if (confirm("Warning: You're using a modified version of this extension with affiliate tracking removed, and it might not be completely up to date. Would you still like to continue to \"discord.gg/gpudrops\" for support?")) {
await BG.exec("open_tab", {
url: "https://discord.gg/gpudrops"
})
}
}
);
var e = await BG.exec("get_settings");
Expand All @@ -81,7 +83,7 @@ async function main() {
c.addEventListener("input", () => set_field(c.id, c.value));
for (const o of document.querySelectorAll(".settings_group select"))
o.addEventListener("change", () => set_select(o.id, o.value));
async function t() {
async function queryServerStatus() {
var e = await BG.exec("get_server_status");
if (["Online", "Offline", "Slow", "Update Required"].includes(e)) {
const t = document.querySelector("#server_status");
Expand All @@ -92,7 +94,7 @@ async function main() {
"Online" === e ? t.classList.add("green") : "Offline" === e ? t.classList.add("red") : "Slow" !== e && "Update Required" !== e || t.classList.add("yellow")
}
}
await t(),
setInterval(t, 1e3)
await queryServerStatus(),
setInterval(queryServerStatus, 1e3)
}
document.addEventListener("DOMContentLoaded", main);

0 comments on commit 9cf46f8

Please sign in to comment.