Browse Source

Update Chromium buildscript, big updates

v1
Araragi 2 years ago
parent
commit
5a94045413
  1. BIN
      1449696017588.png
  2. 16
      JKCS.meta.js
  3. 49315
      JKCS.user.js
  4. 6
      README.md
  5. 28
      build-chrome.js
  6. 36
      build-ff.js
  7. 2
      build.js
  8. BIN
      chrome/1449696017588.png
  9. 344
      chrome/dist/main.js
  10. 10
      chrome/manifest.json
  11. 3
      chrome/model.weights.bin
  12. BIN
      chrome/tfjs-backend-wasm-simd.wasm
  13. BIN
      chrome/tfjs-backend-wasm-threaded-simd.wasm
  14. BIN
      chrome/tfjs-backend-wasm.wasm
  15. 24925
      dist/main-es5.js
  16. 1
      dist/main-es5.js.map
  17. 9480
      dist/main.js
  18. 1
      dist/tsconfig.tsbuildinfo
  19. 3
      extheader.js
  20. BIN
      firefox/1449696017588.png
  21. 2925
      firefox/dist/main.js
  22. 16
      firefox/manifest.json
  23. 2
      firefox_update.json
  24. 4
      jkcs-0.27.xpi
  25. 3
      jkcs-0.30.xpi
  26. BIN
      logo.png
  27. 2
      package.json
  28. 1
      src/main.js

BIN
1449696017588.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 460 KiB

16
JKCS.meta.js

@ -1,16 +0,0 @@
// ==UserScript==
// @name Janny Skiller's Captcha Solver
// @namespace https://git.coom.tech/araragi/JKCS
// @supportURL https://git.coom.tech/araragi/JKCS/issues
// @homepageURL https://git.coom.tech/araragi/JKCS
// @downloadURL https://git.coom.tech/araragi/JKCS/raw/branch/master/JKCS.user.js
// @run-at document-end
// @match https://boards.4channel.org/*
// @match https://boards.4chan.org/*
// @match https://sys.4chan.org/*
// @grant none
// @version 0.25
// @author /cumg/, formerly AUTOMATIC
// @description The Janny Skillers Captcha Solver of choice
// ==/UserScript==
const _DOMParser = DOMParser

49315
JKCS.user.js

File diff suppressed because it is too large

6
README.md

@ -1,6 +1,6 @@
Janny (S)killers Captcha Solver (JKCS)
Joshi Koukousei Captcha Service - The captcha solver made by and for japanese high school girls!
========================
Tired of solving captchas all day? Don't want carpal tunnel syndrome young? Have dyslexia? Then skill jannies by auto-solving captchas!
Tired of solving captchas all day? Don't want carpal tunnel syndrome young? Have dyslexia? Then Joshi Koukousei's Captcha Service is here for you!
This is a fork of https://github.com/AUTOMATIC1111/4chan-captcha-solver that focuses on optimized performance. During testing JKCS has proven to be objectively faster than AUTOMATIC1111's userscript version, achieving instantanous captcha solving on both Chromium and Firefox.
@ -17,4 +17,4 @@ How to Install
- Select the `chrome` folder from the zip you extracted earlier.
## Firefox
The Firefox extension is currently unsigned, which means you'll have to go into `about:config` and set `xpinstall.signatures.required` to false, then you can install the extension from the .xpi file in this repo like you normally would.
As of ``jkcs-0.30.xpi``, the extension is finally signed! Which means you can just drag it into your addons page and install it as you normally would.

28
build-chrome.js

