initialize demoncord kernel package
commit
24dd497fda
@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"name": "Demoncord",
|
||||||
|
"id": "demon.demoncord",
|
||||||
|
"description": "A Discord client mod by satanists, for satanists (loader package)"
|
||||||
|
}
|
@ -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.")
|
||||||
|
},
|
||||||
|
};
|
Loading…
Reference in new issue