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();
|
||||
|
||||
// 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;
|
||||
setBackend("cpu");
|
||||
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"
|
||||
];
|
||||
})();
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"manifest_version": 3,
|
||||
"name": "JannySkillersCaptchaSolver",
|
||||
"description": "The Janny Skillers Captcha Solver of choice.",
|
||||
"version": "0.4",
|
||||
"version": "0.5",
|
||||
"icons": {
|
||||
"64": "1449696017588.png"
|
||||
},
|
||||
|
|
27
src/main.js
27
src/main.js
|
@ -1,34 +1,9 @@
|
|||
// eslint-disable-next-line import/no-unassigned-import
|
||||
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
|
||||
|
||||
tf.setBackend('cpu') // takes too long with webgl backend
|
||||
tf.setBackend('cpu')
|
||||
|
||||
function toggle (obj, v) {
|
||||
if (v) obj.style.display = ''
|
||||
|
|
|
@ -242,8 +242,8 @@ window.modelJSON = {
|
|||
}
|
||||
]
|
||||
}
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const charset = [
|
||||
|
||||
window.charset = [
|
||||
'',
|
||||
'0',
|
||||
'2',
|
||||
|
|
Loading…
Reference in New Issue
Block a user