@ -17,13 +17,17 @@ import esbuild from "esbuild";
let res = spawnSync("git", ["rev-list", "--count", "HEAD"]);
let rev = +res.stdout;
const domains = ["https://*.4chan.org/*", "https://*.4channel.org/*", "https://sys.4chan.org/*"];
const domains = [
"https://*.4chan.org/*",
"https://*.4channel.org/*",
"https://sys.4chan.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: "JannySkillersCaptchaSolver",
description: "The Janny Skillers Captcha Solver of choice.",
name: "Joshi Koukousei Captcha Service",
description: "The captcha solver made by and for japanese high school girls",
version: "0." + rev,
icons: {
64: "1449696017588.png",
@ -32,7 +36,7 @@ const manif3 = {
host_permissions: ["<all_urls>"],
web_accessible_resources: [
{
resources: ["*.html", "*.js", "*.json"],
resources: ["*.html", "*.js", "*.json", "*.bin", "*.wasm"],
matches: ["<all_urls>"],
},
],
@ -66,7 +70,7 @@ const manif3 = {
},
// inject: ["./esbuild.inject.js"],
plugins: [],
loader: { ".bin": "text" }, // Hacky solution for loading model.weights.bin but it works for now.
loader: { ".bin": "text", ".wasm": "binary" }, // Hacky solution for loading model.weights.bin but it works for now.
metafile: true,
});
@ -104,6 +108,20 @@ const manif3 = {
writeFileSync("./chrome/manifest.json", JSON.stringify(lmanif, null, 2));
copyFileSync("./logo.png", "./chrome/1449696017588.png");
copyFileSync("./src/model.weights.bin", "./chrome/model.weights.bin");
copyFileSync(
"./src/tfjs-backend-wasm-threaded-simd.wasm",
"./chrome/tfjs-backend-wasm-threaded-simd.wasm"
);
copyFileSync(
"./src/tfjs-backend-wasm-simd.wasm",
"./chrome/tfjs-backend-wasm-simd.wasm"
);
copyFileSync(
"./src/tfjs-backend-wasm.wasm",
"./chrome/tfjs-backend-wasm.wasm"
);
//const ext = await crx.load('./chrome');
//const crxBuffer = await ext.pack();
//const updateXML = crx.generateUpdateXML();

36
build-ff.js

@ -10,19 +10,16 @@ import webExt from "web-ext";
let res = spawnSync("git", ["rev-list", "--count", "HEAD"]);
let rev = +res.stdout;
const domains = ["https://*.4chan.org/*", "https://*.4channel.org/*", "https://sys.4chan.org/*"];
const domains = [
"https://*.4chan.org/*",
"https://*.4channel.org/*",
"https://sys.4chan.org/*",
];
const manif = {
manifest_version: 2,
browser_specific_settings: {
gecko: {
id: "[email protected]",
update_url:
"https://git.coom.tech/araragi/JKCS/raw/branch/master/firefox_update.json",
},
},
name: "JannySkillersCaptchaSolver",
description: "The Janny Skillers Captcha Solver of choice.",
name: "Joshi Koukousei Captcha Service",
description: "The captcha solver made by and for japanese high school girls",
version: "0." + rev,
icons: {
64: "1449696017588.png",
@ -36,7 +33,7 @@ const manif = {
js: ["polyfill.min.js", "dist/main.js"],
},
],
web_accessible_resources: ["*.html", "*.js", "*.json"],
web_accessible_resources: ["*.html", "*.js", "*.json", "*.bin", "*.wasm"],
// "background": {
// persistent: true,
@ -66,7 +63,7 @@ const manif = {
},
// inject: ["./esbuild.inject.js"],
plugins: [],
loader: { ".bin": "text", '.wasm': 'binary' },
loader: { ".bin": "text", ".wasm": "binary" },
metafile: true,
});
@ -105,9 +102,18 @@ const manif = {
copyFileSync("./logo.png", "./firefox/1449696017588.png");
copyFileSync("./src/model.weights.bin", "./firefox/model.weights.bin");
copyFileSync("./src/tfjs-backend-wasm-threaded-simd.wasm", "./firefox/tfjs-backend-wasm-threaded-simd.wasm");
copyFileSync("./src/tfjs-backend-wasm-simd.wasm", "./firefox/tfjs-backend-wasm-simd.wasm");
copyFileSync("./src/tfjs-backend-wasm.wasm", "./firefox/tfjs-backend-wasm.wasm");
copyFileSync(
"./src/tfjs-backend-wasm-threaded-simd.wasm",
"./firefox/tfjs-backend-wasm-threaded-simd.wasm"
);
copyFileSync(
"./src/tfjs-backend-wasm-simd.wasm",
"./firefox/tfjs-backend-wasm-simd.wasm"
);
copyFileSync(
"./src/tfjs-backend-wasm.wasm",
"./firefox/tfjs-backend-wasm.wasm"
);
res = await webExt.cmd.build({
sourceDir: "./firefox/",

2
build.js

@ -25,7 +25,7 @@ let rev = +res.stdout;
},
// inject: ["./esbuild.inject.js"],
plugins: [],
loader: {},
loader: { ".bin": "text", ".wasm": "binary" },
metafile: true,
});

BIN
chrome/1449696017588.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 460 KiB

344
chrome/dist/main.js

File diff suppressed because one or more lines are too long

10
chrome/manifest.json

@ -1,8 +1,8 @@
{
"manifest_version": 3,
"name": "JannySkillersCaptchaSolver",
"description": "The Janny Skillers Captcha Solver of choice.",
"version": "0.25",
"name": "Joshi Koukousei Captcha Service",
"description": "The captcha solver made by and for japanese high school girls",
"version": "0.30",
"icons": {
"64": "1449696017588.png"
},
@ -15,7 +15,9 @@
"resources": [
"*.html",
"*.js",
"*.json"
"*.json",
"*.bin",
"*.wasm"
],
"matches": [
"<all_urls>"

3
chrome/model.weights.bin

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5d1015787bc130ac675d7d0f0fbce71e58c2cc232f29f70b3b87b9fa70a7792e
size 12119905

BIN
chrome/tfjs-backend-wasm-simd.wasm

Binary file not shown.

BIN
chrome/tfjs-backend-wasm-threaded-simd.wasm

Binary file not shown.

BIN
chrome/tfjs-backend-wasm.wasm

Binary file not shown.

24925
dist/main-es5.js

File diff suppressed because one or more lines are too long

1
dist/main-es5.js.map

File diff suppressed because one or more lines are too long

9480
dist/main.js

File diff suppressed because one or more lines are too long

1
dist/tsconfig.tsbuildinfo

File diff suppressed because one or more lines are too long

3
extheader.js

@ -5,10 +5,11 @@ const res = spawnSync('git', ['rev-list', '--count', 'HEAD'])
const rev = +res.stdout
export const extheader = `// ==UserScript==
// @name Janny Skiller's Captcha Solver
// @name Joshi Koukousei Captcha Service
// @namespace /cumg/
// @match https://boards.4channel.org/*
// @match https://boards.4chan.org/*
// @match https://sys.4chan.org/*
// @grant none
// @version 1.1
// @author /cumg/, formerly AUTOMATIC

BIN
firefox/1449696017588.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 460 KiB

2925
firefox/dist/main.js

File diff suppressed because it is too large

16
firefox/manifest.json

@ -1,14 +1,8 @@
{
"manifest_version": 2,
"browser_specific_settings": {
"gecko": {
"id": "[email protected]",
"update_url": "https://git.coom.tech/araragi/JKCS/raw/branch/master/firefox_update.json"
}
},
"name": "JannySkillersCaptchaSolver",
"description": "The Janny Skillers Captcha Solver of choice.",
"version": "0.27",
"name": "Joshi Koukousei Captcha Service",
"description": "The captcha solver made by and for japanese high school girls",
"version": "0.30",
"icons": {
"64": "1449696017588.png"
},
@ -35,6 +29,8 @@
"web_accessible_resources": [
"*.html",
"*.js",
"*.json"
"*.json",
"*.bin",
"*.wasm"
]
}

2
firefox_update.json

@ -1 +1 @@
{"addons":{"{[email protected]}":{"updates":[{"version":"0.27","update_link":"https://git.coom.tech/araragi/JKCS/raw/branch/master/jkcs-0.27.xpi"}]}}}
{"addons":{"{[email protected]}":{"updates":[{"version":"0.30","update_link":"https://git.coom.tech/araragi/JKCS/raw/branch/master/jkcs-0.30.xpi"}]}}}

4
jkcs-0.27.xpi

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ce3dd88fb5afe1b809555fbb01b2db2f05435cbc3378d1c03d2c01037f903f46
size 9886879
oid sha256:e6c1b788a9804fa58b41c9f157dd6e4d014235b5822620078fec0a6cdc6cd569
size 473752

3
jkcs-0.30.xpi

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ca6233c5cd6a89c833dbbba6063dac0b09c1b488ba448c54e5560edee7f6c51a
size 10279265

BIN
logo.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 460 KiB

2
package.json

@ -1,5 +1,5 @@
{
"name": "janny-skillers-captcha-solver",
"name": "joshi-koukousei-captcha-service",
"version": "1.0.0",
"description": "",
"type": "module",

1
src/main.js

@ -16,6 +16,7 @@ const wasmToUrl = wasm => {
const backendloaded = (async () => {
try {
// dead code elimination should occur here
// eslint-disable-next-line camelcase
if (execution_mode === 'userscript') {
weightsData = import('./model.weights.bin')

Loading…
Cancel
Save