Fix ChannelTabs Patch & Drag

This commit is contained in:
thororen1234 2025-07-09 22:21:40 -04:00
parent 608cddd508
commit c594c7bc6e
No known key found for this signature in database
4 changed files with 13 additions and 6 deletions

View file

@ -112,8 +112,6 @@ export default definePlugin({
authors: [EquicordDevs.ThePirateStoner],
dependencies: ["MessagePopoverAPI"],
settings,
contextMenus: {
},
start() {
addMessagePopoverButton("DecodeBase64", msg => {

View file

@ -48,8 +48,8 @@ export default definePlugin({
{
find: ".COLLECTIBLES_SHOP_FULLSCREEN))",
replacement: {
match: /(?<=\?void 0:(\i)\.channelId.{0,500}return)((.{0,15})"div",{.*?\])(?=\}\)\}\)\}\)\})/,
replace: "$3$self.render,{currentChannel:$1,children:$2})"
match: /(\?void 0:(\i)\.channelId.{0,300})"div",{/,
replace: "$1$self.render,{currentChannel:$2,"
}
},
// intercept channel navigation to switch/create tabs

View file

@ -40,6 +40,7 @@
display: flex;
flex-direction: row;
align-items: flex-start;
-webkit-app-region: drag;
}
.platform-osx .vc-channeltabs-tab-container {
@ -59,6 +60,7 @@
padding: 0.35rem;
display: flex;
flex-direction: column;
-webkit-app-region: no-drag;
}
.vc-channeltabs-separator {
@ -263,4 +265,11 @@
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
.vc-channeltabs-tab-container .vc-channeltabs-new-button,
.vc-channeltabs-tab-container .vc-channeltabs-hoverable,
.vc-channeltabs-tab-container .vc-channeltabs-button,
.vc-channeltabs-tab-container svg {
-webkit-app-region: no-drag;
}

View file

@ -282,7 +282,7 @@ export default definePlugin({
replace: (m, channel) => `${m}if($self.isHiddenChannel(${channel}))break;`
},
{
match: /(?<="renderHeaderBar",\(\)=>{.+?hideSearch:(\i)\.isDirectory\(\))/,
match: /(?<="renderHeaderBar",\i=>{.+?hideSearch:(\i)\.isDirectory\(\))/,
replace: (_, channel) => `||$self.isHiddenChannel(${channel})`
},
{