stuff
This commit is contained in:
parent
91261ed800
commit
604e89bebb
|
@ -30,8 +30,6 @@
|
||||||
const loadId = Math.round(Math.random() * 10000000000000000);
|
const loadId = Math.round(Math.random() * 10000000000000000);
|
||||||
BDFDB.InternalData.loadId = loadId;
|
BDFDB.InternalData.loadId = loadId;
|
||||||
|
|
||||||
var isGuildFolderThere = false; //REMOVE
|
|
||||||
|
|
||||||
if (typeof Array.prototype.flat != "function") Array.prototype.flat = function () {return this;}
|
if (typeof Array.prototype.flat != "function") Array.prototype.flat = function () {return this;}
|
||||||
|
|
||||||
InternalBDFDB.defaults = {
|
InternalBDFDB.defaults = {
|
||||||
|
@ -1079,8 +1077,6 @@
|
||||||
return InternalBDFDB.getWebModuleReq.req;
|
return InternalBDFDB.getWebModuleReq.req;
|
||||||
};
|
};
|
||||||
|
|
||||||
isGuildFolderThere = !!BDFDB.ModuleUtils.findByName("GuildFolder"); //REMOVE
|
|
||||||
|
|
||||||
var WebModulesData = {};
|
var WebModulesData = {};
|
||||||
WebModulesData.PatchTypes = ["before", "instead", "after"];
|
WebModulesData.PatchTypes = ["before", "instead", "after"];
|
||||||
WebModulesData.PatchMap = {
|
WebModulesData.PatchMap = {
|
||||||
|
@ -1114,7 +1110,7 @@
|
||||||
"UserInfo"
|
"UserInfo"
|
||||||
];
|
];
|
||||||
WebModulesData.MemoComponent = [
|
WebModulesData.MemoComponent = [
|
||||||
!isGuildFolderThere && "GuildFolder", //REMOVE
|
"GuildFolder",
|
||||||
"MessageContent",
|
"MessageContent",
|
||||||
"NowPlayingHeader"
|
"NowPlayingHeader"
|
||||||
];
|
];
|
||||||
|
@ -1131,7 +1127,7 @@
|
||||||
V2C_ContentColumn: ins => ins && ins.return && ins.return.stateNode && ins.return.stateNode.props && typeof ins.return.stateNode.props.title == "string" && (ins.return.stateNode.props.title.toUpperCase().indexOf("PLUGINS") == 0 || ins.return.stateNode.props.title.toUpperCase().indexOf("THEMES") == 0) && ins.return.type,
|
V2C_ContentColumn: ins => ins && ins.return && ins.return.stateNode && ins.return.stateNode.props && typeof ins.return.stateNode.props.title == "string" && (ins.return.stateNode.props.title.toUpperCase().indexOf("PLUGINS") == 0 || ins.return.stateNode.props.title.toUpperCase().indexOf("THEMES") == 0) && ins.return.type,
|
||||||
V2C_PluginCard: ins => ins && ins.return && ins.return.stateNode && ins.return.stateNode.props && ins.return.stateNode.props.addon && ins.return.stateNode.props.addon.plugin && ins.return.type,
|
V2C_PluginCard: ins => ins && ins.return && ins.return.stateNode && ins.return.stateNode.props && ins.return.stateNode.props.addon && ins.return.stateNode.props.addon.plugin && ins.return.type,
|
||||||
V2C_ThemeCard: ins => ins && ins.return && ins.return.stateNode && ins.return.stateNode.props && ins.return.stateNode.props.addon && ins.return.stateNode.props.addon.css && ins.return.type,
|
V2C_ThemeCard: ins => ins && ins.return && ins.return.stateNode && ins.return.stateNode.props && ins.return.stateNode.props.addon && ins.return.stateNode.props.addon.css && ins.return.type,
|
||||||
GuildFolder: isGuildFolderThere ? null :ins => ins && ins.return && ins.return.memoizedProps && ins.return.memoizedProps.folderId && ins.return.memoizedProps.guildIds && ins.return.type //REMOVE
|
GuildFolder: ins => ins && ins.return && ins.return.memoizedProps && ins.return.memoizedProps.folderId && ins.return.memoizedProps.guildIds && ins.return.type
|
||||||
};
|
};
|
||||||
WebModulesData.PatchFinder = {
|
WebModulesData.PatchFinder = {
|
||||||
Account: "accountinfo",
|
Account: "accountinfo",
|
||||||
|
@ -1147,7 +1143,7 @@
|
||||||
DirectMessage: "guildouter",
|
DirectMessage: "guildouter",
|
||||||
EmojiPicker: "emojipicker",
|
EmojiPicker: "emojipicker",
|
||||||
Guild: "guildouter",
|
Guild: "guildouter",
|
||||||
GuildFolder: isGuildFolderThere ? null :"guildfolderwrapper", //REMOVE
|
GuildFolder: "guildfolderwrapper",
|
||||||
GuildIcon: "avataricon",
|
GuildIcon: "avataricon",
|
||||||
Guilds: "guildswrapper",
|
Guilds: "guildswrapper",
|
||||||
GuildSettingsBans: "guildsettingsbannedcard",
|
GuildSettingsBans: "guildsettingsbannedcard",
|
||||||
|
@ -1386,7 +1382,6 @@
|
||||||
if (!BDFDB.ObjectUtils.is(plugin) || !BDFDB.ObjectUtils.is(plugin.patchedModules)) return;
|
if (!BDFDB.ObjectUtils.is(plugin) || !BDFDB.ObjectUtils.is(plugin.patchedModules)) return;
|
||||||
BDFDB.ModuleUtils.unpatch(plugin);
|
BDFDB.ModuleUtils.unpatch(plugin);
|
||||||
for (let patchType in plugin.patchedModules) for (let type in plugin.patchedModules[patchType]) {
|
for (let patchType in plugin.patchedModules) for (let type in plugin.patchedModules[patchType]) {
|
||||||
if (isGuildFolderThere && type == "GuildFolder") plugin.patchedModules[patchType][type] = "render"; //REMOVE
|
|
||||||
let unmappedType = type.split(" _ _ ")[1] || type;
|
let unmappedType = type.split(" _ _ ")[1] || type;
|
||||||
let component = WebModulesData.LoadedInComponents[type] && BDFDB.ReactUtils.getValue(InternalComponents, WebModulesData.LoadedInComponents[type]);
|
let component = WebModulesData.LoadedInComponents[type] && BDFDB.ReactUtils.getValue(InternalComponents, WebModulesData.LoadedInComponents[type]);
|
||||||
if (component) patchInstance(WebModulesData.NonRender.includes(unmappedType) ? (BDFDB.ModuleUtils.find(m => m == component, false) || {}).exports : component, type, patchType);
|
if (component) patchInstance(WebModulesData.NonRender.includes(unmappedType) ? (BDFDB.ModuleUtils.find(m => m == component, false) || {}).exports : component, type, patchType);
|
||||||
|
@ -9630,11 +9625,6 @@
|
||||||
BDFDB.LibraryComponents[component] = "div";
|
BDFDB.LibraryComponents[component] = "div";
|
||||||
}
|
}
|
||||||
|
|
||||||
// REMOVE
|
|
||||||
BDFDB.loadMessage = BDFDB.PluginUtils.init;
|
|
||||||
BDFDB.unloadMessage = BDFDB.PluginUtils.clear;
|
|
||||||
BDFDB.createSettingsPanel = BDFDB.PluginUtils.createSettingsPanel;
|
|
||||||
|
|
||||||
BDFDB.loaded = true;
|
BDFDB.loaded = true;
|
||||||
window.BDFDB = BDFDB;
|
window.BDFDB = BDFDB;
|
||||||
InternalBDFDB.reloadLib = _ => {
|
InternalBDFDB.reloadLib = _ => {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1521,15 +1521,32 @@ body:before {
|
||||||
color: rgb(var(--fontwhite3));
|
color: rgb(var(--fontwhite3));
|
||||||
}
|
}
|
||||||
|
|
||||||
#app-mount .wrapper-KXM2i0 { /* call wrapper */
|
#app-mount .wrapper-KXM2i0,
|
||||||
|
#app-mount .wrapper-2qzCYF { /* call wrapper */
|
||||||
background-color: rgba(var(--vtransparencycolor), calc(var(--vguildchanneltransparency) * 0.8));
|
background-color: rgba(var(--vtransparencycolor), calc(var(--vguildchanneltransparency) * 0.8));
|
||||||
}
|
}
|
||||||
#app-mount .root-3B6O5N { /* call root */
|
#app-mount .root-3B6O5N,
|
||||||
|
#app-mount .root-217Brm { /* call root */
|
||||||
color: rgb(var(--fontwhite1));
|
color: rgb(var(--fontwhite1));
|
||||||
}
|
}
|
||||||
#app-mount .video-1FfuMD { /* call video */
|
#app-mount .video-1FfuMD { /* call video */
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
#app-mount .gradientContainer-10lXLB {
|
||||||
|
background: linear-gradient(rgb(var(--vtransparencycolor)), transparent 15%, transparent 85%, rgb(var(--vtransparencycolor)));
|
||||||
|
}
|
||||||
|
.centerButton-3CaNcJ {
|
||||||
|
background-color: rgba(var(--vtransparencycolor), 0.5);
|
||||||
|
}
|
||||||
|
.centerButton-3CaNcJ:hover {
|
||||||
|
background-color: rgb(var(--vaccentcolor));
|
||||||
|
}
|
||||||
|
.controlButton-2MhVEL.leaveButton-2YnTyt {
|
||||||
|
background-color: rgba(240, 71, 71, 0.5);
|
||||||
|
}
|
||||||
|
.controlButton-2MhVEL.leaveButton-2YnTyt:hover {
|
||||||
|
background-color: rgb(240, 71, 71);
|
||||||
|
}
|
||||||
#app-mount .wrapper-29NfPK.minimum-2d6zH6 .actions-2vadYq .center-1Vp33r {
|
#app-mount .wrapper-29NfPK.minimum-2d6zH6 .actions-2vadYq .center-1Vp33r {
|
||||||
background-color: rgba(var(--vtransparencycolor), 0.4);
|
background-color: rgba(var(--vtransparencycolor), 0.4);
|
||||||
border: none;
|
border: none;
|
||||||
|
|
Loading…
Reference in New Issue