This commit is contained in:
Mirco Wittrien 2020-07-17 10:42:37 +02:00
parent 51c32f9516
commit b1b1e341e4
4 changed files with 9 additions and 11 deletions

View File

@ -1257,7 +1257,7 @@
ModalLayer: "layermodal", ModalLayer: "layermodal",
MutualGuilds: "userprofilebody", MutualGuilds: "userprofilebody",
MutualFriends: "userprofilebody", MutualFriends: "userprofilebody",
Note: ["usernotepopout", "usernoteprofile"], Note: "usernotetextarea",
PopoutContainer: "popout", PopoutContainer: "popout",
Popouts: "popouts", Popouts: "popouts",
PrivateChannelCall: "callcurrentcontainer", PrivateChannelCall: "callcurrentcontainer",
@ -1491,7 +1491,6 @@
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);
else { else {
let className = WebModulesData.PatchFinder[unmappedType];
let classNames = [WebModulesData.PatchFinder[unmappedType]].flat(10).filter(n => DiscordClasses[n]); let classNames = [WebModulesData.PatchFinder[unmappedType]].flat(10).filter(n => DiscordClasses[n]);
let codeFind = WebModulesData.CodeFinder[unmappedType]; let codeFind = WebModulesData.CodeFinder[unmappedType];
let propertyFind = WebModulesData.PropsFinder[unmappedType]; let propertyFind = WebModulesData.PropsFinder[unmappedType];
@ -4429,6 +4428,7 @@
DiscordClassModules.NameContainer = BDFDB.ModuleUtils.findByProperties("nameAndDecorators", "name"); DiscordClassModules.NameContainer = BDFDB.ModuleUtils.findByProperties("nameAndDecorators", "name");
DiscordClassModules.NameTag = BDFDB.ModuleUtils.findByProperties("bot", "nameTag"); DiscordClassModules.NameTag = BDFDB.ModuleUtils.findByProperties("bot", "nameTag");
DiscordClassModules.NitroStore = BDFDB.ModuleUtils.findByProperties("applicationStore", "marketingHeader"); DiscordClassModules.NitroStore = BDFDB.ModuleUtils.findByProperties("applicationStore", "marketingHeader");
DiscordClassModules.NoteTextarea = BDFDB.ModuleUtils.find(m => typeof m.textarea == "string" && Object.keys(m).length == 1);
DiscordClassModules.Notice = BDFDB.ModuleUtils.findByProperties("notice", "noticeFacebook"); DiscordClassModules.Notice = BDFDB.ModuleUtils.findByProperties("notice", "noticeFacebook");
DiscordClassModules.Peoples = BDFDB.ModuleUtils.findByProperties("peopleColumn", "tabBar"); DiscordClassModules.Peoples = BDFDB.ModuleUtils.findByProperties("peopleColumn", "tabBar");
DiscordClassModules.PictureInPicture = BDFDB.ModuleUtils.findByProperties("pictureInPicture", "pictureInPictureWindow"); DiscordClassModules.PictureInPicture = BDFDB.ModuleUtils.findByProperties("pictureInPicture", "pictureInPictureWindow");
@ -4438,7 +4438,7 @@
DiscordClassModules.PrivateChannelListScroller = BDFDB.ModuleUtils.findByProperties("scroller", "empty"); DiscordClassModules.PrivateChannelListScroller = BDFDB.ModuleUtils.findByProperties("scroller", "empty");
DiscordClassModules.Popout = BDFDB.ModuleUtils.findByProperties("popout", "arrowAlignmentTop"); DiscordClassModules.Popout = BDFDB.ModuleUtils.findByProperties("popout", "arrowAlignmentTop");
DiscordClassModules.PopoutActivity = BDFDB.ModuleUtils.findByProperties("ellipsis", "activityActivityFeed"); DiscordClassModules.PopoutActivity = BDFDB.ModuleUtils.findByProperties("ellipsis", "activityActivityFeed");
DiscordClassModules.QuickMessage = BDFDB.ModuleUtils.find(m => typeof m.input == "string" && Object.keys(m).length == 1);; DiscordClassModules.QuickMessage = BDFDB.ModuleUtils.find(m => typeof m.input == "string" && Object.keys(m).length == 1);
DiscordClassModules.QuickSelect = BDFDB.ModuleUtils.findByProperties("quickSelectArrow", "selected"); DiscordClassModules.QuickSelect = BDFDB.ModuleUtils.findByProperties("quickSelectArrow", "selected");
DiscordClassModules.QuickSwitch = BDFDB.ModuleUtils.findByProperties("resultFocused", "guildIconContainer"); DiscordClassModules.QuickSwitch = BDFDB.ModuleUtils.findByProperties("resultFocused", "guildIconContainer");
DiscordClassModules.QuickSwitchWrap = BDFDB.ModuleUtils.findByProperties("container", "miscContainer"); DiscordClassModules.QuickSwitchWrap = BDFDB.ModuleUtils.findByProperties("container", "miscContainer");
@ -5965,6 +5965,7 @@
username: ["NameTag", "username"], username: ["NameTag", "username"],
usernotepopout: ["UserPopout", "note"], usernotepopout: ["UserPopout", "note"],
usernoteprofile: ["UserProfile", "note"], usernoteprofile: ["UserProfile", "note"],
usernotetextarea: ["NoteTextarea", "textarea"],
vertical: ["Flex", "vertical"], vertical: ["Flex", "vertical"],
voiceavatar: ["VoiceChannel", "avatar"], voiceavatar: ["VoiceChannel", "avatar"],
voiceavatarcontainer: ["VoiceChannel", "avatarContainer"], voiceavatarcontainer: ["VoiceChannel", "avatarContainer"],

File diff suppressed because one or more lines are too long

View File

@ -17,7 +17,7 @@ var CharCounter = (_ => {
return class CharCounter { return class CharCounter {
getName () {return "CharCounter";} getName () {return "CharCounter";}
getVersion () {return "1.4.8";} getVersion () {return "1.4.9";}
getAuthor () {return "DevilBro";} getAuthor () {return "DevilBro";}
@ -71,7 +71,7 @@ var CharCounter = (_ => {
bottom: -10px !important; bottom: -10px !important;
font-size: 12px !important; font-size: 12px !important;
} }
${BDFDB.dotCN.usernote} textarea:not(:focus) + ${BDFDB.dotCN._charcountercounter} { ${BDFDB.dotCN.usernotetextarea}:not(:focus) ~ ${BDFDB.dotCN._charcountercounter} {
display: none; display: none;
}`; }`;
} }

View File

@ -4294,13 +4294,10 @@ body:before {
cursor: pointer; cursor: pointer;
} }
.note-3kmerW textarea { /* body note */ .textarea-2r0oV8:focus { /* body note */
color: rgba(var(--fontwhite2));
}
.note-3kmerW textarea:focus {
background-color: rgba(var(--vtransparencycolor), 0.2); background-color: rgba(var(--vtransparencycolor), 0.2);
} }
.note-3kmerW textarea::placeholder { .textarea-2r0oV8::placeholder {
color: rgba(var(--fontwhite4)); color: rgba(var(--fontwhite4));
} }