stuff
This commit is contained in:
parent
5c15719cfa
commit
e6bd90ee40
|
@ -3885,6 +3885,9 @@
|
|||
switchItem: "ui-switch-item",
|
||||
switchWrapper: "ui-switch-wrapper"
|
||||
};
|
||||
DiscordClassModules.BetterNsfwTag = {
|
||||
nsfwTag: "nsfwTag-666omg"
|
||||
};
|
||||
DiscordClassModules.ChatFilter = {
|
||||
blocked: "blocked-jUhayi",
|
||||
blockedStamp: "blockedStamp-ijVeNn",
|
||||
|
@ -4225,6 +4228,7 @@
|
|||
_bdguildvideo: ["BDrepo", "bdGuildVideo"],
|
||||
_bdpillselected: ["BDrepo", "bdPillSelected"],
|
||||
_bdpillunread: ["BDrepo", "bdPillUnread"],
|
||||
_betternsfwtagtag: ["BetterNsfwTag", "nsfwTag"],
|
||||
_chatfilterblocked: ["ChatFilter", "blocked"],
|
||||
_chatfilterblockedstamp: ["ChatFilter", "blockedStamp"],
|
||||
_chatfiltercensored: ["ChatFilter", "censored"],
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@ var BetterNsfwTag = (_ => {
|
|||
return class BetterNsfwTag {
|
||||
getName () {return "BetterNsfwTag";}
|
||||
|
||||
getVersion () {return "1.2.3";}
|
||||
getVersion () {return "1.2.4";}
|
||||
|
||||
getAuthor () {return "DevilBro";}
|
||||
|
||||
|
@ -12,7 +12,7 @@ var BetterNsfwTag = (_ => {
|
|||
|
||||
constructor () {
|
||||
this.changelog = {
|
||||
"improved":[["New Library Structure & React","Restructured my Library and switched to React rendering instead of DOM manipulation"]]
|
||||
"improved":[["Position","Tag was repositioned similar to the mentions badge"],["New Library Structure & React","Restructured my Library and switched to React rendering instead of DOM manipulation"]]
|
||||
};
|
||||
|
||||
this.patchedModules = {
|
||||
|
@ -76,11 +76,14 @@ var BetterNsfwTag = (_ => {
|
|||
if (index > -1 && children[index].props && children[index].props.children) {
|
||||
let [oldTagParent, oldTagIndex] = BDFDB.ReactUtils.findChildren(children[index], {key: "NSFW-badge"});
|
||||
if (oldTagIndex > -1) oldTagParent.splice(oldTagIndex, 1);
|
||||
children[index].props.children.unshift(BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Badges.TextBadge, {
|
||||
className: "NSFW-badge",
|
||||
children[index].props.children.push(BDFDB.ReactUtils.createElement("div", {
|
||||
className: BDFDB.disCN.channelchildiconbase,
|
||||
key: "NSFW-badge",
|
||||
style: {borderRadius: "3px"},
|
||||
text: "NSFW"
|
||||
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Badges.TextBadge, {
|
||||
className: BDFDB.disCN._betternsfwtagtag,
|
||||
style: {borderRadius: "3px"},
|
||||
text: "NSFW"
|
||||
})
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue