commit 24dd497fda368f4ba188b0aa5374298de1c63741 Author: Ruthenic Date: Sun Aug 28 19:11:19 2022 -0400 initialize demoncord kernel package diff --git a/.pnpm-debug.log b/.pnpm-debug.log new file mode 100644 index 0000000..6237a2a --- /dev/null +++ b/.pnpm-debug.log @@ -0,0 +1,23 @@ +{ + "0 debug pnpm:scope": { + "selected": 1 + }, + "1 info pnpm": { + "err": { + "name": "Error", + "message": "not found: build", + "code": "ENOENT", + "stack": "Error: not found: build\n at getNotFoundError (/usr/lib/node_modules/pnpm/dist/pnpm.cjs:41455:51)\n at Function.whichSync [as sync] (/usr/lib/node_modules/pnpm/dist/pnpm.cjs:41532:13)\n at getCommandAbsolutePathSync (/usr/lib/node_modules/pnpm/dist/pnpm.cjs:43097:44)\n at default_1 (/usr/lib/node_modules/pnpm/dist/pnpm.cjs:43106:32)\n at /usr/lib/node_modules/pnpm/dist/pnpm.cjs:179764:39" + } + }, + "2 error pnpm": { + "code": "ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL", + "prefix": "/home/ruthenic", + "err": { + "name": "pnpm", + "message": "not found: build", + "code": "ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL", + "stack": "Error: not found: build\n at getNotFoundError (/usr/lib/node_modules/pnpm/dist/pnpm.cjs:41455:51)\n at Function.whichSync [as sync] (/usr/lib/node_modules/pnpm/dist/pnpm.cjs:41532:13)\n at getCommandAbsolutePathSync (/usr/lib/node_modules/pnpm/dist/pnpm.cjs:43097:44)\n at default_1 (/usr/lib/node_modules/pnpm/dist/pnpm.cjs:43106:32)\n at /usr/lib/node_modules/pnpm/dist/pnpm.cjs:179764:39" + } + } +} \ No newline at end of file diff --git a/index.json b/index.json new file mode 100644 index 0000000..1bfe911 --- /dev/null +++ b/index.json @@ -0,0 +1,5 @@ +{ + "name": "Demoncord", + "id": "demon.demoncord", + "description": "A Discord client mod by satanists, for satanists (loader package)" +} diff --git a/renderer.js b/renderer.js new file mode 100644 index 0000000..e069b52 --- /dev/null +++ b/renderer.js @@ -0,0 +1,22 @@ +export default { + noWebpack() { + if (!window.webpackChunkdiscord_app) { + return true + } + return false + }, + async start() { + const text = await (await fetch("https://git.ruthenic.com/Demon/demoncord-rewrite/raw/branch/master/dist/build.js", {cache: "no-store"})).text() + await this.inject(text); + }, + async inject(code) { + if (this.noWebpack()) { + return setTimeout(()=>this.inject(code), 1e3) + } + console.log("Starting Demoncord!") + eval(code) + }, + stop() { + console.log("Uninjecting is overrated.") + }, +};