Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTokenHub authored Feb 27, 2023
1 parent dc691a2 commit 46396bf
Show file tree
Hide file tree
Showing 18 changed files with 489 additions and 0 deletions.
Binary file added Extension files/icon_128.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 Extension files/icon_16.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 Extension files/icon_32.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 Extension files/icon_48.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 Extension files/main-icon.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 Extension files/open.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
251 changes: 251 additions & 0 deletions Extension files/popup.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,251 @@
* {
font-family: 'IBM Plex Sans';
box-sizing: border-box;
outline: 0
}

html {
width: 340px
}

body {

width: 324px

}

body,
html {
background: #000000;
color: #fff;
line-height: 1.15;
text-size-adjust: 100%
}

div {
display: block
}

a {
text-decoration: none
}

input {
font-family: inherit;
font-size: 100%;
line-height: 1.15;
margin: 0
}

input {
overflow: visible
}

input {
writing-mode: horizontal-tb !important;
text-rendering: auto;
color: fieldtext;
letter-spacing: normal;
word-spacing: normal;
line-height: normal;
text-transform: none;
text-indent: 0;
text-shadow: none;
display: inline-block;
text-align: start;
appearance: auto;
-webkit-rtl-ordering: logical;
cursor: text;
background-color: field;
margin: 0;
padding: 1px 2px;
border-width: 2px;
border-style: inset;
border-color: -internal-light-dark(#767676, #858585);
border-image: initial
}

.text_input {
background-color: transparent;
padding: 8px 8px 8px 16px;
color: #fff;
outline: 0;
border: none;
width: 100%;
font-size: 14px
}

.text_input.small {
width: 30%
}

.text_input.text_right {
text-align: right
}

input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0
}

input[type=number] {
appearance: textfield;
-moz-appearance: textfield
}

::-webkit-scrollbar {
width: 6px;
right: 2px;
bottom: 2px;
top: 2px;
border-radius: 3px
}

::-webkit-scrollbar-track {
background: 0 0
}

::-webkit-scrollbar-thumb {
background: #fe9800
}

.header {
box-sizing: border-box;
padding: 16px;
display: flex;
place-content: space-between;
font-weight: 400
}

.header_label_container {
box-sizing: border-box;
margin-right: 0;
display: flex;
flex: 1 1 0%;
-webkit-box-pack: center;
justify-content: center;
-webkit-box-align: center;
align-items: center
}

.header_label {
box-sizing: border-box;
font-size: 24px;
font-weight: 700;
display: flex;
color: #fff
}

.bbflex {
box-sizing: border-box;
display: flex;
-webkit-box-align: center;
align-items: center
}

.scrolling_container {
box-sizing: border-box;
margin-top: 8px;
margin-left: 16px;
margin-right: 16px;
padding-bottom: 16px
}

.settings_item_container {
box-sizing: border-box;
margin-bottom: 8px;
border: 1px solid rgba(255, 255, 255, .08);
border-radius: 8px;
box-sizing: border-box
}

.settings_item {
width: 100%;
background-color: rgba(255, 255, 255, .08);
min-height: 48px;
padding: 14px 16px 0;
border-radius: 8px
}

.settings_item>div {
-webkit-box-pack: justify;
justify-content: space-between;
-webkit-box-align: center;
align-items: center
}

.settings_item_label {
font-size: 14px;
font-weight: 600;
color: #fff;
padding-left: 16px;
height: 20px;
-webkit-box-align: center;
align-items: center
}

.settings_toggle {
height: 20px;
max-width: 36px;
min-width: 36px;
border-radius: 10px;
padding: 2px;
transition: background-color .3s ease 0s;
opacity: 1;
cursor: pointer
}

.settings_toggle>div {
width: 16px;
height: 16px;
border-radius: 50%;
transform: translate(16px);
transition: transform .3s ease 0s, background-color .3s ease 0s
}

.settings_toggle.on {
background-color: #fe9800
}

.settings_toggle.off {
background-color: #fff
}

.settings_toggle.on>div {
background-color: #fff;
transform: translate(16px)
}

.settings_toggle.off>div {
background-color: #fe9800;
transform: translate(0)
}

.settings_description_container {
padding: 10px 16px 8px;
-webkit-box-pack: justify;
justify-content: space-between
}

.settings_description {
font-size: 12px;
color: rgba(255, 255, 255, .5)
}

.footer {
display: flex;
flex-direction: row;
padding: 8px;
margin-top: 8px;
font-size: 10px
}

.footer * {
color: rgba(255, 255, 255, .8)
}

.footer>:nth-child(1) {
flex-grow: 1
}

1 change: 1 addition & 0 deletions Extension files/popup.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Extension files/solve.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 Extension files/time.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions background.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
(() => {
"use strict";
chrome.runtime.onInstalled.addListener((async () => {
await chrome.storage.local.set({
auto_open: !0,
auto_solve: !0,
click_delay_time: 50,
solve_delay_time: 3e3
})
})), chrome.runtime.onMessage.addListener((function(e, t, a) {
return (async () => {
const t = `https://github.com/Wikidepia/hektCaptcha-extension/releases/download/modelhub/${e}.ort`;
try {
const e = await fetch(t),
s = await e.blob(),
o = await (async e => {
const t = new FileReader;
return new Promise((a => {
t.onloadend = () => a(t.result), t.readAsDataURL(e)
}))
})(s);
a({
status: e.status,
model: o
})
} catch (e) {
a({
status: "error",
message: e.message
})
}
})(), !0
}))
})();
2 changes: 2 additions & 0 deletions contentScript.js

Large diffs are not rendered by default.

Binary file added dist/ort-wasm-simd-threaded.wasm
Binary file not shown.
Binary file added dist/ort-wasm-simd.wasm
Binary file not shown.
Binary file added dist/ort-wasm-threaded.wasm
Binary file not shown.
Binary file added dist/ort-wasm.wasm
Binary file not shown.
36 changes: 36 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"manifest_version": 3,
"name": "Token Hub hCaptcha",
"version": "1.1.0",
"description": "Automatically solve hCaptcha By Token Hub Team",
"icons": {
"16": "Extension files/icon_16.png",
"32": "Extension files/icon_32.png",
"48": "Extension files/icon_48.png",
"128": "Extension files/icon_128.png"
},
"background": {
"service_worker": "background.js"
},
"action": {
"default_title": "Token Hub hCaptcha",
"default_popup": "popup.html"
},
"permissions": ["storage"],
"web_accessible_resources": [
{
"resources": ["dist/*"],
"matches": ["<all_urls>"]
}
],
"host_permissions": ["*://*.github.com/*", "*://*.githubusercontent.com/*"],
"content_scripts": [
{
"matches": ["*://*.hcaptcha.com/captcha/*"],
"js": ["contentScript.js"],
"run_at": "document_end",
"all_frames": true,
"match_about_blank": false
}
]
}
Loading

0 comments on commit 46396bf

Please sign in to comment.