You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
544 B

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.")
},
};