fix user-modal and user-popup in discord theme. add .zshrc.example instead
This commit is contained in:
Binary file not shown.
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": "1.12.8",
|
"version": "1.13.0",
|
||||||
"addonlistControls": {
|
"addonlistControls": {
|
||||||
"plugin": {
|
"plugin": {
|
||||||
"view": "grid"
|
"view": "grid"
|
||||||
@@ -10,11 +10,11 @@
|
|||||||
},
|
},
|
||||||
"drawerStates": {
|
"drawerStates": {
|
||||||
"settings": {
|
"settings": {
|
||||||
"customcss": true,
|
"customcss": false,
|
||||||
"window": true,
|
"window": true,
|
||||||
"addons": true,
|
"addons": false,
|
||||||
"store": true,
|
"store": false,
|
||||||
"editor": false,
|
"editor": true,
|
||||||
"developer": true
|
"developer": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,9 @@
|
|||||||
"showToasts": true,
|
"showToasts": true,
|
||||||
"mediaKeys": false,
|
"mediaKeys": false,
|
||||||
"bdContextMenu": true,
|
"bdContextMenu": true,
|
||||||
"themeAttributes": true
|
"themeAttributes": true,
|
||||||
|
"notificationPosition": "top-right",
|
||||||
|
"notificationEnabled": true
|
||||||
},
|
},
|
||||||
"addons": {
|
"addons": {
|
||||||
"addonErrors": false,
|
"addonErrors": false,
|
||||||
@@ -23,10 +25,13 @@
|
|||||||
"openAction": "settings"
|
"openAction": "settings"
|
||||||
},
|
},
|
||||||
"editor": {
|
"editor": {
|
||||||
|
"theme": "system",
|
||||||
"lineNumbers": true,
|
"lineNumbers": true,
|
||||||
"minimap": true,
|
"minimap": true,
|
||||||
"hover": true,
|
"hover": true,
|
||||||
"quickSuggestions": true,
|
"quickSuggestions": true,
|
||||||
|
"insertSpaces": false,
|
||||||
|
"tabSize": 4,
|
||||||
"fontSize": 14,
|
"fontSize": 14,
|
||||||
"renderWhitespace": "selection"
|
"renderWhitespace": "selection"
|
||||||
},
|
},
|
||||||
@@ -43,6 +48,7 @@
|
|||||||
"reactDevTools": false,
|
"reactDevTools": false,
|
||||||
"inspectElement": false,
|
"inspectElement": false,
|
||||||
"devToolsWarning": false,
|
"devToolsWarning": false,
|
||||||
"recovery": true
|
"recovery": true,
|
||||||
|
"canary": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"all": {
|
"all": {
|
||||||
"changeLogs": {
|
"changeLogs": {
|
||||||
"BDFDB": "4.3.6",
|
"BDFDB": "4.3.7",
|
||||||
"BetterFriendList": "1.6.3",
|
"BetterFriendList": "1.6.3",
|
||||||
"EditUsers": "5.0.7",
|
"EditUsers": "5.0.7",
|
||||||
"ImageUtilities": "5.6.3",
|
"ImageUtilities": "5.6.4",
|
||||||
"StaffTag": "1.6.9"
|
"StaffTag": "1.6.9"
|
||||||
},
|
},
|
||||||
"choices": {
|
"choices": {
|
||||||
@@ -18,8 +18,8 @@
|
|||||||
"useChromium": false
|
"useChromium": false
|
||||||
},
|
},
|
||||||
"hashes": {
|
"hashes": {
|
||||||
"0BDFDB.data.json": "58a58732f32aa581fda80294aa968d3a06a1d78d",
|
"0BDFDB.data.json": "e457aff7138c8ec583370e2b164833640e27f91b",
|
||||||
"0BDFDB.raw.css": "92b08d02d2935f9afc99b54b04ab3e11ea6aa012"
|
"0BDFDB.raw.css": "709588842bae720d3d97c81e785af1adcbfb5a37"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -282,7 +282,7 @@
|
|||||||
"KeybindRecorder": {"strings": [".RECORDING", ".DEFAULT", "toggleRecordMode"]},
|
"KeybindRecorder": {"strings": [".RECORDING", ".DEFAULT", "toggleRecordMode"]},
|
||||||
"PopoutContainer": {"strings": ["Unsupported animation config"]},
|
"PopoutContainer": {"strings": ["Unsupported animation config"]},
|
||||||
"RadioGroup": {"strings": ["itemInfoClassName", "hasSelection", ".radioItemIconClassName"], "funcStrings": ["\"description\""]},
|
"RadioGroup": {"strings": ["itemInfoClassName", "hasSelection", ".radioItemIconClassName"], "funcStrings": ["\"description\""]},
|
||||||
"SearchBar": {"strings": ["this.inputRef", ".containerRef", ".handleOnChange"]},
|
"SearchBar": {"strings": ["onClear", "query", "inputRef"]},
|
||||||
"SearchableSelect": {"strings": ["\"SingleSelect\""]},
|
"SearchableSelect": {"strings": ["\"SingleSelect\""]},
|
||||||
"Slider": {"strings": [".stickToMarkers", "sortedMarkers"]},
|
"Slider": {"strings": [".stickToMarkers", "sortedMarkers"]},
|
||||||
"TabBar": {"props": ["Item", "Header", "Panel"]},
|
"TabBar": {"props": ["Item", "Header", "Panel"]},
|
||||||
@@ -355,7 +355,7 @@
|
|||||||
"Paginator": {"strings": ["totalPageCount", "selectedPage", "endButtonInner"]},
|
"Paginator": {"strings": ["totalPageCount", "selectedPage", "endButtonInner"]},
|
||||||
"PanelButton": {"strings": ["Masks.PANEL_BUTTON"], "funcStrings": ["{}"]},
|
"PanelButton": {"strings": ["Masks.PANEL_BUTTON"], "funcStrings": ["{}"]},
|
||||||
"PopoutFocusLock": {"strings": ["impressionName", "useImperativeHandle"], "funcStrings": ["impressionName"]},
|
"PopoutFocusLock": {"strings": ["impressionName", "useImperativeHandle"], "funcStrings": ["impressionName"]},
|
||||||
"PrivateChannelItems": {"strings": ["getRecipientId", "isStatusIndicatorEnabled", "avatarWithText"], "exported": false, "value": "exports", "map": {
|
"PrivateChannelItems": {"strings": ["getRecipientId", "avatarWithText"], "exported": false, "value": "exports", "map": {
|
||||||
"DirectMessage": ["getUser", "getRecipientId"],
|
"DirectMessage": ["getUser", "getRecipientId"],
|
||||||
"LinkButton": [".apply(this"]
|
"LinkButton": [".apply(this"]
|
||||||
}},
|
}},
|
||||||
@@ -465,7 +465,7 @@
|
|||||||
"GuildIcon": {"strings": [",animate:", ",size:", "{active:!0"], "noSearch": true},
|
"GuildIcon": {"strings": [",animate:", ",size:", "{active:!0"], "noSearch": true},
|
||||||
"GuildIconWrapper": {"strings": ["badgeStrokeColor:", "textScale:"]},
|
"GuildIconWrapper": {"strings": ["badgeStrokeColor:", "textScale:"]},
|
||||||
"GuildInvitationRow": {"strings": [".getSelectedInviteMetadata", ".getSuggestedProps", "inviteKey:"], "noSearch": true},
|
"GuildInvitationRow": {"strings": [".getSelectedInviteMetadata", ".getSuggestedProps", "inviteKey:"], "noSearch": true},
|
||||||
"GuildItem": {"strings": ["listItemTooltip", "includeActivity", "tooltipClassName"]},
|
"GuildItem": {"strings": ["listItemTooltip", "guild:", "tooltipClassName"]},
|
||||||
"GuildItemWrapper": {"strings": ["guildNode:", "lowerBadge:", "isUnavailable"]},
|
"GuildItemWrapper": {"strings": ["guildNode:", "lowerBadge:", "isUnavailable"]},
|
||||||
"GuildItemIcon": {"strings": ["\"always\"", ".acronym", "width:48,height:48"], "noSearch": true},
|
"GuildItemIcon": {"strings": ["\"always\"", ".acronym", "width:48,height:48"], "noSearch": true},
|
||||||
"GuildItemWrapper": {"strings": [".pauseBackground", ".isUnavailable", "guildJoinRequestStatus"]},
|
"GuildItemWrapper": {"strings": [".pauseBackground", ".isUnavailable", "guildJoinRequestStatus"]},
|
||||||
@@ -473,7 +473,6 @@
|
|||||||
"GuildsBarHeader": {"strings": ["GUILD_MEMBER_VERIFICATION_FOR_HUB", "isCurrentUserGuest", "hideDms"], "noSearch": true},
|
"GuildsBarHeader": {"strings": ["GUILD_MEMBER_VERIFICATION_FOR_HUB", "isCurrentUserGuest", "hideDms"], "noSearch": true},
|
||||||
"GuildsBarTree": {"strings": ["guildDiscoveryButton", "disableAppDownload", "getGuildsTree"], "noSearch": true},
|
"GuildsBarTree": {"strings": ["guildDiscoveryButton", "disableAppDownload", "getGuildsTree"], "noSearch": true},
|
||||||
"GuildSidebar": {"strings": ["\"guildsnav\"", "unreadMentionsIndicatorBottom"]},
|
"GuildSidebar": {"strings": ["\"guildsnav\"", "unreadMentionsIndicatorBottom"]},
|
||||||
"GuildTooltip": {"strings": ["tooltipClassName", "includeActivity", "listItemTooltip"]},
|
|
||||||
"HeaderBar": {"strings": [".hamburger", "scrollable", "themed"]},
|
"HeaderBar": {"strings": [".hamburger", "scrollable", "themed"]},
|
||||||
"HeaderBarChannelName": {"strings": ["onDoubleClick", ".setName", "maxLen:"]},
|
"HeaderBarChannelName": {"strings": ["onDoubleClick", ".setName", "maxLen:"]},
|
||||||
"HeaderBarContainer": {"strings": ["isAuthenticated", ".HEADER_BAR"]},
|
"HeaderBarContainer": {"strings": ["isAuthenticated", ".HEADER_BAR"]},
|
||||||
@@ -1382,6 +1381,7 @@
|
|||||||
"Badge": {"props": ["numberBadge", "textBadge", "iconBadge"]},
|
"Badge": {"props": ["numberBadge", "textBadge", "iconBadge"]},
|
||||||
"BotTag": {"props": ["botTagRegular", "botTagInvert"]},
|
"BotTag": {"props": ["botTagRegular", "botTagInvert"]},
|
||||||
"Button": {"props": ["colorBrand", "lookBlank"]},
|
"Button": {"props": ["colorBrand", "lookBlank"]},
|
||||||
|
"ButtonRevamp": {"props": ["expressive", "buttonChildren"]},
|
||||||
"CallCurrent": {"props": ["wrapper", "fullScreen"]},
|
"CallCurrent": {"props": ["wrapper", "fullScreen"]},
|
||||||
"CallIncoming": {"props": ["wrapper", "mainChannelInfo"]},
|
"CallIncoming": {"props": ["wrapper", "mainChannelInfo"]},
|
||||||
"CallScreenshare": {"props": ["videoControls", "topControls", "gradientTop"]},
|
"CallScreenshare": {"props": ["videoControls", "topControls", "gradientTop"]},
|
||||||
@@ -1509,7 +1509,7 @@
|
|||||||
"MessageReactionsModal": {"props": ["reactors", "reactionSelected"]},
|
"MessageReactionsModal": {"props": ["reactors", "reactionSelected"]},
|
||||||
"MessageReply": {"props": ["container", "text", "closeButton"]},
|
"MessageReply": {"props": ["container", "text", "closeButton"]},
|
||||||
"Messages": {"props": ["messages", "divider", "jumpButton"]},
|
"Messages": {"props": ["messages", "divider", "jumpButton"]},
|
||||||
"MessagesPopout": {"props": ["messagesPopoutWrap", "jumpButton"]},
|
"MessagesPopout": {"props": ["messagesPopoutWrap", "actionButtons"]},
|
||||||
"MessagesPopoutButtons": {"props": ["secondary", "size32", "button"]},
|
"MessagesPopoutButtons": {"props": ["secondary", "size32", "button"]},
|
||||||
"MessagesPopoutExtras": {"props": ["control", "statusMessageContainer"]},
|
"MessagesPopoutExtras": {"props": ["control", "statusMessageContainer"]},
|
||||||
"MessagesPopoutHeader": {"props": ["threadIcon", "title", "divider"]},
|
"MessagesPopoutHeader": {"props": ["threadIcon", "title", "divider"]},
|
||||||
@@ -1550,7 +1550,7 @@
|
|||||||
"Peoples": {"props": ["peopleColumn", "tabBar"]},
|
"Peoples": {"props": ["peopleColumn", "tabBar"]},
|
||||||
"PeoplesNowPlayingMember": {"props": ["memberItem", "unknown"]},
|
"PeoplesNowPlayingMember": {"props": ["memberItem", "unknown"]},
|
||||||
"PictureInPicture": {"props": ["pictureInPicture", "pictureInPictureWindow"]},
|
"PictureInPicture": {"props": ["pictureInPicture", "pictureInPictureWindow"]},
|
||||||
"PillWrapper": {"props": ["item", "wrapper", "dimmed"]},
|
"PillWrapper": {"props": ["item", "wrapper"]},
|
||||||
"PollModal": {"props": ["voters", "emoji", "close"]},
|
"PollModal": {"props": ["voters", "emoji", "close"]},
|
||||||
"PopoutActivity": {"props": ["ellipsis", "activityActivityFeed"]},
|
"PopoutActivity": {"props": ["ellipsis", "activityActivityFeed"]},
|
||||||
"PrivateChannel": {"props": ["channel", "closeButton"]},
|
"PrivateChannel": {"props": ["channel", "closeButton"]},
|
||||||
@@ -1915,6 +1915,16 @@
|
|||||||
"buttonlookfilled": ["Button", "lookFilled"],
|
"buttonlookfilled": ["Button", "lookFilled"],
|
||||||
"buttonlooklink": ["Button", "lookLink"],
|
"buttonlooklink": ["Button", "lookLink"],
|
||||||
"buttonlookoutlined": ["Button", "lookOutlined"],
|
"buttonlookoutlined": ["Button", "lookOutlined"],
|
||||||
|
"buttonrevamp": ["ButtonRevamp", "button"],
|
||||||
|
"buttonrevampchildren": ["ButtonRevamp", "buttonChildren"],
|
||||||
|
"buttonrevampchildrenwrapper": ["ButtonRevamp", "buttonChildrenWrapper"],
|
||||||
|
"buttonrevamphastext": ["ButtonRevamp", "hasText"],
|
||||||
|
"buttonrevampicon": ["ButtonRevamp", "icon"],
|
||||||
|
"buttonrevampoverlayprimary": ["ButtonRevamp", "overlay-primary"],
|
||||||
|
"buttonrevampoverlaysecondary": ["ButtonRevamp", "overlay-secondary"],
|
||||||
|
"buttonrevampmd": ["ButtonRevamp", "md"],
|
||||||
|
"buttonrevampsm": ["ButtonRevamp", "sm"],
|
||||||
|
"buttonrevampxs": ["ButtonRevamp", "xs"],
|
||||||
"buttonsizeicon": ["Button", "sizeIcon"],
|
"buttonsizeicon": ["Button", "sizeIcon"],
|
||||||
"buttonsizelarge": ["Button", "sizeLarge"],
|
"buttonsizelarge": ["Button", "sizeLarge"],
|
||||||
"buttonsizemax": ["Button", "sizeMax"],
|
"buttonsizemax": ["Button", "sizeMax"],
|
||||||
@@ -2658,7 +2668,6 @@
|
|||||||
"messagespopoutbuttontertiary": ["MessagesPopoutButtons", "tertiary"],
|
"messagespopoutbuttontertiary": ["MessagesPopoutButtons", "tertiary"],
|
||||||
"messagespopoutchannelname": ["MessagesPopoutInfo", "channelName"],
|
"messagespopoutchannelname": ["MessagesPopoutInfo", "channelName"],
|
||||||
"messagespopoutchannelseparator": ["BDFDB", "messagesPopoutChannelSeparator"],
|
"messagespopoutchannelseparator": ["BDFDB", "messagesPopoutChannelSeparator"],
|
||||||
"messagespopoutclosebutton": ["MessagesPopout", "closeIcon"],
|
|
||||||
"messagespopoutcontrols": ["MessagesPopoutTabBar", "controls"],
|
"messagespopoutcontrols": ["MessagesPopoutTabBar", "controls"],
|
||||||
"messagespopoutemptyplaceholder": ["MessagesPopout", "emptyPlaceholder"],
|
"messagespopoutemptyplaceholder": ["MessagesPopout", "emptyPlaceholder"],
|
||||||
"messagespopoutfooter": ["MessagesPopout", "footer"],
|
"messagespopoutfooter": ["MessagesPopout", "footer"],
|
||||||
@@ -2669,8 +2678,6 @@
|
|||||||
"messagespopoutheader": ["MessagesPopout", "header"],
|
"messagespopoutheader": ["MessagesPopout", "header"],
|
||||||
"messagespopoutheaderdivider": ["MessagesPopoutHeader", "divider"],
|
"messagespopoutheaderdivider": ["MessagesPopoutHeader", "divider"],
|
||||||
"messagespopoutimage": ["MessagesPopout", "image"],
|
"messagespopoutimage": ["MessagesPopout", "image"],
|
||||||
"messagespopoutjumpbutton": ["MessagesPopout", "jumpButton"],
|
|
||||||
"messagespopoutloading": ["MessagesPopout", "loading"],
|
|
||||||
"messagespopoutloadingmore": ["MessagesPopout", "loadingMore"],
|
"messagespopoutloadingmore": ["MessagesPopout", "loadingMore"],
|
||||||
"messagespopoutloadingplaceholder": ["MessagesPopout", "loadingPlaceholder"],
|
"messagespopoutloadingplaceholder": ["MessagesPopout", "loadingPlaceholder"],
|
||||||
"messagespopoutscrollingfooterwrap": ["MessagesPopout", "scrollingFooterWrap"],
|
"messagespopoutscrollingfooterwrap": ["MessagesPopout", "scrollingFooterWrap"],
|
||||||
@@ -2680,7 +2687,6 @@
|
|||||||
"messagespopouttabbarinner": ["MessagesPopoutTabBar", "tabBar"],
|
"messagespopouttabbarinner": ["MessagesPopoutTabBar", "tabBar"],
|
||||||
"messagespopouttabbartab": ["MessagesPopoutTabBar", "tab"],
|
"messagespopouttabbartab": ["MessagesPopoutTabBar", "tab"],
|
||||||
"messagespopouttitle": ["MessagesPopoutHeader", "title"],
|
"messagespopouttitle": ["MessagesPopoutHeader", "title"],
|
||||||
"messagespopoutvisible": ["MessagesPopout", "visible"],
|
|
||||||
"messagespopoutwrap": ["MessagesPopout", "messagesPopoutWrap"],
|
"messagespopoutwrap": ["MessagesPopout", "messagesPopoutWrap"],
|
||||||
"messagesscroller": ["MessagesWrap", "scroller"],
|
"messagesscroller": ["MessagesWrap", "scroller"],
|
||||||
"messagesscrollercontent": ["MessagesWrap", "scrollerContent"],
|
"messagesscrollercontent": ["MessagesWrap", "scrollerContent"],
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* @name BDFDB
|
* @name BDFDB
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @authorId 278543574059057154
|
||||||
* @version 4.3.6
|
* @version 4.3.7
|
||||||
* @description Required Library for DevilBro's Plugins
|
* @description Required Library for DevilBro's Plugins
|
||||||
* @invite Jx3TjNS
|
* @invite Jx3TjNS
|
||||||
* @donate https://www.paypal.me/MircoWittrien
|
* @donate https://www.paypal.me/MircoWittrien
|
||||||
@@ -2690,7 +2690,7 @@ module.exports = (_ => {
|
|||||||
};
|
};
|
||||||
MyReact.findDOMNode = function (instance, onlyChildren) {
|
MyReact.findDOMNode = function (instance, onlyChildren) {
|
||||||
if (Node.prototype.isPrototypeOf(instance)) return instance;
|
if (Node.prototype.isPrototypeOf(instance)) return instance;
|
||||||
if (!instance || !instance.updater || typeof instance.updater.isMounted !== "function" || !instance.updater.isMounted(instance)) return null;
|
if (!instance || !instance.updater) return null;
|
||||||
let node = Internal.LibraryModules.ReactDOM.findDOMNode && Internal.LibraryModules.ReactDOM.findDOMNode(instance);
|
let node = Internal.LibraryModules.ReactDOM.findDOMNode && Internal.LibraryModules.ReactDOM.findDOMNode(instance);
|
||||||
for (let path of ["child.stateNode", "child.ref.current", !onlyChildren && "return.stateNode", !onlyChildren && "return.return.stateNode"]) if (!node && path) {
|
for (let path of ["child.stateNode", "child.ref.current", !onlyChildren && "return.stateNode", !onlyChildren && "return.return.stateNode"]) if (!node && path) {
|
||||||
node = BDFDB.ObjectUtils.get(instance[BDFDB.ReactUtils.instanceKey] || instance, path);
|
node = BDFDB.ObjectUtils.get(instance[BDFDB.ReactUtils.instanceKey] || instance, path);
|
||||||
@@ -3017,7 +3017,7 @@ module.exports = (_ => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
MyReact.forceUpdate = function (...instances) {
|
MyReact.forceUpdate = function (...instances) {
|
||||||
for (let ins of instances.flat(10).filter(n => n)) if (ins.updater && typeof ins.updater.isMounted == "function" && ins.updater.isMounted(ins)) ins.forceUpdate();
|
for (let ins of instances.flat(10).filter(n => n)) if (ins.updater) ins.forceUpdate();
|
||||||
};
|
};
|
||||||
MyReact.getInstance = function (node) {
|
MyReact.getInstance = function (node) {
|
||||||
if (!BDFDB.ObjectUtils.is(node)) return null;
|
if (!BDFDB.ObjectUtils.is(node)) return null;
|
||||||
|
|||||||
@@ -88,8 +88,13 @@ img:not([src]), img[src=""], img[src="null"] {
|
|||||||
margin-bottom: 40px;
|
margin-bottom: 40px;
|
||||||
}
|
}
|
||||||
[REPLACE_CLASS_settingsrowcontainer] [REPLACE_CLASS_settingsrow] {
|
[REPLACE_CLASS_settingsrowcontainer] [REPLACE_CLASS_settingsrow] {
|
||||||
|
display: flex;
|
||||||
|
flex-grow: 1;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
[REPLACE_CLASS_settingsrowcontainer] [REPLACE_CLASS_settingsrowlabel] {
|
||||||
|
flex-grow: 1;
|
||||||
|
}
|
||||||
[REPLACE_CLASS_settingsrowcontainer] [REPLACE_CLASS_settingsrowcontrol] {
|
[REPLACE_CLASS_settingsrowcontainer] [REPLACE_CLASS_settingsrowcontrol] {
|
||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* @name ViewProfilePicture
|
* @name ViewProfilePicture
|
||||||
* @description Adds a button to the user popout and profile that allows you to view the Avatar and banner.
|
* @description Adds a button to the user popout and profile that allows you to view the Avatar and banner.
|
||||||
* @version 1.3.1
|
* @version 1.3.2
|
||||||
* @author Skamt
|
* @author Skamt
|
||||||
* @website https://github.com/Skamt/BDAddons/tree/main/ViewProfilePicture
|
* @website https://github.com/Skamt/BDAddons/tree/main/ViewProfilePicture
|
||||||
* @source https://raw.githubusercontent.com/Skamt/BDAddons/main/ViewProfilePicture/ViewProfilePicture.plugin.js
|
* @source https://raw.githubusercontent.com/Skamt/BDAddons/main/ViewProfilePicture/ViewProfilePicture.plugin.js
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
var Config_default = {
|
var Config_default = {
|
||||||
"info": {
|
"info": {
|
||||||
"name": "ViewProfilePicture",
|
"name": "ViewProfilePicture",
|
||||||
"version": "1.3.1",
|
"version": "1.3.2",
|
||||||
"description": "Adds a button to the user popout and profile that allows you to view the Avatar and banner.",
|
"description": "Adds a button to the user popout and profile that allows you to view the Avatar and banner.",
|
||||||
"source": "https://raw.githubusercontent.com/Skamt/BDAddons/main/ViewProfilePicture/ViewProfilePicture.plugin.js",
|
"source": "https://raw.githubusercontent.com/Skamt/BDAddons/main/ViewProfilePicture/ViewProfilePicture.plugin.js",
|
||||||
"github": "https://github.com/Skamt/BDAddons/tree/main/ViewProfilePicture",
|
"github": "https://github.com/Skamt/BDAddons/tree/main/ViewProfilePicture",
|
||||||
@@ -170,11 +170,19 @@ StylesLoader_default.push(`/* View Profile Button */
|
|||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.VPP-carousel button {
|
.VPP-carousel > div[role="button"] {
|
||||||
margin: 0 15px;
|
margin: 0 15px;
|
||||||
opacity: 0.8;
|
background: var(--background-surface-high);
|
||||||
background: var(--background-base-low);
|
color: var(--interactive-normal);
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.VPP-carousel > div[role="button"]:hover {
|
||||||
|
background: var(--background-surface-highest);
|
||||||
|
color: var(--interactive-hover);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Copy color button */
|
/* Copy color button */
|
||||||
@@ -352,45 +360,37 @@ var { zustand } = getMangled(Filters.bySource("useSyncExternalStoreWithSelector"
|
|||||||
zustand: () => true
|
zustand: () => true
|
||||||
});
|
});
|
||||||
var subscribeWithSelector = getModule(Filters.byStrings("equalityFn", "fireImmediately"), { searchExports: true });
|
var subscribeWithSelector = getModule(Filters.byStrings("equalityFn", "fireImmediately"), { searchExports: true });
|
||||||
var zustand_default = zustand;
|
|
||||||
|
function create(initialState) {
|
||||||
|
const Store = zustand(initialState);
|
||||||
|
Object.defineProperty(Store, "state", {
|
||||||
|
configurable: false,
|
||||||
|
get: () => Store.getState()
|
||||||
|
});
|
||||||
|
return Store;
|
||||||
|
}
|
||||||
|
|
||||||
// common/Utils/Settings.js
|
// common/Utils/Settings.js
|
||||||
var SettingsStoreSelectors = {};
|
var SettingsStore = create(subscribeWithSelector(() => Object.assign(Config_default.settings, Data.load("settings") || {})));
|
||||||
var persistMiddleware = (config) => (set, get, api) => config((args) => (set(args), Data.save("settings", get().getRawState())), get, api);
|
((state) => {
|
||||||
var SettingsStore = Object.assign(
|
const selectors = {};
|
||||||
zustand_default(
|
const actions = {};
|
||||||
persistMiddleware(
|
for (const [key, value] of Object.entries(state)) {
|
||||||
subscribeWithSelector((set, get) => {
|
actions[`set${key}`] = (newValue) => SettingsStore.setState({
|
||||||
const settingsObj = /* @__PURE__ */ Object.create(null);
|
[key]: newValue });
|
||||||
for (const [key, value] of Object.entries({
|
selectors[key] = (state2) => state2[key];
|
||||||
...Config_default.settings,
|
|
||||||
...Data.load("settings")
|
|
||||||
})) {
|
|
||||||
settingsObj[key] = value;
|
|
||||||
settingsObj[`set${key}`] = (newValue) => set({
|
|
||||||
[key]: newValue });
|
|
||||||
SettingsStoreSelectors[key] = (state) => state[key];
|
|
||||||
}
|
|
||||||
settingsObj.getRawState = () => {
|
|
||||||
return Object.entries(get()).filter(([, val]) => typeof val !== "function").reduce((acc, [key, val]) => {
|
|
||||||
acc[key] = val;
|
|
||||||
return acc;
|
|
||||||
}, {});
|
|
||||||
};
|
|
||||||
return settingsObj;
|
|
||||||
})
|
|
||||||
)
|
|
||||||
), {
|
|
||||||
useSetting: function(key) {
|
|
||||||
return this((state) => [state[key], state[`set${key}`]]);
|
|
||||||
},
|
|
||||||
selectors: SettingsStoreSelectors
|
|
||||||
}
|
}
|
||||||
|
Object.defineProperty(SettingsStore, "selectors", { value: Object.assign(selectors) });
|
||||||
|
Object.assign(SettingsStore, actions);
|
||||||
|
})(SettingsStore.getInitialState());
|
||||||
|
SettingsStore.subscribe(
|
||||||
|
(state) => state,
|
||||||
|
() => Data.save("settings", SettingsStore.state)
|
||||||
);
|
);
|
||||||
Object.defineProperty(SettingsStore, "state", {
|
Object.assign(SettingsStore, {
|
||||||
configurable: false,
|
useSetting: (key) => {
|
||||||
get() {
|
const val = SettingsStore((state) => state[key]);
|
||||||
return this.getState();
|
return [val, SettingsStore[`set${key}`]];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
var Settings_default = SettingsStore;
|
var Settings_default = SettingsStore;
|
||||||
@@ -404,7 +404,8 @@ StylesLoader_default.push(`.transparent-background.transparent-background{
|
|||||||
// common/Utils/Modals/index.jsx
|
// common/Utils/Modals/index.jsx
|
||||||
var ModalActions = /* @__PURE__ */ getMangled("onCloseRequest:null!=", {
|
var ModalActions = /* @__PURE__ */ getMangled("onCloseRequest:null!=", {
|
||||||
openModal: /* @__PURE__ */ Filters.byStrings("onCloseRequest:null!="),
|
openModal: /* @__PURE__ */ Filters.byStrings("onCloseRequest:null!="),
|
||||||
closeModal: /* @__PURE__ */ Filters.byStrings(".setState", ".getState()[")
|
closeModal: /* @__PURE__ */ Filters.byStrings(".setState", ".getState()["),
|
||||||
|
ModalStore: /* @__PURE__ */ Filters.byKeys("getState")
|
||||||
});
|
});
|
||||||
var Modals = /* @__PURE__ */ getMangled( /* @__PURE__ */ Filters.bySource("root", "headerIdIsManaged"), {
|
var Modals = /* @__PURE__ */ getMangled( /* @__PURE__ */ Filters.bySource("root", "headerIdIsManaged"), {
|
||||||
ModalRoot: /* @__PURE__ */ Filters.byStrings("rootWithShadow"),
|
ModalRoot: /* @__PURE__ */ Filters.byStrings("rootWithShadow"),
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -0,0 +1 @@
|
|||||||
|
.zshrc
|
||||||
|
|||||||
@@ -11,4 +11,28 @@ cat "$HEADER" > "$BDCSS"
|
|||||||
echo "" >> "$BDCSS"
|
echo "" >> "$BDCSS"
|
||||||
cat "$WALCSS" >> "$BDCSS"
|
cat "$WALCSS" >> "$BDCSS"
|
||||||
echo "" >> "$BDCSS"
|
echo "" >> "$BDCSS"
|
||||||
|
|
||||||
|
# Extract current wallpaper from gsettings and generate URL variable
|
||||||
|
CURRENT_WALLPAPER=$(gsettings get org.gnome.desktop.background picture-uri-dark 2>/dev/null || echo "")
|
||||||
|
if [ -n "$CURRENT_WALLPAPER" ] && [ "$CURRENT_WALLPAPER" != "''" ]; then
|
||||||
|
# Remove 'file://' prefix and quotes
|
||||||
|
WALLPAPER_PATH=${CURRENT_WALLPAPER#"'file://"}
|
||||||
|
WALLPAPER_PATH=${WALLPAPER_PATH%"'"}
|
||||||
|
|
||||||
|
# Extract filename only
|
||||||
|
WALLPAPER_NAME=$(basename "$WALLPAPER_PATH")
|
||||||
|
|
||||||
|
# Generate GitHub URL and inject to CSS
|
||||||
|
GITHUB_WALLPAPER_URL="https://raw.githubusercontent.com/SeraphimeZelel/rion-ricing/refs/heads/main/Wallpaper/$WALLPAPER_NAME"
|
||||||
|
|
||||||
|
cat >> "$BDCSS" << EOF
|
||||||
|
|
||||||
|
/* Wallpaper URL - Generated by discord-pywalsync.sh */
|
||||||
|
:root {
|
||||||
|
--wallpaper: url('$GITHUB_WALLPAPER_URL');
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
echo "" >> "$BDCSS"
|
||||||
|
fi
|
||||||
|
|
||||||
cat "$TEMPLATE" >> "$BDCSS"
|
cat "$TEMPLATE" >> "$BDCSS"
|
||||||
@@ -118,7 +118,3 @@ source $ZSH/oh-my-zsh.sh
|
|||||||
|
|
||||||
alias ffa='~/.local/bin/fastfetch_auto.sh'
|
alias ffa='~/.local/bin/fastfetch_auto.sh'
|
||||||
alias reales='~/.realesrgan/realesrgan-ncnn-vulkan'
|
alias reales='~/.realesrgan/realesrgan-ncnn-vulkan'
|
||||||
|
|
||||||
export NVM_DIR="$HOME/.nvm"
|
|
||||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
|
||||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
|
||||||
Reference in New Issue
Block a user