-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
11,150 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2021 Prabhakar Rai | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# nitrotype-captcha-auto-clicker | ||
Chrome extension for automatically clicking (solving) the reCaptcha on nitrotype which appears on race page after every 50 session races. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title>About - Nitrotype Captcha Auto Clicker</title> | ||
</head> | ||
<body> | ||
<h1>About - Nitrotype Captcha Auto Clicker</h1> | ||
<article> | ||
<h2>What this clicker can do?</h2> | ||
<p> | ||
This clicker extension can click the 'I am not ROBOT' captcha button that appears after every 50 session races on | ||
nitrotype. | ||
</p> | ||
</article> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
"use strict" | ||
|
||
let minInterval = 25; | ||
chrome.storage.sync.get("sleepTime", ({ sleepTime }) => { | ||
minInterval = sleepTime; | ||
}); | ||
|
||
// This is for running in reCaptcha iframe | ||
var sid = setInterval(async () => { | ||
if ( | ||
window.location.href | ||
.match(/https:\/\/www.google.com\/recaptcha\/api\d\/anchor/) && | ||
$("#recaptcha-anchor div.recaptcha-checkbox-checkmark") | ||
.length && | ||
$("#recaptcha-anchor div.recaptcha-checkbox-checkmark") | ||
.is(':visible') && | ||
isScrolledIntoView($("#recaptcha-anchor div.recaptcha-checkbox-checkmark") | ||
.get(0)) | ||
) { | ||
var execute = true; | ||
if (localStorage.getItem('accesstime')) { | ||
let timeNow = new Date().getTime(); | ||
let timeLastExecuted = localStorage.getItem('accesstime') | 0; | ||
let minIntervalMs = minInterval * 60 * 1000; | ||
if (timeNow - timeLastExecuted < minIntervalMs) { | ||
execute = false; | ||
} | ||
} | ||
|
||
if (execute) { | ||
localStorage.setItem('accesstime', new Date().getTime()); | ||
$("#recaptcha-anchor div.recaptcha-checkbox-checkmark").click(); | ||
} | ||
clearInterval(sid); | ||
} | ||
}, 8000); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
let sleepTime = 25; // in Minutes | ||
|
||
/* | ||
01 race = 30s (approx minimum) | ||
50 races = 1500s | ||
50 races = 25m | ||
*/ | ||
|
||
chrome.runtime.onInstalled.addListener(() => { | ||
chrome.storage.sync.set({ sleepTime }); | ||
console.log('Default sleep time set to %cgreen', `sleepTime: ${sleepTime}`); | ||
}); |
Oops, something went wrong.