stuff
|
@ -1,6 +1,9 @@
|
|||
{
|
||||
"PluginNameMap": {
|
||||
"OwnerTag": "StaffTag"
|
||||
"BadgesEverywhere": "ShowBadgesInChat",
|
||||
"OwnerTag": "StaffTag",
|
||||
"RemoveBlockedMessages": "RemoveBlockedUsers",
|
||||
"RevealAllSpoilersOption": "RevealAllSpoilers"
|
||||
},
|
||||
"LibraryRequires": ["child_process", "electron", "fs", "path", "process", "request"],
|
||||
"DiscordObjects": {
|
||||
|
@ -820,13 +823,6 @@
|
|||
"switchItem": "ui-switch-item",
|
||||
"switchWrapper": "ui-switch-wrapper"
|
||||
},
|
||||
"BadgesEverywhere": {
|
||||
"badges": "badges-XRnWAp",
|
||||
"badgesChat": "badgesChat-f_cbR8",
|
||||
"badgesList": "badgesList-Aw_p52",
|
||||
"badgesSettings": "badgesSettings-ychoGn",
|
||||
"indicator": "indicator-8F4GGw"
|
||||
},
|
||||
"BetterFriendList": {
|
||||
"mutualGuilds": "mutualGuilds-s7F2aa",
|
||||
"nameCell": "nameCell-7F4sRs",
|
||||
|
@ -974,6 +970,14 @@
|
|||
"error": "error-k9z2IV",
|
||||
"overlay": "spellCheckOverlay-cNSap5"
|
||||
},
|
||||
"ShowBadgesInChat": {
|
||||
"badges": "badges-XRnWAp",
|
||||
"badgesChat": "badgesChat-f_cbR8",
|
||||
"badgesDMs": "badgesDMs-Aw_p52",
|
||||
"badgesMembers": "badgesMembers-8Kf3S1",
|
||||
"badgesSettings": "badgesSettings-ychoGn",
|
||||
"indicator": "indicator-8F4GGw"
|
||||
},
|
||||
"ShowConnections": {
|
||||
"connection": "connection-9Gh4sa",
|
||||
"connectionIcon": "connectionIcon-888F4s",
|
||||
|
@ -1353,11 +1357,6 @@
|
|||
"_bdminimalmode": ["BD", "bdMinimalMode"],
|
||||
"_bdpillselected": ["BD", "bdPillSelected"],
|
||||
"_bdpillunread": ["BD", "bdPillUnread"],
|
||||
"_badgeseverywherebadges": ["BadgesEverywhere", "badges"],
|
||||
"_badgeseverywherebadgeschat": ["BadgesEverywhere", "badgesChat"],
|
||||
"_badgeseverywherebadgeslist": ["BadgesEverywhere", "badgesList"],
|
||||
"_badgeseverywherebadgessettings": ["BadgesEverywhere", "badgesSettings"],
|
||||
"_badgeseverywhereindicator": ["BadgesEverywhere", "indicator"],
|
||||
"_betterfriendlistmutualguilds": ["BetterFriendList", "mutualGuilds"],
|
||||
"_betterfriendlistnamecell": ["BetterFriendList", "nameCell"],
|
||||
"_betterfriendlisttitle": ["BetterFriendList", "title"],
|
||||
|
@ -1457,11 +1456,16 @@
|
|||
"_serverfoldersiconswatchpreview": ["ServerFolders", "iconSwatchPreview"],
|
||||
"_serverfoldersiconswatchnopreview": ["ServerFolders", "iconSwatchNoPreview"],
|
||||
"_serverfoldersiconswatchselected": ["ServerFolders", "iconSwatchSelected"],
|
||||
"_showhiddenchannelsaccessmodal": ["ShowHiddenChannels", "accessModal"],
|
||||
"_showbadgesinchatbadges": ["ShowBadgesInChat", "badges"],
|
||||
"_showbadgesinchatbadgeschat": ["ShowBadgesInChat", "badgesChat"],
|
||||
"_showbadgesinchatbadgeslist": ["ShowBadgesInChat", "badgesList"],
|
||||
"_showbadgesinchatbadgessettings": ["ShowBadgesInChat", "badgesSettings"],
|
||||
"_showbadgesinchatindicator": ["ShowBadgesInChat", "indicator"],
|
||||
"_showconnectionsconnection": ["ShowConnections", "connection"],
|
||||
"_showconnectionsconnections": ["ShowConnections", "connections"],
|
||||
"_showconnectionsicon": ["ShowConnections", "connectionIcon"],
|
||||
"_showconnectionsverifiedbadge": ["ShowConnections", "verifiedBadge"],
|
||||
"_showhiddenchannelsaccessmodal": ["ShowHiddenChannels", "accessModal"],
|
||||
"_spellcheckerror": ["SpellCheck", "error"],
|
||||
"_spellcheckoverlay": ["SpellCheck", "overlay"],
|
||||
"_spotifycontrolsactivitybutton": ["SpotifyControls", "activityButton"],
|
||||
|
|
|
@ -184,7 +184,6 @@ module.exports = (_ => {
|
|||
text-decoration: underline;
|
||||
}
|
||||
${BDFDB.dotCNS.dmchannel + BDFDB.dotCN.bottag} {
|
||||
display: inline;
|
||||
margin-left: 4px;
|
||||
}
|
||||
${BDFDB.dotCNS.peoplesuser + BDFDB.dotCN.peoplesdiscriminator} {
|
||||
|
@ -1052,9 +1051,9 @@ module.exports = (_ => {
|
|||
else {
|
||||
e.returnvalue.props.name = BDFDB.ReactUtils.createElement("span", {children: this.getUserData(e.instance.props.user.id).username});
|
||||
this.changeUserColor(e.returnvalue.props.name, e.instance.props.user.id, {modify: BDFDB.ObjectUtils.extract(Object.assign({}, e.instance.props, e.instance.state), "hovered", "selected", "hasUnreadMessages", "muted")});
|
||||
e.returnvalue.props.name = [e.returnvalue.props.name];
|
||||
e.returnvalue.props.avatar.props.src = this.getUserAvatar(e.instance.props.user.id);
|
||||
this.injectBadge(e.returnvalue.props.name, e.instance.props.user.id, null, 1);
|
||||
e.returnvalue.props.decorators = [e.returnvalue.props.decorators].flat(10);
|
||||
this.injectBadge(e.returnvalue.props.decorators, e.instance.props.user.id, null, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
[patreon-badge]: https://img.shields.io/badge/Patreon-%23F96854.svg?style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAdhwAAHYcBj+XxZQAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAGBSURBVFiF7Za9ThtBFEbPBUpERWMwCorfJjY4aVLxBFHCKyCl4hWQUqVMBULmbfiRCNACqSJsDsXakjHGO8Y7ovFXrmbmO3NnZ74bqrzUeUR8HPP9mdQ60AZawCZQBwK4BC6ADnAUEZeTFhmnsxLjdfVAfXhl/rB66h/1QyUAalu9TzAe1Z26NROAutvf0VvVU7+/CUD9PKP5MMT2VADqhvqvAvOB7tQ1gIXXznpEP4HlxLEpWgH2AEInX0OLv/cUWKwQAKALbKZU4EsGc4AloJ0C8CmD+UDNFIBGRoBGCkAtI8B66i3IpccUgJuMANcpAKcZAc5SAE4yAnRSAA6BXgbzLnBUChARF8DvDAC/IuIqNYzqFYfRrVqDxDCKiL/AV6o5ikdgJyJuBrsrrcBQJX44W0/QVb+NLpoM0B/f6pdwWt2qL3NlWoD+nFV1X/2fYPxg0cCOfdJL+4ESkBqwDTQpQmuNoi2/onjAOsBxRFxPWmTqClSp9w6jOcAcYA7AE1OMk5ulhBZCAAAAAElFTkSuQmCC
|
||||
[patreon-link]: https://patreon.com/MircoWittrien
|
||||
|
||||
- [Badges Everywhere](https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/BadgesEverywhere) - Displays Badges (Nitro, Hypesquad, etc...) in the Chat/MemberList
|
||||
- [Show Badges In Chat](https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/ShowBadgesInChat) - Displays Badges (Nitro, Hypesquad, etc...) in the Chat/MemberList/DMList
|
||||
- [Better Friend List](https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/BetterFriendList) - Adds extra Controls to the Friends Page, for example sort by Name/Status, Search and All/Request/Blocked Amount
|
||||
- [Better NSFW Tag](https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/BetterNsfwTag) - Adds a more noticeable Tag to NSFW Channels
|
||||
- [Better Search Page](https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/BetterSearchPage) - Adds some extra Controls to the Search Results Page
|
||||
|
@ -44,9 +44,9 @@
|
|||
- [Plugin Repo](https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/PluginRepo) - Allows you to download all Plugins from BD's Website within Discord
|
||||
- [Quick Mention](https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/QuickMention) - Adds a Mention Button to the Message Options Bar
|
||||
- [Read All Notifications Button](https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/ReadAllNotificationsButton) - Adds a Clear Button to the Server List and the Mentions Popout
|
||||
- [Remove Blocked Messages](https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/RemoveBlockedMessages) - Removes blocked Messages/Users
|
||||
- [Remove Blocked Users](https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/RemoveBlockedUsers) - Removes blocked Messages/Users
|
||||
- [Remove Nicknames](https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/RemoveNicknames) - Replaces Nicknames with Accountnames
|
||||
- [Reveal All Spoilers Option](https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/RevealAllSpoilersOption) - Allows you to reveal all Spoilers within a Message/Status by holding the Ctrl Key and clicking a Spoiler
|
||||
- [Reveal All Spoilers](https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/RevealAllSpoilers) - Allows you to reveal all Spoilers within a Message/Status by holding the Ctrl Key and clicking a Spoiler
|
||||
- [Send Large Messages](https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/SendLargeMessages) - Allows you to enter larger Messages, which will automatically split into several smaller Messages
|
||||
- [Server Counter](https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/ServerCounter) - Adds a Server Counter to the Server List
|
||||
- [Server Details](https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/ServerDetails) - Shows Server Details in the Server List Tooltip
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Remove Blocked Messages [![Download][download-badge]][download-link] [![Support][support-badge]][support-link] [![PayPal][paypal-badge]][paypal-link] [![Patreon][patreon-badge]][patreon-link]
|
||||
# Remove Blocked Users [![Download][download-badge]][download-link] [![Support][support-badge]][support-link] [![PayPal][paypal-badge]][paypal-link] [![Patreon][patreon-badge]][patreon-link]
|
||||
|
||||
[download-badge]: https://img.shields.io/badge/Download-%233a71c1.svg?style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAgCAYAAAAIXrg4AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAd5gAAHeYBMKt3fAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAE9SURBVEiJ7ZQ7TsNAFEWv06IAShOkEDD5UNCwB8RCWEYWAqkIYiEgZQERoqLgFz4hUIaC+tCM4cmyk4mxCyRfaSRL8+49781YI3kKOASmwBtw4OvzFnDJry58fZUlGGvme70IQCaVgBLwXwBADegDp0AjaxjQAAbACVCzG+fmGRgDYYJ5ZGpGCfuh80Ya/EwgqWpqQ0lDoLVE5y1JQ+eNVLUFXfdSWr0A7UUTAG1XazUFuvEudoFJrPAd2EsDuMZeY56PyJM0aqohDljU0Lzz7KSMbMMmJB9px/fStoFH/PWMuS9fyBbw4Bnu/cclQe7nhD8BO5nCDaQJ3CWEj/8cbiAbwI0JvwU2cwk3kDpw7FY91/BShSoAmpKOJK3knP0l6SwAriXt5xwe6SoAPiWtFgSYVST1JM2KCJfU+wadgFl0/0HGbQAAAABJRU5ErkJggg==
|
||||
[download-link]: https://mwittrien.github.io/downloader/?plugin=RemoveBlockedMessages
|
||||
[download-link]: https://mwittrien.github.io/downloader/?plugin=RemoveBlockedUsers
|
||||
|
||||
[support-badge]: https://img.shields.io/badge/Support-%2343b581.svg?style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAC4UlEQVRYR8WXS4jNcRTHP195bEgWkoVsCAspNcVoLGblsaAoFCalBqU8BhuPPDZeQ5LBRmHBYsok7KYor5TyKDI2UiQLZWwojs6d351+85977+93J7q/uqt7Hp/fOed3zvmLzGNm44BWYAUwB5gafm7hc/i9AXqAXkk/c0wrJWRmU4BDwHpgQko+/N8PXAcOS/pSS6cqgJmNBfYBe4HxmY6LYj+AE8BxSb8q2agIEG7dDSwaoeOi2kNgVaVoDAMws7nAHWDaP3JeNvMRWC7pVWx3CEC4+bMM533AE+B5MDYfWADMTEA7RFMciUGAkPPeRNi9svcDnZL+xM7MbBSwCzgG+IupdjwdreWaiAEOAEdqKLrzZknlW1cUNTOPxqMExEFJR91ACSCE/n2i2vdIOpVTF2bWAZysIeuvY4anogxwAdhaQ8FzPjsOu5lNAjYFnSuSvpX1QzreJmqiS9I2hQ73NdFkrknaGDlw5x8iHW880wsQV4ENNS7lOpMdYClwNxHanZLORgBebKcLOrsldUYyO4AzCbvLHOAi0J4QbJd0OTJ+D1iSANgOnEvYveQA94HFCcHvgDv1M7GC80op6AK2JOw+cIB3GQ2kmh1/Oe6oWISjgdfArARAnwM4fb3D5jew0lu2JCs6MbOc8Lvaj5EC9EhygGHHzFqA2yFVqbZRAhhJCtok+TMbPGY2BmgDzie6YKxWSkFOERZvsk7SjehVbA4zwJeXek6pCHOeYdHoWkk3IwCHWVOP5yBbeoY5jahoO6cv5PCUGpGPzlQrLhpL9YUc5wOt2CXNLDWMKhn0ifYSWFieqjleI5mBYRQAvHhS4zi2/wJokdRvZk3A0zohho7jAJFaSGKADkmDw8jMfMtpriMCQxeSAOBreGolK/volrQ66Pm3wqc6umnllSxKRc5S6q34FvA4zPx5mbevvpRGb7pxa3kE4UXZmA+TCKJxn2ZxPhv2cVosqv/1ef4XvUY7+DQzteEAAAAASUVORK5CYII=
|
||||
[support-link]: https://discord.com/invite/Jx3TjNS
|
||||
|
@ -17,16 +17,16 @@ Removes blocked Messages/Users
|
|||
|
||||
Remove Messages:
|
||||
|
||||

|
||||

|
||||
|
||||
Remove Users:
|
||||
|
||||

|
||||

|
||||
|
||||
Remove Name in Mentions:
|
||||
|
||||

|
||||

|
||||
|
||||
Remove Voice Users:
|
||||
|
||||

|
||||

|
|
@ -1,24 +1,29 @@
|
|||
/**
|
||||
* @name RemoveBlockedMessages
|
||||
* @name RemoveBlockedUsers
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 1.2.9
|
||||
* @version 1.3.0
|
||||
* @description Removes blocked Messages/Users
|
||||
* @invite Jx3TjNS
|
||||
* @donate https://www.paypal.me/MircoWittrien
|
||||
* @patreon https://www.patreon.com/MircoWittrien
|
||||
* @website https://mwittrien.github.io/
|
||||
* @source https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/RemoveBlockedMessages/
|
||||
* @updateUrl https://mwittrien.github.io/BetterDiscordAddons/Plugins/RemoveBlockedMessages/RemoveBlockedMessages.plugin.js
|
||||
* @source https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/RemoveBlockedUsers/
|
||||
* @updateUrl https://mwittrien.github.io/BetterDiscordAddons/Plugins/RemoveBlockedUsers/RemoveBlockedUsers.plugin.js
|
||||
*/
|
||||
|
||||
module.exports = (_ => {
|
||||
const config = {
|
||||
"info": {
|
||||
"name": "RemoveBlockedMessages",
|
||||
"name": "RemoveBlockedUsers",
|
||||
"author": "DevilBro",
|
||||
"version": "1.2.9",
|
||||
"version": "1.3.0",
|
||||
"description": "Removes blocked Messages/Users"
|
||||
},
|
||||
"changeLog": {
|
||||
"improved": {
|
||||
"Plugin Name": "Changed to clarify the Usage"
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -70,7 +75,7 @@ module.exports = (_ => {
|
|||
} : (([Plugin, BDFDB]) => {
|
||||
var cachedChannelId, cachedReactions;
|
||||
|
||||
return class RemoveBlockedMessages extends Plugin {
|
||||
return class RemoveBlockedUsers extends Plugin {
|
||||
onLoad () {
|
||||
this.defaults = {
|
||||
notifcations: {
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
@ -1,7 +1,7 @@
|
|||
# Reveal All Spoilers Option [![Download][download-badge]][download-link] [![Support][support-badge]][support-link] [![PayPal][paypal-badge]][paypal-link] [![Patreon][patreon-badge]][patreon-link]
|
||||
# Reveal All Spoilers [![Download][download-badge]][download-link] [![Support][support-badge]][support-link] [![PayPal][paypal-badge]][paypal-link] [![Patreon][patreon-badge]][patreon-link]
|
||||
|
||||
[download-badge]: https://img.shields.io/badge/Download-%233a71c1.svg?style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAgCAYAAAAIXrg4AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAd5gAAHeYBMKt3fAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAE9SURBVEiJ7ZQ7TsNAFEWv06IAShOkEDD5UNCwB8RCWEYWAqkIYiEgZQERoqLgFz4hUIaC+tCM4cmyk4mxCyRfaSRL8+49781YI3kKOASmwBtw4OvzFnDJry58fZUlGGvme70IQCaVgBLwXwBADegDp0AjaxjQAAbACVCzG+fmGRgDYYJ5ZGpGCfuh80Ya/EwgqWpqQ0lDoLVE5y1JQ+eNVLUFXfdSWr0A7UUTAG1XazUFuvEudoFJrPAd2EsDuMZeY56PyJM0aqohDljU0Lzz7KSMbMMmJB9px/fStoFH/PWMuS9fyBbw4Bnu/cclQe7nhD8BO5nCDaQJ3CWEj/8cbiAbwI0JvwU2cwk3kDpw7FY91/BShSoAmpKOJK3knP0l6SwAriXt5xwe6SoAPiWtFgSYVST1JM2KCJfU+wadgFl0/0HGbQAAAABJRU5ErkJggg==
|
||||
[download-link]: https://mwittrien.github.io/downloader/?plugin=RevealAllSpoilersOption
|
||||
[download-link]: https://mwittrien.github.io/downloader/?plugin=RevealAllSpoilers
|
||||
|
||||
[support-badge]: https://img.shields.io/badge/Support-%2343b581.svg?style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAC4UlEQVRYR8WXS4jNcRTHP195bEgWkoVsCAspNcVoLGblsaAoFCalBqU8BhuPPDZeQ5LBRmHBYsok7KYor5TyKDI2UiQLZWwojs6d351+85977+93J7q/uqt7Hp/fOed3zvmLzGNm44BWYAUwB5gafm7hc/i9AXqAXkk/c0wrJWRmU4BDwHpgQko+/N8PXAcOS/pSS6cqgJmNBfYBe4HxmY6LYj+AE8BxSb8q2agIEG7dDSwaoeOi2kNgVaVoDAMws7nAHWDaP3JeNvMRWC7pVWx3CEC4+bMM533AE+B5MDYfWADMTEA7RFMciUGAkPPeRNi9svcDnZL+xM7MbBSwCzgG+IupdjwdreWaiAEOAEdqKLrzZknlW1cUNTOPxqMExEFJR91ACSCE/n2i2vdIOpVTF2bWAZysIeuvY4anogxwAdhaQ8FzPjsOu5lNAjYFnSuSvpX1QzreJmqiS9I2hQ73NdFkrknaGDlw5x8iHW880wsQV4ENNS7lOpMdYClwNxHanZLORgBebKcLOrsldUYyO4AzCbvLHOAi0J4QbJd0OTJ+D1iSANgOnEvYveQA94HFCcHvgDv1M7GC80op6AK2JOw+cIB3GQ2kmh1/Oe6oWISjgdfArARAnwM4fb3D5jew0lu2JCs6MbOc8Lvaj5EC9EhygGHHzFqA2yFVqbZRAhhJCtok+TMbPGY2BmgDzie6YKxWSkFOERZvsk7SjehVbA4zwJeXek6pCHOeYdHoWkk3IwCHWVOP5yBbeoY5jahoO6cv5PCUGpGPzlQrLhpL9YUc5wOt2CXNLDWMKhn0ifYSWFieqjleI5mBYRQAvHhS4zi2/wJokdRvZk3A0zohho7jAJFaSGKADkmDw8jMfMtpriMCQxeSAOBreGolK/volrQ66Pm3wqc6umnllSxKRc5S6q34FvA4zPx5mbevvpRGb7pxa3kE4UXZmA+TCKJxn2ZxPhv2cVosqv/1ef4XvUY7+DQzteEAAAAASUVORK5CYII=
|
||||
[support-link]: https://discord.com/invite/Jx3TjNS
|
||||
|
@ -15,4 +15,4 @@
|
|||
Allows you to reveal all Spoilers within a Message/Status by holding the Ctrl Key and clicking a Spoiler
|
||||
|
||||
|
||||

|
||||

|
|
@ -1,27 +1,28 @@
|
|||
/**
|
||||
* @name RevealAllSpoilersOption
|
||||
* @name RevealAllSpoilers
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 1.0.6
|
||||
* @version 1.0.7
|
||||
* @description Allows you to reveal all Spoilers within a Message/Status by holding the Ctrl Key and clicking a Spoiler
|
||||
* @invite Jx3TjNS
|
||||
* @donate https://www.paypal.me/MircoWittrien
|
||||
* @patreon https://www.patreon.com/MircoWittrien
|
||||
* @website https://mwittrien.github.io/
|
||||
* @source https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/RevealAllSpoilersOption/
|
||||
* @updateUrl https://mwittrien.github.io/BetterDiscordAddons/Plugins/RevealAllSpoilersOption/RevealAllSpoilersOption.plugin.js
|
||||
* @source https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/RevealAllSpoilers/
|
||||
* @updateUrl https://mwittrien.github.io/BetterDiscordAddons/Plugins/RevealAllSpoilers/RevealAllSpoilers.plugin.js
|
||||
*/
|
||||
|
||||
module.exports = (_ => {
|
||||
const config = {
|
||||
"info": {
|
||||
"name": "RevealAllSpoilersOption",
|
||||
"name": "RevealAllSpoilers",
|
||||
"author": "DevilBro",
|
||||
"version": "1.0.6",
|
||||
"version": "1.0.7",
|
||||
"description": "Allows you to reveal all Spoilers within a Message/Status by holding the Ctrl Key and clicking a Spoiler"
|
||||
},
|
||||
"changeLog": {
|
||||
"improved": {
|
||||
"Plugin Name": "Changed to clarify the Usage",
|
||||
"Behaviour": "You no longer need to right click a message and press reveal all, simply hold Ctrl and click a Spoiler",
|
||||
"About Me": "Also works on About Mes"
|
||||
}
|
||||
|
@ -74,7 +75,7 @@ module.exports = (_ => {
|
|||
return template.content.firstElementChild;
|
||||
}
|
||||
} : (([Plugin, BDFDB]) => {
|
||||
return class RevealAllSpoilersOption extends Plugin {
|
||||
return class RevealAllSpoilers extends Plugin {
|
||||
onLoad () {
|
||||
this.patchedModules = {
|
||||
after: {
|
||||
|
@ -95,7 +96,7 @@ module.exports = (_ => {
|
|||
BDFDB.PatchUtils.patch(this, e.instance, "revealSpoiler", {after: e2 => {
|
||||
if (e2.methodArguments[0].ctrlKey) {
|
||||
BDFDB.ListenerUtils.stopEvent(e2.methodArguments[0]);
|
||||
let parent = BDFDB.DOMUtils.getParent(BDFDB.dotCNC.message + BDFDB.dotCN.userpopoutaboutmebody, e2.methodArguments[0].target);
|
||||
let parent = BDFDB.DOMUtils.getParent(BDFDB.dotCN.message, e2.methodArguments[0].target) || e2.methodArguments[0].target.parentElement;
|
||||
if (parent) for (let spoiler of parent.querySelectorAll(BDFDB.dotCN.spoilerhidden)) spoiler.click();
|
||||
}
|
||||
}}, {force: true, noCache: true});
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
|
@ -1,7 +1,7 @@
|
|||
# Badges Everywhere [![Download][download-badge]][download-link] [![Support][support-badge]][support-link] [![PayPal][paypal-badge]][paypal-link] [![Patreon][patreon-badge]][patreon-link]
|
||||
# Show Badges In Chat [![Download][download-badge]][download-link] [![Support][support-badge]][support-link] [![PayPal][paypal-badge]][paypal-link] [![Patreon][patreon-badge]][patreon-link]
|
||||
|
||||
[download-badge]: https://img.shields.io/badge/Download-%233a71c1.svg?style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAgCAYAAAAIXrg4AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAd5gAAHeYBMKt3fAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAE9SURBVEiJ7ZQ7TsNAFEWv06IAShOkEDD5UNCwB8RCWEYWAqkIYiEgZQERoqLgFz4hUIaC+tCM4cmyk4mxCyRfaSRL8+49781YI3kKOASmwBtw4OvzFnDJry58fZUlGGvme70IQCaVgBLwXwBADegDp0AjaxjQAAbACVCzG+fmGRgDYYJ5ZGpGCfuh80Ya/EwgqWpqQ0lDoLVE5y1JQ+eNVLUFXfdSWr0A7UUTAG1XazUFuvEudoFJrPAd2EsDuMZeY56PyJM0aqohDljU0Lzz7KSMbMMmJB9px/fStoFH/PWMuS9fyBbw4Bnu/cclQe7nhD8BO5nCDaQJ3CWEj/8cbiAbwI0JvwU2cwk3kDpw7FY91/BShSoAmpKOJK3knP0l6SwAriXt5xwe6SoAPiWtFgSYVST1JM2KCJfU+wadgFl0/0HGbQAAAABJRU5ErkJggg==
|
||||
[download-link]: https://mwittrien.github.io/downloader/?plugin=BadgesEverywhere
|
||||
[download-link]: https://mwittrien.github.io/downloader/?plugin=ShowBadgesInChat
|
||||
|
||||
[support-badge]: https://img.shields.io/badge/Support-%2343b581.svg?style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAC4UlEQVRYR8WXS4jNcRTHP195bEgWkoVsCAspNcVoLGblsaAoFCalBqU8BhuPPDZeQ5LBRmHBYsok7KYor5TyKDI2UiQLZWwojs6d351+85977+93J7q/uqt7Hp/fOed3zvmLzGNm44BWYAUwB5gafm7hc/i9AXqAXkk/c0wrJWRmU4BDwHpgQko+/N8PXAcOS/pSS6cqgJmNBfYBe4HxmY6LYj+AE8BxSb8q2agIEG7dDSwaoeOi2kNgVaVoDAMws7nAHWDaP3JeNvMRWC7pVWx3CEC4+bMM533AE+B5MDYfWADMTEA7RFMciUGAkPPeRNi9svcDnZL+xM7MbBSwCzgG+IupdjwdreWaiAEOAEdqKLrzZknlW1cUNTOPxqMExEFJR91ACSCE/n2i2vdIOpVTF2bWAZysIeuvY4anogxwAdhaQ8FzPjsOu5lNAjYFnSuSvpX1QzreJmqiS9I2hQ73NdFkrknaGDlw5x8iHW880wsQV4ENNS7lOpMdYClwNxHanZLORgBebKcLOrsldUYyO4AzCbvLHOAi0J4QbJd0OTJ+D1iSANgOnEvYveQA94HFCcHvgDv1M7GC80op6AK2JOw+cIB3GQ2kmh1/Oe6oWISjgdfArARAnwM4fb3D5jew0lu2JCs6MbOc8Lvaj5EC9EhygGHHzFqA2yFVqbZRAhhJCtok+TMbPGY2BmgDzie6YKxWSkFOERZvsk7SjehVbA4zwJeXek6pCHOeYdHoWkk3IwCHWVOP5yBbeoY5jahoO6cv5PCUGpGPzlQrLhpL9YUc5wOt2CXNLDWMKhn0ifYSWFieqjleI5mBYRQAvHhS4zi2/wJokdRvZk3A0zohho7jAJFaSGKADkmDw8jMfMtpriMCQxeSAOBreGolK/volrQ66Pm3wqc6umnllSxKRc5S6q34FvA4zPx5mbevvpRGb7pxa3kE4UXZmA+TCKJxn2ZxPhv2cVosqv/1ef4XvUY7+DQzteEAAAAASUVORK5CYII=
|
||||
[support-link]: https://discord.com/invite/Jx3TjNS
|
||||
|
@ -12,13 +12,13 @@
|
|||
[patreon-badge]: https://img.shields.io/badge/Patreon-%23F96854.svg?style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAdhwAAHYcBj+XxZQAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAGBSURBVFiF7Za9ThtBFEbPBUpERWMwCorfJjY4aVLxBFHCKyCl4hWQUqVMBULmbfiRCNACqSJsDsXakjHGO8Y7ovFXrmbmO3NnZ74bqrzUeUR8HPP9mdQ60AZawCZQBwK4BC6ADnAUEZeTFhmnsxLjdfVAfXhl/rB66h/1QyUAalu9TzAe1Z26NROAutvf0VvVU7+/CUD9PKP5MMT2VADqhvqvAvOB7tQ1gIXXznpEP4HlxLEpWgH2AEInX0OLv/cUWKwQAKALbKZU4EsGc4AloJ0C8CmD+UDNFIBGRoBGCkAtI8B66i3IpccUgJuMANcpAKcZAc5SAE4yAnRSAA6BXgbzLnBUChARF8DvDAC/IuIqNYzqFYfRrVqDxDCKiL/AV6o5ikdgJyJuBrsrrcBQJX44W0/QVb+NLpoM0B/f6pdwWt2qL3NlWoD+nFV1X/2fYPxg0cCOfdJL+4ESkBqwDTQpQmuNoi2/onjAOsBxRFxPWmTqClSp9w6jOcAcYA7AE1OMk5ulhBZCAAAAAElFTkSuQmCC
|
||||
[patreon-link]: https://patreon.com/MircoWittrien
|
||||
|
||||
Displays Badges (Nitro, Hypesquad, etc...) in the Chat/MemberList
|
||||
Displays Badges (Nitro, Hypesquad, etc...) in the Chat/MemberList/DMList
|
||||
|
||||
|
||||
Chat:
|
||||
|
||||

|
||||

|
||||
|
||||
Member List:
|
||||
|
||||

|
||||

|
|
@ -1,28 +1,29 @@
|
|||
/**
|
||||
* @name BadgesEverywhere
|
||||
* @name ShowBadgesInChat
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 1.7.9
|
||||
* @description Displays Badges (Nitro, Hypesquad, etc...) in the Chat/MemberList
|
||||
* @version 1.8.0
|
||||
* @description Displays Badges (Nitro, Hypesquad, etc...) in the Chat/MemberList/DMList
|
||||
* @invite Jx3TjNS
|
||||
* @donate https://www.paypal.me/MircoWittrien
|
||||
* @patreon https://www.patreon.com/MircoWittrien
|
||||
* @website https://mwittrien.github.io/
|
||||
* @source https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/BadgesEverywhere/
|
||||
* @updateUrl https://mwittrien.github.io/BetterDiscordAddons/Plugins/BadgesEverywhere/BadgesEverywhere.plugin.js
|
||||
* @source https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/ShowBadgesInChat/
|
||||
* @updateUrl https://mwittrien.github.io/BetterDiscordAddons/Plugins/ShowBadgesInChat/ShowBadgesInChat.plugin.js
|
||||
*/
|
||||
|
||||
module.exports = (_ => {
|
||||
const config = {
|
||||
"info": {
|
||||
"name": "BadgesEverywhere",
|
||||
"name": "ShowBadgesInChat",
|
||||
"author": "DevilBro",
|
||||
"version": "1.7.9",
|
||||
"description": "Displays Badges (Nitro, Hypesquad, etc...) in the Chat/MemberList"
|
||||
"version": "1.8.0",
|
||||
"description": "Displays Badges (Nitro, Hypesquad, etc...) in the Chat/MemberList/DMList"
|
||||
},
|
||||
"changeLog": {
|
||||
"fixed": {
|
||||
"Click": "Badges no longer only appear after you opened a USer Popup"
|
||||
"improved": {
|
||||
"Plugin Name": "Changed to clarify the Usage",
|
||||
"DM List": "Also works in DM List now"
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -77,7 +78,7 @@ module.exports = (_ => {
|
|||
var loadedUsers = {}, queuedInstances = {}, requestQueue = {queue: [], timeout: null, id: null}, cacheTimeout;
|
||||
var specialFlag;
|
||||
|
||||
return class BadgesEverywhere extends Plugin {
|
||||
return class ShowBadgesInChat extends Plugin {
|
||||
onLoad () {
|
||||
_this = this;
|
||||
|
||||
|
@ -85,8 +86,9 @@ module.exports = (_ => {
|
|||
|
||||
this.patchedModules = {
|
||||
after: {
|
||||
MemberListItem: "render",
|
||||
MessageUsername: "default",
|
||||
MemberListItem: "render",
|
||||
PrivateChannel: "render",
|
||||
UserProfileBadgeList: "default"
|
||||
}
|
||||
};
|
||||
|
@ -94,7 +96,8 @@ module.exports = (_ => {
|
|||
this.defaults = {
|
||||
places: {
|
||||
chat: {value: true, description: "Chat"},
|
||||
memberList: {value: true, description: "Member List"}
|
||||
memberList: {value: true, description: "Member List"},
|
||||
dmsList: {value: true, description: "DM List"}
|
||||
},
|
||||
badges: {},
|
||||
indicators: {
|
||||
|
@ -109,7 +112,7 @@ module.exports = (_ => {
|
|||
}
|
||||
|
||||
this.css = `
|
||||
${BDFDB.dotCN._badgeseverywherebadges} {
|
||||
${BDFDB.dotCN._showbadgesinchatbadges} {
|
||||
display: inline-flex !important;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
@ -118,49 +121,49 @@ module.exports = (_ => {
|
|||
margin: 0 0 0 4px;
|
||||
user-select: none;
|
||||
}
|
||||
${BDFDB.dotCN._badgeseverywherebadges} > * {
|
||||
${BDFDB.dotCN._showbadgesinchatbadges} > * {
|
||||
margin: 0;
|
||||
}
|
||||
${BDFDB.dotCN._badgeseverywherebadges} > * + * {
|
||||
${BDFDB.dotCN._showbadgesinchatbadges} > * + * {
|
||||
margin-left: 4px;
|
||||
}
|
||||
${BDFDB.dotCNS._badgeseverywherebadges + BDFDB.dotCN.userbadge} {
|
||||
${BDFDB.dotCNS._showbadgesinchatbadges + BDFDB.dotCN.userbadge} {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
${BDFDB.dotCNS._badgeseverywherebadges + BDFDB.dotCN.userbadge + BDFDB.dotCN._badgeseverywhereindicator}::before {
|
||||
${BDFDB.dotCNS._showbadgesinchatbadges + BDFDB.dotCN.userbadge + BDFDB.dotCN._showbadgesinchatindicator}::before {
|
||||
display: none;
|
||||
}
|
||||
${BDFDB.dotCNS._badgeseverywherebadgessettings + BDFDB.dotCN.userbadge} {
|
||||
${BDFDB.dotCNS._showbadgesinchatbadgessettings + BDFDB.dotCN.userbadge} {
|
||||
width: 24px !important;
|
||||
height: 20px !important;
|
||||
}
|
||||
${BDFDB.dotCN.memberpremiumicon} {
|
||||
display: none;
|
||||
}
|
||||
${BDFDB.dotCNS._badgeseverywherebadges + BDFDB.dotCN.memberpremiumicon} {
|
||||
${BDFDB.dotCNS._showbadgesinchatbadges + BDFDB.dotCN.memberpremiumicon} {
|
||||
display: block;
|
||||
position: static;
|
||||
margin: 0;
|
||||
}
|
||||
${BDFDB.dotCN._badgeseverywherebadgeschat} {
|
||||
${BDFDB.dotCN._showbadgesinchatbadgeschat} {
|
||||
position: relative;
|
||||
top: 2px;
|
||||
}
|
||||
${BDFDB.dotCNS.messagerepliedmessage + BDFDB.dotCN._badgeseverywherebadgeschat} {
|
||||
${BDFDB.dotCNS.messagerepliedmessage + BDFDB.dotCN._showbadgesinchatbadgeschat} {
|
||||
top: 0;
|
||||
}
|
||||
${BDFDB.dotCNS.messagecompact + BDFDB.dotCN.messageusername} ~ ${BDFDB.dotCN._badgeseverywherebadges},
|
||||
${BDFDB.dotCNS.messagerepliedmessage + BDFDB.dotCN.messageusername} ~ ${BDFDB.dotCN._badgeseverywherebadges} {
|
||||
${BDFDB.dotCNS.messagecompact + BDFDB.dotCN.messageusername} ~ ${BDFDB.dotCN._showbadgesinchatbadges},
|
||||
${BDFDB.dotCNS.messagerepliedmessage + BDFDB.dotCN.messageusername} ~ ${BDFDB.dotCN._showbadgesinchatbadges} {
|
||||
margin-right: .25rem;
|
||||
text-indent: 0;
|
||||
}
|
||||
${BDFDB.dotCNS.messagerepliedmessage + BDFDB.dotCN.messageusername} ~ ${BDFDB.dotCN._badgeseverywherebadges} {
|
||||
${BDFDB.dotCNS.messagerepliedmessage + BDFDB.dotCN.messageusername} ~ ${BDFDB.dotCN._showbadgesinchatbadges} {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
${BDFDB.dotCN._badgeseverywherebadgessettings} {
|
||||
${BDFDB.dotCN._showbadgesinchatbadgessettings} {
|
||||
color: var(--header-primary);
|
||||
}
|
||||
`;
|
||||
|
@ -279,16 +282,22 @@ module.exports = (_ => {
|
|||
BDFDB.MessageUtils.rerenderAll();
|
||||
}
|
||||
|
||||
processMemberListItem (e) {
|
||||
if (!e.instance.props.user || !this.settings.places.memberList) return;
|
||||
this.injectBadges(BDFDB.ObjectUtils.get(e.returnvalue, "props.decorators.props.children"), e.instance.props.user, e.instance.props.channel.guild_id, "list");
|
||||
}
|
||||
|
||||
processMessageUsername (e) {
|
||||
if (!e.instance.props.message || !this.settings.places.chat) return;
|
||||
const author = e.instance.props.userOverride || e.instance.props.message.author;
|
||||
this.injectBadges(e.returnvalue.props.children, author, (BDFDB.LibraryModules.ChannelStore.getChannel(e.instance.props.message.channel_id) || {}).guild_id, "chat");
|
||||
}
|
||||
|
||||
processMemberListItem (e) {
|
||||
if (!e.instance.props.user || !this.settings.places.memberList) return;
|
||||
this.injectBadges(BDFDB.ObjectUtils.get(e.returnvalue, "props.decorators.props.children"), e.instance.props.user, e.instance.props.channel.guild_id, "members");
|
||||
}
|
||||
|
||||
processPrivateChannel (e) {
|
||||
if (!e.instance.props.user || !this.settings.places.dmsList) return;
|
||||
e.returnvalue.props.decorators = [e.returnvalue.props.decorators].flat(10);
|
||||
this.injectBadges(e.returnvalue.props.decorators, e.instance.props.user, null, "dms");
|
||||
}
|
||||
|
||||
processUserProfileBadgeList (e) {
|
||||
if (e.instance.props.custom) {
|
||||
|
@ -311,7 +320,7 @@ module.exports = (_ => {
|
|||
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Clickable, {
|
||||
className: BDFDB.disCN.userbadgeouter,
|
||||
children: BDFDB.ReactUtils.createElement("div", {
|
||||
className: BDFDB.disCNS.userbadge + BDFDB.disCN._badgeseverywhereindicator,
|
||||
className: BDFDB.disCNS.userbadge + BDFDB.disCN._showbadgesinchatindicator,
|
||||
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SvgIcon, {
|
||||
className: BDFDB.disCN.memberpremiumicon,
|
||||
name: BDFDB.LibraryComponents.SvgIcon.Names.BOOST
|
||||
|
@ -367,7 +376,7 @@ module.exports = (_ => {
|
|||
}
|
||||
let member = guildId && BDFDB.LibraryModules.MemberStore.getMember(guildId, user.id);
|
||||
return BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.UserBadges.default, {
|
||||
className: BDFDB.DOMUtils.formatClassName(BDFDB.disCN._badgeseverywherebadges, BDFDB.disCN[`_badgeseverywherebadges${type}`]),
|
||||
className: BDFDB.DOMUtils.formatClassName(BDFDB.disCN._showbadgesinchatbadges, BDFDB.disCN[`_showbadgesinchatbadges${type}`]),
|
||||
user: user,
|
||||
size: BDFDB.LibraryComponents.UserBadges.BadgeSizes.SIZE_18,
|
||||
custom: true,
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 8.6 KiB |