Merge remote-tracking branch 'upstream/dev' into dev
This commit is contained in:
commit
2f054f78da
9 changed files with 46 additions and 19 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "equicord",
|
"name": "equicord",
|
||||||
"private": "true",
|
"private": "true",
|
||||||
"version": "1.14.2.1",
|
"version": "1.14.3.0",
|
||||||
"description": "The other cutest Discord client mod",
|
"description": "The other cutest Discord client mod",
|
||||||
"homepage": "https://github.com/Equicord/Equicord#readme",
|
"homepage": "https://github.com/Equicord/Equicord#readme",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
|
|
|
||||||
|
|
@ -87,7 +87,7 @@ export default definePlugin({
|
||||||
replace: "$&$self.onPopoutClose();"
|
replace: "$&$self.onPopoutClose();"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
match: /ref:(\i),style:\i(?=.{0,250}#{intl::5fWB8U::raw})/,
|
match: /ref:(\i),style:\i(?=.{0,250}#{intl::USER_PROFILE_ACCOUNT_POPOUT_BUTTON_A11Y_LABEL})/,
|
||||||
replace: "$&,onContextMenu:($self.grabRef($1),$self.openAccountPanelContextMenu)"
|
replace: "$&,onContextMenu:($self.grabRef($1),$self.openAccountPanelContextMenu)"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -137,6 +137,28 @@ export default definePlugin({
|
||||||
],
|
],
|
||||||
predicate: () => settings.store.disableFade
|
predicate: () => settings.store.disableFade
|
||||||
},
|
},
|
||||||
|
{ // Disable fade animations for settings menu
|
||||||
|
find: '"data-mana-component":"layer-modal"',
|
||||||
|
replacement: [
|
||||||
|
{
|
||||||
|
match: /(\i)\.animated\.div(?=,\{"data-mana-component":"layer-modal")/,
|
||||||
|
replace: '"div"'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
match: /(?<="data-mana-component":"layer-modal"[^}]*?)style:\i,/,
|
||||||
|
replace: "style:{},"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
predicate: () => settings.store.disableFade
|
||||||
|
},
|
||||||
|
{ // Disable initial and exit delay for settings menu
|
||||||
|
find: "headerId:void 0,headerIdIsManaged:!1",
|
||||||
|
replacement: {
|
||||||
|
match: /let (\i)=300/,
|
||||||
|
replace: "let $1=0"
|
||||||
|
},
|
||||||
|
predicate: () => settings.store.disableFade
|
||||||
|
},
|
||||||
{ // Load menu TOC eagerly
|
{ // Load menu TOC eagerly
|
||||||
find: "handleOpenSettingsContextMenu=",
|
find: "handleOpenSettingsContextMenu=",
|
||||||
replacement: {
|
replacement: {
|
||||||
|
|
@ -145,8 +167,7 @@ export default definePlugin({
|
||||||
},
|
},
|
||||||
predicate: () => settings.store.eagerLoad
|
predicate: () => settings.store.eagerLoad
|
||||||
},
|
},
|
||||||
{
|
{ // Settings cog context menu
|
||||||
// Settings cog context menu
|
|
||||||
find: "#{intl::USER_SETTINGS_ACTIONS_MENU_LABEL}",
|
find: "#{intl::USER_SETTINGS_ACTIONS_MENU_LABEL}",
|
||||||
replacement: [
|
replacement: [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@ export default definePlugin({
|
||||||
...[
|
...[
|
||||||
'"Message Username"', // Messages
|
'"Message Username"', // Messages
|
||||||
"#{intl::COLLECTIBLES_NAMEPLATE_PREVIEW_A11Y}", // Nameplate preview
|
"#{intl::COLLECTIBLES_NAMEPLATE_PREVIEW_A11Y}", // Nameplate preview
|
||||||
"#{intl::ayozFl::raw}", // Avatar preview
|
"#{intl::COLLECTIBLES_PROFILE_PREVIEW_A11Y}", // Avatar preview
|
||||||
].map(find => ({
|
].map(find => ({
|
||||||
find,
|
find,
|
||||||
replacement: {
|
replacement: {
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ function toggleStreamerMode({ streamKey }: StreamEvent, value: boolean) {
|
||||||
export default definePlugin({
|
export default definePlugin({
|
||||||
name: "StreamerModeOn",
|
name: "StreamerModeOn",
|
||||||
description: "Automatically enables streamer mode when you start streaming in Discord",
|
description: "Automatically enables streamer mode when you start streaming in Discord",
|
||||||
authors: [Devs.Kodarru],
|
authors: [Devs.IcedMarina],
|
||||||
flux: {
|
flux: {
|
||||||
STREAM_CREATE: d => toggleStreamerMode(d, true),
|
STREAM_CREATE: d => toggleStreamerMode(d, true),
|
||||||
STREAM_DELETE: d => toggleStreamerMode(d, false)
|
STREAM_DELETE: d => toggleStreamerMode(d, false)
|
||||||
|
|
|
||||||
|
|
@ -225,6 +225,7 @@ export const DeeplLanguages = {
|
||||||
"it": "Italian",
|
"it": "Italian",
|
||||||
"ja": "Japanese",
|
"ja": "Japanese",
|
||||||
"jv": "Javanese",
|
"jv": "Javanese",
|
||||||
|
"ko": "Korean",
|
||||||
"pam": "Kapampangan",
|
"pam": "Kapampangan",
|
||||||
"kk": "Kazakh",
|
"kk": "Kazakh",
|
||||||
"kmr": "Kurdish (Kurmanji)",
|
"kmr": "Kurdish (Kurmanji)",
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ export default definePlugin({
|
||||||
authors: [Devs.puv],
|
authors: [Devs.puv],
|
||||||
patches: [
|
patches: [
|
||||||
{
|
{
|
||||||
find: "#{intl::LgCPMt::raw}",
|
find: "#{intl::VOICE_MESSAGES_PLAYBACK_RATE_LABEL}",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(?<=onVolumeHide:\i\}\))/,
|
match: /(?<=onVolumeHide:\i\}\))/,
|
||||||
replace: ",$self.renderDownload(arguments[0].src)"
|
replace: ",$self.renderDownload(arguments[0].src)"
|
||||||
|
|
|
||||||
|
|
@ -55,16 +55,21 @@ export default definePlugin({
|
||||||
|
|
||||||
patches: [
|
patches: [
|
||||||
// Change the max volume for sliders to allow for values above 200
|
// Change the max volume for sliders to allow for values above 200
|
||||||
...[
|
{
|
||||||
"#{intl::USER_VOLUME}",
|
find: "#{intl::USER_VOLUME}",
|
||||||
"currentVolume:"
|
|
||||||
].map(find => ({
|
|
||||||
find,
|
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(?<=maxValue:)\i\.\i\?(\i\.\i|\d+?):(\i\.\i|\d+?)(?=,)/,
|
match: /(?<=maxValue:)\i\.isPlatformEmbedded\?(\i\.\i):\i\.\i(?=,)/,
|
||||||
replace: (_, higherMaxVolume, minorMaxVolume) => `${higherMaxVolume}*$self.settings.store.multiplier`
|
replace: (_, higherMaxVolume) => `${higherMaxVolume}*$self.settings.store.multiplier`
|
||||||
}
|
}
|
||||||
})),
|
},
|
||||||
|
// Change the max volume for sliders to allow for values above 200
|
||||||
|
{
|
||||||
|
find: "currentVolume:",
|
||||||
|
replacement: {
|
||||||
|
match: /(?<=maxValue:)\i\.\i\?(\d+?):\d+?(?=,)/,
|
||||||
|
replace: (_, higherMaxVolume) => `${higherMaxVolume}*$self.settings.store.multiplier`
|
||||||
|
}
|
||||||
|
},
|
||||||
// Patches needed for web/vesktop
|
// Patches needed for web/vesktop
|
||||||
{
|
{
|
||||||
find: "streamSourceNode",
|
find: "streamSourceNode",
|
||||||
|
|
|
||||||
|
|
@ -466,7 +466,7 @@ export const Devs = /* #__PURE__*/ Object.freeze({
|
||||||
},
|
},
|
||||||
nin0dev: {
|
nin0dev: {
|
||||||
name: "nin0dev",
|
name: "nin0dev",
|
||||||
id: 886685857560539176n
|
id: 1395533040914141235n
|
||||||
},
|
},
|
||||||
Elvyra: {
|
Elvyra: {
|
||||||
name: "Elvyra",
|
name: "Elvyra",
|
||||||
|
|
@ -496,9 +496,9 @@ export const Devs = /* #__PURE__*/ Object.freeze({
|
||||||
name: "puv",
|
name: "puv",
|
||||||
id: 469441552251355137n
|
id: 469441552251355137n
|
||||||
},
|
},
|
||||||
Kodarru: {
|
IcedMarina: {
|
||||||
name: "Kodarru",
|
name: "icedmarina",
|
||||||
id: 785227396218748949n
|
id: 594406131670188042n
|
||||||
},
|
},
|
||||||
nakoyasha: {
|
nakoyasha: {
|
||||||
name: "nakoyasha",
|
name: "nakoyasha",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue