Merge branch 'master' of https://github.com/mwittrien/BetterDiscordAddons
This commit is contained in:
commit
f494582e86
|
@ -1,8 +1,7 @@
|
|||
/**
|
||||
* @name BDFDB
|
||||
/** @name BDFDB
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 1.8.8
|
||||
* @version 1.8.9
|
||||
* @description Required Library for DevilBro's Plugins
|
||||
* @invite Jx3TjNS
|
||||
* @donate https://www.paypal.me/MircoWittrien
|
||||
|
@ -19,7 +18,7 @@ module.exports = (_ => {
|
|||
"info": {
|
||||
"name": "BDFDB",
|
||||
"author": "DevilBro",
|
||||
"version": "1.8.8",
|
||||
"version": "1.8.9",
|
||||
"description": "Required Library for DevilBro's Plugins"
|
||||
},
|
||||
"rawUrl": `https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js`,
|
||||
|
@ -6213,7 +6212,7 @@ module.exports = (_ => {
|
|||
onMouseUp: this.handleMouseUp.bind(this),
|
||||
onClick: this.handleClick.bind(this),
|
||||
onContextMenu: this.handleContextMenu.bind(this),
|
||||
icon: this.props.guild.getIconURL(this.state.hovered && this.props.animatable),
|
||||
icon: this.props.guild.getIconURL(this.props.iconSize || 256, this.state.hovered && this.props.animatable),
|
||||
selected: this.props.selected || this.state.hovered
|
||||
})
|
||||
})
|
||||
|
|
|
@ -403,11 +403,11 @@ module.exports = (_ => {
|
|||
newGuildObject.acronym = data.shortName && data.shortName.replace(/\s/g, "") || BDFDB.LibraryModules.StringUtils.getAcronym(!data.ignoreCustomName && data.name || nativeObject.name);
|
||||
if (data.removeIcon) {
|
||||
newGuildObject.icon = null;
|
||||
newGuildObject.getIconURL = _ => {return null;};
|
||||
newGuildObject.getIconURL = _ => null;
|
||||
}
|
||||
else if (data.url) {
|
||||
newGuildObject.icon = data.url;
|
||||
newGuildObject.getIconURL = _ => {return data.url;};
|
||||
newGuildObject.getIconURL = _ => data.url;
|
||||
}
|
||||
if (data.removeBanner) newGuildObject.banner = null;
|
||||
else if (data.banner) newGuildObject.banner = data.banner;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @name ImageUtilities
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 4.4.7
|
||||
* @version 4.4.8
|
||||
* @description Adds several Utilities for Images/Videos (Gallery, Download, Reverse Search, Zoom, Copy, etc.)
|
||||
* @invite Jx3TjNS
|
||||
* @donate https://www.paypal.me/MircoWittrien
|
||||
|
@ -17,13 +17,8 @@ module.exports = (_ => {
|
|||
"info": {
|
||||
"name": "ImageUtilities",
|
||||
"author": "DevilBro",
|
||||
"version": "4.4.7",
|
||||
"version": "4.4.8",
|
||||
"description": "Adds several Utilities for Images/Videos (Gallery, Download, Reverse Search, Zoom, Copy, etc.)"
|
||||
},
|
||||
"changeLog": {
|
||||
"fixed": {
|
||||
"Invalid Images (Instagram)": "Fixed Issue where some Images could not be downloaded"
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -512,12 +507,12 @@ module.exports = (_ => {
|
|||
let banner = BDFDB.GuildUtils.getBanner(e.instance.props.guild.id);
|
||||
if (banner) this.injectItem(e, banner.replace(/\.webp|\.gif/, ".png"));
|
||||
}
|
||||
else if (e.type != "GuildChannelListContextMenu") this.injectItem(e, (e.instance.props.guild.getIconURL() || "").replace(/\.webp|\.gif/, ".png"), e.instance.props.guild.icon && BDFDB.LibraryModules.IconUtils.isAnimatedIconHash(e.instance.props.guild.icon) && e.instance.props.guild.getIconURL(true));
|
||||
else if (e.type != "GuildChannelListContextMenu") this.injectItem(e, (e.instance.props.guild.getIconURL(4096) || "").replace(/\.webp|\.gif/, ".png"), e.instance.props.guild.icon && BDFDB.LibraryModules.IconUtils.isAnimatedIconHash(e.instance.props.guild.icon) && e.instance.props.guild.getIconURL(4096, true));
|
||||
}
|
||||
}
|
||||
|
||||
onUserContextMenu (e) {
|
||||
if (e.instance.props.user && this.settings.places.userAvatars) this.injectItem(e, (e.instance.props.user.getAvatarURL() || "").replace(/\.webp|\.gif/, ".png"), BDFDB.LibraryModules.IconUtils.isAnimatedIconHash(e.instance.props.user.avatar) && e.instance.props.user.getAvatarURL(null, true));
|
||||
if (e.instance.props.user && this.settings.places.userAvatars) this.injectItem(e, (e.instance.props.user.getAvatarURL(4096) || "").replace(/\.webp|\.gif/, ".png"), BDFDB.LibraryModules.IconUtils.isAnimatedIconHash(e.instance.props.user.avatar) && e.instance.props.user.getAvatarURL(null, 4096, true));
|
||||
}
|
||||
|
||||
onGroupDMContextMenu (e) {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @name ServerDetails
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 1.0.8
|
||||
* @version 1.0.9
|
||||
* @description Shows Server Details in the Server List Tooltip
|
||||
* @invite Jx3TjNS
|
||||
* @donate https://www.paypal.me/MircoWittrien
|
||||
|
@ -17,7 +17,7 @@ module.exports = (_ => {
|
|||
"info": {
|
||||
"name": "ServerDetails",
|
||||
"author": "DevilBro",
|
||||
"version": "1.0.8",
|
||||
"version": "1.0.9",
|
||||
"description": "Shows Server Details in the Server List Tooltip"
|
||||
}
|
||||
};
|
||||
|
@ -96,14 +96,14 @@ module.exports = (_ => {
|
|||
this.state.fetchedOwner = true;
|
||||
BDFDB.LibraryModules.UserProfileUtils.getUser(this.props.guild.ownerId).then(_ => BDFDB.ReactUtils.forceUpdate(this));
|
||||
}
|
||||
let src = this.props.guild.getIconURL(this.props.guild.icon && BDFDB.LibraryModules.IconUtils.isAnimatedIconHash(this.props.guild.icon));
|
||||
let src = this.props.guild.getIconURL(4096, this.props.guild.icon && BDFDB.LibraryModules.IconUtils.isAnimatedIconHash(this.props.guild.icon));
|
||||
return BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Flex, {
|
||||
direction: BDFDB.LibraryComponents.Flex.Direction.VERTICAL,
|
||||
align: BDFDB.LibraryComponents.Flex.Align.CENTER,
|
||||
children: [
|
||||
_this.settings.items.icon && (src ? BDFDB.ReactUtils.createElement("img", {
|
||||
className: BDFDB.disCN._serverdetailsicon,
|
||||
src: src.replace(/\?size\=\d+$/, "?size=4096").replace(/[\?\&](height|width)=\d+/g, "")
|
||||
src: src
|
||||
}) : BDFDB.ReactUtils.createElement("div", {
|
||||
className: BDFDB.disCN._serverdetailsicon,
|
||||
children: this.props.guild.acronym
|
||||
|
|
Loading…
Reference in New Issue