Browse Source

Move charset to separate file

v1
Araragi 2 years ago
parent
commit
fefddfc2ef
  1. 24
      chrome/dist/main.js
  2. 24
      chrome/dist/model.js
  3. 4
      chrome/manifest.json
  4. 27
      src/main.js
  5. 4
      src/model.js

24
chrome/dist/main.js

@ -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

@ -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"
];
})();

4
chrome/manifest.json

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

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 = ''

4
src/model.js

@ -242,8 +242,8 @@ window.modelJSON = {
}
]
}
// eslint-disable-next-line no-unused-vars
const charset = [
window.charset = [
'',
'0',
'2',

Loading…
Cancel
Save