Commit 399901ba authored by Akari Labs's avatar Akari Labs

use new packaging system

parent 2fdf61c8
......@@ -30,7 +30,7 @@ module.exports = function () {
slurring: 0.05,
stutter: 0.1,
bitrot: 0.09,
blackout: 0.08 / 16,
blackout: 0.005,
garbage: 0.015,
zalgo: 0.7,
......
......@@ -107,7 +107,7 @@
"integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ="
},
"nanopack": {
"version": "git+https://git.agiri.ninja/lp0/nanopack.git#9dccad64c26ee2995b5451cd6a0c97c7358347db",
"version": "git+https://git.agiri.ninja/lp0/nanopack.git#211f314f036db5beefd0363d14aed73442231247",
"from": "git+https://git.agiri.ninja/lp0/nanopack.git",
"requires": {
"buble": "^0.19.7",
......
{
"friendly_name": "gltchrr",
"depends": [
"nanopack_kwm"
],
"modules": {
"inject": {
"filename": "modules/inject.js"
},
"@index": {
"filename": "modules/gltchrr.js"
},
"ui": {
"filename": "modules/ui.jsx",
"type": "jsx"
}
}
}
\ No newline at end of file
const ui = new (require('gltchrr!ui'))();
const gltchrr = ui.gltchrr;
// expose the control functions through window.gltchrr
window.gltchrr = ui.gltchrr.control;
var showing = false;
module.exports = {
selfbot: {
callbacks: [gltchrr.processText],
commands: {
gltoggle: {
description: 'Toggle showing the gltchrr UI',
action: m => {
if (showing) {
ui.hide();
showing = false;
}
else {
ui.show();
showing = true;
}
m.content = '';
}
}
}
}
};
\ No newline at end of file
{
"friendly_name": "gltchrr_discord",
"depends": [
"../..",
"nanopack_tsundiscord"
],
"modules": {
"@index": {
"filename": "hook.js",
"orchestrate": true
}
},
"main": [
"gltchrr_discord"
]
}
\ No newline at end of file
{
"friendly_name": "gltchrr_standalone",
"depends": [
"../.."
],
"modules": {
"index.css": {
"filename": "standalone.css",
"type": "css"
},
"@index": {
"filename": "standalone.jsx",
"type": "jsx"
}
},
"main": [
"gltchrr_standalone"
]
}
\ No newline at end of file
const inject = require('inject');
const ui = new (require('gltchrr.ui'))({
const inject = require('kwm!inject');
const ui = new (require('gltchrr!ui'))({
y: 544
});
......
const target = {};
Object.assign(target, require('./shared.json'));
target.directories = target.directories.concat();
target.modules = target.modules.concat();
target.header = `// ==UserScript==
module.exports = {
finalize: true,
minify: true,
header: `// ==UserScript==
// @name gltchrr for Discord
// @namespace http://akari.vii/
// @version 1.2.5
......@@ -14,14 +12,9 @@ target.header = `// ==UserScript==
// @run-at document-start
// ==/UserScript==
`;
target.directories.push('modules/discord');
target.modules.push('nanopack_tsundiscord');
target.meta = {
'gltchrr.hook': {
orchestrate: true
}
};
target.output = 'gltchrr_discord.userscript.js'
module.exports = () => target;
\ No newline at end of file
`,
packages: [
'./packages/discord'
],
output: 'gltchrr_discord.userscript.js'
};
\ No newline at end of file
const target = {};
Object.assign(target, require('./shared.json'));
target.directories = target.directories.concat();
target.modules = target.modules.concat();
target.header = `// ==UserScript==
// @name gltchrr for PleromaFE
// @namespace http://akari.vii/
// @version 1.2.5
// @description g̴̐͋litcc̣̟̭̿cch
// @author lp0 and nocebo
// @match https://girldick.icu/*
// @grant none
// @run-at document-start
// ==/UserScript==
`;
target.directories.push('modules/pleromafe');
target.modules.push('nanopack_cascade');
target.meta = {
'gltchrr.hook': {
orchestrate: true
}
};
target.output = 'gltchrr_pleromafe.userscript.js'
module.exports = () => target;
\ No newline at end of file
{
"directories": [
"modules/shared"
],
"modules": [
"nanopack_kwm"
],
"minify": true
}
\ No newline at end of file
const target = {};
Object.assign(target, require('./shared.json'));
target.directories = target.directories.concat();
target.header = `<!DOCTYPE HTML><html><head><meta charset="utf-8"><script>`;
target.footer = `</script></head><body><noscript><h1>this page requires javascript, sorry!</h1></noscript></body></html>`;
target.directories.push('modules/standalone');
target.output = 'gltchrr.html';
target.main = ['index'];
module.exports = () => target;
\ No newline at end of file
{
"finalize": true,
"minify": true,
"header": "<!DOCTYPE HTML><html><head><meta charset=\"utf-8\"><script>",
"footer": "</script></head><body><noscript><h1>this page requires javascript, sorry!</h1></noscript></body></html>",
"packages": [
"./packages/standalone"
],
"output": "gltchrr.html"
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment