Update ShowHiddenChannels.plugin.js
This commit is contained in:
parent
be7a93668d
commit
57563eb732
|
@ -6,6 +6,7 @@
|
||||||
* @patreon https://www.patreon.com/MircoWittrien
|
* @patreon https://www.patreon.com/MircoWittrien
|
||||||
* @website https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/ShowHiddenChannels
|
* @website https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/ShowHiddenChannels
|
||||||
* @source https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/ShowHiddenChannels/ShowHiddenChannels.plugin.js
|
* @source https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/ShowHiddenChannels/ShowHiddenChannels.plugin.js
|
||||||
|
* @updateUrl https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/ShowHiddenChannels/ShowHiddenChannels.plugin.js
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module.exports = (_ => {
|
module.exports = (_ => {
|
||||||
|
@ -22,6 +23,7 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
getName () {return config.info.name;}
|
getName () {return config.info.name;}
|
||||||
getAuthor () {return config.info.author;}
|
getAuthor () {return config.info.author;}
|
||||||
|
@ -410,6 +412,8 @@ module.exports = (_ => {
|
||||||
channelChildren.props.children = [BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {
|
channelChildren.props.children = [BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {
|
||||||
text: BDFDB.LanguageUtils.LanguageStrings.CHANNEL_LOCKED_SHORT,
|
text: BDFDB.LanguageUtils.LanguageStrings.CHANNEL_LOCKED_SHORT,
|
||||||
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Clickable, {
|
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Clickable, {
|
||||||
|
className: BDFDB.disCN.channeliconitem,
|
||||||
|
style: {display: "block"},
|
||||||
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SvgIcon, {
|
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SvgIcon, {
|
||||||
className: BDFDB.disCN.channelactionicon,
|
className: BDFDB.disCN.channelactionicon,
|
||||||
name: BDFDB.LibraryComponents.SvgIcon.Names.LOCK_CLOSED
|
name: BDFDB.LibraryComponents.SvgIcon.Names.LOCK_CLOSED
|
||||||
|
@ -422,9 +426,10 @@ module.exports = (_ => {
|
||||||
wrapper.props.onMouseDown = _ => {};
|
wrapper.props.onMouseDown = _ => {};
|
||||||
wrapper.props.onMouseUp = _ => {};
|
wrapper.props.onMouseUp = _ => {};
|
||||||
}
|
}
|
||||||
let maincontent = BDFDB.ReactUtils.findChild(e.returnvalue, {props:[["className", BDFDB.disCN.channelmaincontent]]});
|
let mainContent = BDFDB.ReactUtils.findChild(e.returnvalue, {props:[["className", BDFDB.disCN.channelmaincontent]]});
|
||||||
if (maincontent) {
|
if (mainContent) {
|
||||||
maincontent.props.onClick = _ => {};
|
mainContent.props.onClick = _ => {};
|
||||||
|
mainContent.props.href = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue