Compare commits

...

1 Commits

Author SHA1 Message Date
Drake 08feea1578 red alert red alert red alert
ci/woodpecker/push/woodpecker Pipeline was successful Details
2 years ago

@ -25,3 +25,4 @@ pipeline:
secrets: [ access_token ] secrets: [ access_token ]
when: when:
event: [ push ] event: [ push ]
branch: master

@ -1,18 +1,10 @@
import webpack from "./webpack";
import * as idb from "idb-keyval"; import * as idb from "idb-keyval";
import * as nests from "nests"; import * as nests from "nests";
import * as nestsReact from "nests/react"; import * as nestsReact from "nests/react";
const { findByProps } = webpack;
const React = findByProps("createElement");
export default { export default {
React,
ReactDOM: findByProps("hydrate"),
idb, idb,
nests, nests
lodash: findByProps("sample")
}; };
export { idb, nests, nestsReact, React }; export { idb, nests, nestsReact };

@ -1,9 +1,10 @@
import logger from "./logger"; import logger from "./logger";
import modals from "./modals"; //import modals from "./modals";
import object from "./object"
import { leak } from "./memory"; import { leak } from "./memory";
export default { export default {
logger, logger,
modals, object,
memory: { leak } memory: { leak }
}; };

@ -0,0 +1,17 @@
function getByChildProps(obj: UnknownObject, prop: string): UnknownObject {
let m: UnknownObject = {};
Object.values(obj).forEach(e => {
switch (typeof e) {
case "object":
if (Object.keys(e).includes(prop) || Object.values(e).includes(prop)) {
m = e
return
}
}
})
return m
}
export default {
getByChildProps
}

@ -54,26 +54,28 @@ let webpack = {
filter: filter, filter: filter,
find: (filter: Filter) => webpack.filter(filter, webpack.modules, true), find: (filter: Filter) => webpack.filter(filter, webpack.modules, true),
findAll: (filter: Filter) => webpack.filter(filter, webpack.modules), findAll: (filter: Filter) => webpack.filter(filter, webpack.modules),
findByProps: (...props: any[]) => { findByStrings: (...props: string[]) => {
return webpack.find((module) => { return webpack.find((module) =>
return props.every((prop) => module[prop] !== undefined); props.every((prop) => {
}); try {
return Object.values(module).find((e: any) => e.toString().includes(prop))
} catch { return false }
})
);
}, },
findByPropsAll: (...props: any[]) => { findByStringsAll: (...props: string[]) => {
return webpack.findAll((module) => return webpack.findAll((module) =>
props.every((prop) => module[prop] !== undefined) props.every((prop) => {
try {
return Object.values(module).find((e: any) => e.toString().includes(prop))
} catch { return false }
})
); );
}, },
findByDisplayName: (prop: any) => { findByChildProps: (...props: string[]) => {
return webpack.find((m) => m?.displayName === prop); return webpack.find((module) =>
}, props.every((prop) => Object.values(module).find((e: any) => Object.values(e).find((f: any) => f && !!f[prop])))
findByDisplayNameAll: (prop: any) => { )
return webpack.findAll((m) => m?.displayName === prop);
},
findByStrings: (...props: string[]) => {
return webpack.find((module) =>
props.every((prop) => module.toString().contains(prop))
);
}, },
reloadModules: () => { reloadModules: () => {
//NOTE: i have no idea why this could even feasibly need to be used, but i'm adding it anyways //NOTE: i have no idea why this could even feasibly need to be used, but i'm adding it anyways

@ -2,7 +2,7 @@ import webpack from "./api/webpack";
import common from "./api/common"; import common from "./api/common";
import utils from "./api/utils/index"; import utils from "./api/utils/index";
import plugins from "./api/plugin"; import plugins from "./api/plugin";
import settings from "./api/ui/settings/settings"; //import settings from "./api/ui/settings/settings";
import css from "./api/css"; import css from "./api/css";
import patcher from "./api/patcher"; import patcher from "./api/patcher";
import findByRitual from "./api/ritual"; import findByRitual from "./api/ritual";
@ -25,16 +25,14 @@ const demon: Record<string, any> = {
patcher, patcher,
stolas: { stolas: {
monologue: () => { monologue: () => {
const username = webpack const username = "Mitigation"
.findByProps("getCurrentUser")
.getCurrentUser().username;
return _.sample([ return _.sample([
`${username}, you know that when I'm lonely, I become hungry. And when I become hungry, I want to choke on that red **** of yours... **** your ***** and lick all of your *****, before taking out your *****, and **** with more teeth until you're screaming ********** like a FUCKING baby--!`, `${username}, you know that when I'm lonely, I become hungry. And when I become hungry, I want to choke on that red **** of yours... **** your ***** and lick all of your *****, before taking out your *****, and **** with more teeth until you're screaming ********** like a FUCKING baby--!`,
`Ohhh, ${username}! I'm so excited! I cannot wait to feel your slimy c**k inside of my ****. To ***** the— ...**** use while you and I and **** and jelly sandwiches all night...!` `Ohhh, ${username}! I'm so excited! I cannot wait to feel your slimy c**k inside of my ****. To ***** the— ...**** use while you and I and **** and jelly sandwiches all night...!`
]); ]);
} }
}, },
settings //settings
}; };
function summon(mod: string) { function summon(mod: string) {
@ -55,4 +53,4 @@ window.demon = {
}; };
plugins.init(); plugins.init();
settings.init(); //settings.init();

Loading…
Cancel
Save