Browse Source

More prep for release

v1
Araragi 2 years ago
parent
commit
37ea324cb1
  1. 5
      .eslintignore
  2. BIN
      1449696017588.png
  3. 2
      README.md
  4. 2
      build-chrome.js
  5. 14
      build-ff.js
  6. 6
      chrome/manifest.json
  7. 78862
      firefox/dist/main.js
  8. 247
      firefox/dist/model.js
  9. 4
      firefox/dist/weights.js
  10. 23
      firefox/manifest.json
  11. 1
      firefox_update.json
  12. BIN
      logo.png

5
.eslintignore

@ -1,2 +1,5 @@
src/weights.js
main.user.js
JKCS.user.js
firefox/polyfill.min.js
firefox/browser-polyfill.min.js
chrome/browser-polyfill.min.js

BIN
1449696017588.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 78 KiB

2
README.md

@ -2,6 +2,8 @@ Janny (S)killers Captcha Solver (JKCS)
========================
Tired of solving captchas all day? Don't want carpal tunnel syndrome young? Have dyslexia? Then skill jannies by auto-solving captchas!
This is a fork of https://github.com/AUTOMATIC1111/4chan-captcha-solver
This project uses [PNPM](https://pnpm.io/) for package management.
How to Install

2
build-chrome.js

@ -22,7 +22,7 @@ const domains = ["https://*.4chan.org/*", "https://*.4channel.org/*"];
const manif3 = {
manifest_version: 3,
// "update_url": "https://github.com/coomdev/pngextraembedder/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/chrome_update.xml",
name: "Janny Skillers Captcha Solver",
name: "JannySkillersCaptchaSolver",
description: "The Janny Skillers Captcha Solver of choice.",
version: "0." + rev,
icons: {

14
build-ff.js

@ -4,8 +4,6 @@ import { spawnSync } from "child_process";
import { writeFileSync, readFileSync, copyFileSync } from "fs";
import esbuild from "esbuild";
import esbuildSvelte from "esbuild-svelte";
import sveltePreprocess from "svelte-preprocess";
import webExt from "web-ext";
@ -19,11 +17,11 @@ const manif = {
browser_specific_settings: {
gecko: {
update_url:
"https://git.coom.tech/fuckjannies/lolipiss/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/firefox_update.json",
"https://git.coom.tech/araragi/JKCS/raw/branch/master/firefox_update.json",
},
},
name: "PngExtraEmbedder",
description: "Discover embedded files on 4chan and archives!",
name: "JannySkillersCaptchaSolver",
description: "The Janny Skillers Captcha Solver of choice.",
version: "0." + rev,
icons: {
64: "1449696017588.png",
@ -113,7 +111,7 @@ const manif = {
res = await webExt.cmd.build({
sourceDir: "./firefox/",
artifactsDir: ".",
filename: "PEE-firefox.zip",
filename: "JKCS-firefox.zip",
overwriteDest: true,
});
console.log(res);
@ -121,11 +119,11 @@ const manif = {
"./firefox_update.json",
JSON.stringify({
addons: {
"{34ac4994-07f2-44d2-8599-682516a6c6a6}": {
"{4127d5ac-25a0-4453-8d51-bb2eec2ae629}": {
updates: [
{
version: manif.version,
update_link: `https://git.coom.tech/fuckjannies/lolipiss/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/pngextraembedder-${manif.version}.xpi`,
update_link: `https://git.coom.tech/araragi/JKCS/raw/branch/master/JKCS-${manif.version}.xpi`,
},
],
},

6
chrome/manifest.json

@ -1,8 +1,8 @@
{
"manifest_version": 3,
"name": "4chan Captcha Solver",
"description": "4chan Captcha Solver",
"version": "0.292",
"name": "Janny Skillers Captcha Solver",
"description": "The Janny Skillers Captcha Solver of choice.",
"version": "0.4",
"icons": {
"64": "1449696017588.png"
},

78862
firefox/dist/main.js

File diff suppressed because one or more lines are too long

247
firefox/dist/model.js

@ -0,0 +1,247 @@
(() => {
// src/model.js
window.modelJSON = {
format: "layers-model",
generatedBy: "keras v2.4.0",
convertedBy: "TensorFlow.js Converter v3.7.0",
modelTopology: {
keras_version: "2.4.0",
backend: "tensorflow",
model_config: {
class_name: "Sequential",
config: {
name: "sequential",
layers: [
{
class_name: "InputLayer",
config: {
batch_input_shape: [null, null, 80, 1],
dtype: "float32",
sparse: false,
ragged: false,
name: "conv2d_input"
}
},
{
class_name: "Conv2D",
config: {
name: "conv2d",
trainable: true,
batch_input_shape: [null, null, 80, 1],
dtype: "float32",
filters: 40,
kernel_size: [3, 3],
strides: [1, 1],
padding: "same",
data_format: "channels_last",
dilation_rate: [1, 1],
groups: 1,
activation: "relu",
use_bias: true,
kernel_initializer: {
class_name: "GlorotUniform",
config: { seed: null }
},
bias_initializer: { class_name: "Zeros", config: {} },
kernel_regularizer: null,
bias_regularizer: null,
activity_regularizer: null,
kernel_constraint: null,
bias_constraint: null
}
},
{
class_name: "MaxPooling2D",
config: {
name: "max_pooling2d",
trainable: true,
dtype: "float32",
pool_size: [2, 2],
padding: "same",
strides: [2, 2],
data_format: "channels_last"
}
},
{
class_name: "Conv2D",
config: {
name: "conv2d_1",
trainable: true,
dtype: "float32",
filters: 60,
kernel_size: [3, 3],
strides: [1, 1],
padding: "same",
data_format: "channels_last",
dilation_rate: [1, 1],
groups: 1,
activation: "relu",
use_bias: true,
kernel_initializer: {
class_name: "GlorotUniform",
config: { seed: null }
},
bias_initializer: { class_name: "Zeros", config: {} },
kernel_regularizer: null,
bias_regularizer: null,
activity_regularizer: null,
kernel_constraint: null,
bias_constraint: null
}
},
{
class_name: "MaxPooling2D",
config: {
name: "max_pooling2d_1",
trainable: true,
dtype: "float32",
pool_size: [2, 2],
padding: "same",
strides: [2, 2],
data_format: "channels_last"
}
},
{
class_name: "Reshape",
config: {
name: "reshape",
trainable: true,
dtype: "float32",
target_shape: [-1, 1200]
}
},
{
class_name: "Bidirectional",
config: {
name: "bidi",
trainable: true,
dtype: "float32",
layer: {
class_name: "LSTM",
config: {
name: "lstm",
trainable: true,
dtype: "float32",
return_sequences: true,
return_state: false,
go_backwards: false,
stateful: false,
unroll: false,
time_major: false,
units: 200,
activation: "tanh",
recurrent_activation: "sigmoid",
use_bias: true,
kernel_initializer: {
class_name: "GlorotUniform",
config: { seed: null }
},
recurrent_initializer: {
class_name: "Orthogonal",
config: { gain: 1, seed: null }
},
bias_initializer: { class_name: "Zeros", config: {} },
unit_forget_bias: true,
kernel_regularizer: null,
recurrent_regularizer: null,
bias_regularizer: null,
activity_regularizer: null,
kernel_constraint: null,
recurrent_constraint: null,
bias_constraint: null,
dropout: 0,
recurrent_dropout: 0,
implementation: 2
}
},
merge_mode: "concat"
}
},
{
class_name: "Dense",
config: {
name: "dense",
trainable: true,
dtype: "float32",
units: 22,
activation: "softmax",
use_bias: true,
kernel_initializer: {
class_name: "GlorotUniform",
config: { seed: null }
},
bias_initializer: { class_name: "Zeros", config: {} },
kernel_regularizer: null,
bias_regularizer: null,
activity_regularizer: null,
kernel_constraint: null,
bias_constraint: null
}
}
]
}
},
training_config: {
loss: null,
metrics: null,
weighted_metrics: null,
loss_weights: null,
optimizer_config: {
class_name: "RMSprop",
config: {
name: "RMSprop",
learning_rate: 1e-3,
decay: 0,
rho: 0.9,
momentum: 0,
epsilon: 1e-7,
centered: false
}
}
}
},
weightsManifest: [
{
paths: ["group1-shard1of1.bin"],
weights: [
{
name: "bidi/forward_lstm/lstm_cell_4/kernel",
shape: [1200, 800],
dtype: "float32"
},
{
name: "bidi/forward_lstm/lstm_cell_4/recurrent_kernel",
shape: [200, 800],
dtype: "float32"
},
{
name: "bidi/forward_lstm/lstm_cell_4/bias",
shape: [800],
dtype: "float32"
},
{
name: "bidi/backward_lstm/lstm_cell_5/kernel",
shape: [1200, 800],
dtype: "float32"
},
{
name: "bidi/backward_lstm/lstm_cell_5/recurrent_kernel",
shape: [200, 800],
dtype: "float32"
},
{
name: "bidi/backward_lstm/lstm_cell_5/bias",
shape: [800],
dtype: "float32"
},
{ name: "conv2d/kernel", shape: [3, 3, 1, 40], dtype: "float32" },
{ name: "conv2d/bias", shape: [40], dtype: "float32" },
{ name: "conv2d_1/kernel", shape: [3, 3, 40, 60], dtype: "float32" },
{ name: "conv2d_1/bias", shape: [60], dtype: "float32" },
{ name: "dense/kernel", shape: [400, 22], dtype: "float32" },
{ name: "dense/bias", shape: [22], dtype: "float32" }
]
}
]
};
})();

4
firefox/dist/weights.js

File diff suppressed because one or more lines are too long

23
firefox/manifest.json

@ -5,16 +5,22 @@
"update_url": "https://git.coom.tech/fuckjannies/lolipiss/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/firefox_update.json"
}
},
"name": "PngExtraEmbedder",
"description": "Discover embedded files on 4chan and archives!",
"version": "0.001",
"name": "JannySkillersCaptchaSolver",
"description": "The Janny Skillers Captcha Solver of choice.",
"version": "0.4",
"icons": {
"64": "1449696017588.png"
},
"permissions": ["https://*.4chan.org/*", "https://*.4channel.org/*"],
"permissions": [
"https://*.4chan.org/*",
"https://*.4channel.org/*"
],
"content_scripts": [
{
"matches": ["https://*.4chan.org/*", "https://*.4channel.org/*"],
"matches": [
"https://*.4chan.org/*",
"https://*.4channel.org/*"
],
"css": [],
"run_at": "document_end",
"js": [
@ -25,5 +31,8 @@
]
}
],
"web_accessible_resources": ["*.html", "*.js"]
}
"web_accessible_resources": [
"*.html",
"*.js"
]
}

1
firefox_update.json

@ -0,0 +1 @@
{"addons":{"{4127d5ac-25a0-4453-8d51-bb2eec2ae629}":{"updates":[{"version":"0.4","update_link":"https://git.coom.tech/araragi/JKCS/raw/branch/master/JKCS-0.4.xpi"}]}}}

BIN
logo.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 78 KiB

Loading…
Cancel
Save