parent
0a480e2d89
commit
393cad7ce1
@ -0,0 +1,21 @@ |
||||
/* |
||||
* SPDX-License-Identifier: GPL-3.0 |
||||
* Aerocord, a vesktop fork for older microsoft NT releases such as NT 6.0, 6.1, 6.2 and 6.3.
|
||||
* Credits to vendicated and the rest of the vesktop contribuitors for making Vesktop! |
||||
*/ |
||||
|
||||
import { addPatch } from "./shared"; |
||||
|
||||
addPatch({ |
||||
patches: [ |
||||
{ |
||||
find: '"NotificationSettingsStore', |
||||
replacement: { |
||||
// FIXME: fix eslint rule
|
||||
// eslint-disable-next-line no-useless-escape
|
||||
match: /\.isPlatformEmbedded(?=\?\i\.DesktopNotificationTypes\.ALL)/g, |
||||
replace: "$&||true" |
||||
} |
||||
} |
||||
] |
||||
}); |
@ -0,0 +1,24 @@ |
||||
/* |
||||
* SPDX-License-Identifier: GPL-3.0 |
||||
* Aerocord, a vesktop fork for older microsoft NT releases such as NT 6.0, 6.1, 6.2 and 6.3.
|
||||
* Credits to vendicated and the rest of the vesktop contribuitors for making Vesktop! |
||||
*/ |
||||
|
||||
import { addPatch } from "./shared"; |
||||
|
||||
addPatch({ |
||||
patches: [ |
||||
{ |
||||
find: "lastOutputSystemDevice.justChanged", |
||||
replacement: { |
||||
// eslint-disable-next-line no-useless-escape
|
||||
match: /(\i)\.default\.getState\(\).neverShowModal/, |
||||
replace: "$& || $self.shouldIgnore($1)" |
||||
} |
||||
} |
||||
], |
||||
|
||||
shouldIgnore(state: any) { |
||||
return Object.keys(state?.default?.lastDeviceConnected ?? {})?.[0] === "vencord-screen-share"; |
||||
} |
||||
}); |
@ -0,0 +1,25 @@ |
||||
/* |
||||
* SPDX-License-Identifier: GPL-3.0 |
||||
* Aerocord, a vesktop fork for older microsoft NT releases such as NT 6.0, 6.1, 6.2 and 6.3.
|
||||
* Credits to vendicated and the rest of the vesktop contribuitors for making Vesktop! |
||||
*/ |
||||
|
||||
import { addPatch } from "./shared"; |
||||
|
||||
addPatch({ |
||||
patches: [ |
||||
{ |
||||
find: 'setSinkId"in', |
||||
replacement: { |
||||
// eslint-disable-next-line no-useless-escape
|
||||
match: /return (\i)\?navigator\.mediaDevices\.enumerateDevices/, |
||||
replace: "return $1 ? $self.filteredDevices" |
||||
} |
||||
} |
||||
], |
||||
|
||||
async filteredDevices() { |
||||
const original = await navigator.mediaDevices.enumerateDevices(); |
||||
return original.filter(x => x.label !== "vencord-screen-share"); |
||||
} |
||||
}); |
@ -0,0 +1,14 @@ |
||||
/* |
||||
* SPDX-License-Identifier: GPL-3.0 |
||||
* Aerocord, a vesktop fork for older microsoft NT releases such as NT 6.0, 6.1, 6.2 and 6.3.
|
||||
* Credits to vendicated and the rest of the vesktop contribuitors for making Vesktop! |
||||
*/ |
||||
|
||||
// TODO: Possibly auto generate glob if we have more patches in the future
|
||||
import "./enableNotificationsByDefault"; |
||||
import "./platformClass"; |
||||
import "./hideSwitchDevice"; |
||||
import "./hideVenmicInput"; |
||||
import "./screenShareFixes"; |
||||
import "./spellCheck"; |
||||
import "./windowsTitleBar"; |
@ -0,0 +1,29 @@ |
||||
/* |
||||
* SPDX-License-Identifier: GPL-3.0 |
||||
* Aerocord, a vesktop fork for older microsoft NT releases such as NT 6.0, 6.1, 6.2 and 6.3.
|
||||
* Credits to vendicated and the rest of the vesktop contribuitors for making Vesktop! |
||||
*/ |
||||
|
||||
import { Settings } from "renderer/settings"; |
||||
import { isMac } from "renderer/utils"; |
||||
|
||||
import { addPatch } from "./shared"; |
||||
|
||||
addPatch({ |
||||
patches: [ |
||||
{ |
||||
find: "platform-web", |
||||
replacement: { |
||||
// eslint-disable-next-line no-useless-escape
|
||||
match: /(?<=" platform-overlay"\):)\i/, |
||||
replace: "$self.getPlatformClass()" |
||||
} |
||||
} |
||||
], |
||||
|
||||
getPlatformClass() { |
||||
if (Settings.store.customTitleBar) return "platform-win"; |
||||
if (isMac) return "platform-osx"; |
||||
return "platform-web"; |
||||
} |
||||
}); |
Loading…
Reference in new issue