mirror of
https://git.coom.tech/araragi/JKCS.git
synced 2024-06-26 12:42:41 +00:00
Move charset to separate file
This commit is contained in:
parent
8bd75169f8
commit
854e848d4d
24
chrome/dist/main.js
vendored
24
chrome/dist/main.js
vendored
|
@ -48688,30 +48688,6 @@ return a / b;`;
|
||||||
init_define_BUILD_VERSION();
|
init_define_BUILD_VERSION();
|
||||||
|
|
||||||
// src/main.js
|
// src/main.js
|
||||||
var charset = [
|
|
||||||
"",
|
|
||||||
"0",
|
|
||||||
"2",
|
|
||||||
"4",
|
|
||||||
"8",
|
|
||||||
"A",
|
|
||||||
"D",
|
|
||||||
"G",
|
|
||||||
"H",
|
|
||||||
"J",
|
|
||||||
"K",
|
|
||||||
"M",
|
|
||||||
"N",
|
|
||||||
"P",
|
|
||||||
"Q",
|
|
||||||
"R",
|
|
||||||
"S",
|
|
||||||
"T",
|
|
||||||
"V",
|
|
||||||
"W",
|
|
||||||
"X",
|
|
||||||
"Y"
|
|
||||||
];
|
|
||||||
var model2;
|
var model2;
|
||||||
setBackend("cpu");
|
setBackend("cpu");
|
||||||
function toggle(obj, v) {
|
function toggle(obj, v) {
|
||||||
|
|
24
chrome/dist/model.js
vendored
24
chrome/dist/model.js
vendored
|
@ -244,4 +244,28 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
window.charset = [
|
||||||
|
"",
|
||||||
|
"0",
|
||||||
|
"2",
|
||||||
|
"4",
|
||||||
|
"8",
|
||||||
|
"A",
|
||||||
|
"D",
|
||||||
|
"G",
|
||||||
|
"H",
|
||||||
|
"J",
|
||||||
|
"K",
|
||||||
|
"M",
|
||||||
|
"N",
|
||||||
|
"P",
|
||||||
|
"Q",
|
||||||
|
"R",
|
||||||
|
"S",
|
||||||
|
"T",
|
||||||
|
"V",
|
||||||
|
"W",
|
||||||
|
"X",
|
||||||
|
"Y"
|
||||||
|
];
|
||||||
})();
|
})();
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"name": "Janny Skillers Captcha Solver",
|
"name": "JannySkillersCaptchaSolver",
|
||||||
"description": "The Janny Skillers Captcha Solver of choice.",
|
"description": "The Janny Skillers Captcha Solver of choice.",
|
||||||
"version": "0.4",
|
"version": "0.5",
|
||||||
"icons": {
|
"icons": {
|
||||||
"64": "1449696017588.png"
|
"64": "1449696017588.png"
|
||||||
},
|
},
|
||||||
|
|
27
src/main.js
27
src/main.js
|
@ -1,34 +1,9 @@
|
||||||
// eslint-disable-next-line import/no-unassigned-import
|
// eslint-disable-next-line import/no-unassigned-import
|
||||||
import * as tf from '@tensorflow/tfjs'
|
import * as tf from '@tensorflow/tfjs'
|
||||||
|
|
||||||
const charset = [
|
|
||||||
'',
|
|
||||||
'0',
|
|
||||||
'2',
|
|
||||||
'4',
|
|
||||||
'8',
|
|
||||||
'A',
|
|
||||||
'D',
|
|
||||||
'G',
|
|
||||||
'H',
|
|
||||||
'J',
|
|
||||||
'K',
|
|
||||||
'M',
|
|
||||||
'N',
|
|
||||||
'P',
|
|
||||||
'Q',
|
|
||||||
'R',
|
|
||||||
'S',
|
|
||||||
'T',
|
|
||||||
'V',
|
|
||||||
'W',
|
|
||||||
'X',
|
|
||||||
'Y'
|
|
||||||
]
|
|
||||||
|
|
||||||
let model
|
let model
|
||||||
|
|
||||||
tf.setBackend('cpu') // takes too long with webgl backend
|
tf.setBackend('cpu')
|
||||||
|
|
||||||
function toggle (obj, v) {
|
function toggle (obj, v) {
|
||||||
if (v) obj.style.display = ''
|
if (v) obj.style.display = ''
|
||||||
|
|
|
@ -242,8 +242,8 @@ window.modelJSON = {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line no-unused-vars
|
|
||||||
const charset = [
|
window.charset = [
|
||||||
'',
|
'',
|
||||||
'0',
|
'0',
|
||||||
'2',
|
'2',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user