From 5672d392ce41865239752489af2d09a0f2d5be54 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Thu, 6 Feb 2020 23:04:41 +0100 Subject: [PATCH] stuff --- Plugins/ImageGallery/ImageGallery.plugin.js | 6 +++--- Plugins/PluginRepo/res/PluginList.txt | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Plugins/ImageGallery/ImageGallery.plugin.js b/Plugins/ImageGallery/ImageGallery.plugin.js index a2a67c103b..612cb704cf 100644 --- a/Plugins/ImageGallery/ImageGallery.plugin.js +++ b/Plugins/ImageGallery/ImageGallery.plugin.js @@ -6,7 +6,7 @@ var ImageGallery = (_ => { return class ImageGallery { getName () {return "ImageGallery";} - getVersion () {return "1.6.3";} + getVersion () {return "1.6.4";} getAuthor () {return "DevilBro";} @@ -14,7 +14,7 @@ var ImageGallery = (_ => { constructor () { this.changelog = { - "fixed":[["Message Update","Fixed the plugin for the new Message Update"]], + "fixed":[["First Message","No longer includes iamges of a different user when the opened image is in the first message"],["Message Update","Fixed the plugin for the new Message Update"]], "improved":[["New Library Structure & React","Restructured my Library and switched to React rendering instead of DOM manipulation"]] }; @@ -134,7 +134,7 @@ var ImageGallery = (_ => { if (src) for (let message of document.querySelectorAll(BDFDB.dotCN.message)) for (let img of message.querySelectorAll(BDFDB.dotCNS.imagewrapper + "img")) if (img.src && this.getSrcOfImage(img) == this.getSrcOfImage(src)) { let previousSiblings = [], nextSiblings = []; let previousSibling = message.previousSibling, nextSibling = message.nextSibling; - while (previousSibling) { + if (!BDFDB.DOMUtils.containsClass(message, BDFDB.disCN.messagegroupstart)) while (previousSibling) { previousSiblings.push(previousSibling); if (BDFDB.DOMUtils.containsClass(previousSibling, BDFDB.disCN.messagegroupstart)) previousSibling = null; else previousSibling = previousSibling.previousSibling; diff --git a/Plugins/PluginRepo/res/PluginList.txt b/Plugins/PluginRepo/res/PluginList.txt index f5c13ffe8a..85ba949b1a 100644 --- a/Plugins/PluginRepo/res/PluginList.txt +++ b/Plugins/PluginRepo/res/PluginList.txt @@ -91,6 +91,7 @@ https://raw.githubusercontent.com/Metalloriff/BetterDiscordPlugins/master/UserBi https://raw.githubusercontent.com/Metalloriff/BetterDiscordPlugins/master/VCMuteSounds.plugin.js https://raw.githubusercontent.com/Metalloriff/BetterDiscordPlugins/master/ViewGuildRelationships.plugin.js https://raw.githubusercontent.com/Metalloriff/BetterDiscordPlugins/master/VoiceChatNotifications.plugin.js +https://raw.githubusercontent.com/MKSx/Send-Audio-Plugin-BetterDiscord/master/SendAudio.plugin.js https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/BadgesEverywhere/BadgesEverywhere.plugin.js https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/BetterFriendCount/BetterFriendCount.plugin.js https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/BetterNsfwTag/BetterNsfwTag.plugin.js