This commit is contained in:
thororen1234 2024-07-18 00:56:51 -04:00
parent 3c4d217312
commit 94606a3a5d
3 changed files with 8 additions and 4 deletions

View file

@ -16,7 +16,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
import { Devs } from "@utils/constants"; import { Devs, EquicordDevs } from "@utils/constants";
import definePlugin from "@utils/types"; import definePlugin from "@utils/types";
import { addSettingsPanelButton, Emitter, removeSettingsPanelButton, ScreenshareSettingsIcon } from "../philsPluginLibrary"; import { addSettingsPanelButton, Emitter, removeSettingsPanelButton, ScreenshareSettingsIcon } from "../philsPluginLibrary";
@ -32,7 +32,7 @@ var screenshareAudioPatcher;
export default definePlugin({ export default definePlugin({
name: "PhilsBetterScreenshare", name: "PhilsBetterScreenshare",
description: "This plugin allows you to further customize your screen sharing.", description: "This plugin allows you to further customize your screen sharing.",
authors: [Devs.philhk, Devs.walrus], authors: [Devs.philhk, EquicordDevs.walrus],
dependencies: ["PhilsPluginLibrary"], dependencies: ["PhilsPluginLibrary"],
replacedScreenshareModalComponent: replacedScreenshareModalComponent, replacedScreenshareModalComponent: replacedScreenshareModalComponent,

View file

@ -31,8 +31,8 @@ export default definePlugin({
{ {
find: "Messages.ACCOUNT_A11Y_LABEL", find: "Messages.ACCOUNT_A11Y_LABEL",
replacement: { replacement: {
match: /(?<=function)( .{0,8}(?={).)(.{0,1000}isFullscreenInContext\(\).+?\)]}\))(})/, match: /(?<=function)( \i\i\(\i\)(?={).)(.{0,1000}\i\.\i\.isFullscreenInContext\(\).+?\)]}\))\}/,
replace: "$1return $self.replacedUserPanelComponent(function(){$2}, this, arguments)$3" replace: "$1 return $self.replacedUserPanelComponent(function(){$2}, this, arguments)}"
} }
} }
], ],

View file

@ -675,6 +675,10 @@ export const EquicordDevs = Object.freeze({
name: "colorman", name: "colorman",
id: 298842558610800650n, id: 298842558610800650n,
}, },
walrus: {
name: "walrus",
id: 305317288775778306n,
},
} satisfies Record<string, Dev>); } satisfies Record<string, Dev>);
export const SuncordDevs = /* #__PURE__*/ Object.freeze({ export const SuncordDevs = /* #__PURE__*/ Object.freeze({