mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 13:23:28 -05:00
Fix PictureInPicture
This commit is contained in:
parent
11a32888f3
commit
2849c36cdf
3 changed files with 35 additions and 28 deletions
|
@ -37,7 +37,10 @@ const CANARY = process.env.USE_CANARY === "true";
|
|||
|
||||
const browser = await pup.launch({
|
||||
headless: true,
|
||||
executablePath: process.env.CHROMIUM_BIN
|
||||
executablePath: process.env.CHROMIUM_BIN,
|
||||
args: [
|
||||
'--shm-size=5gb' // Testing Value
|
||||
]
|
||||
});
|
||||
|
||||
const page = await browser.newPage();
|
||||
|
|
|
@ -24,13 +24,13 @@ const settings = definePluginSettings({
|
|||
export default definePlugin({
|
||||
name: "PictureInPicture",
|
||||
description: "Adds picture in picture to videos (next to the Download button)",
|
||||
authors: [Devs.Nobody],
|
||||
authors: [Devs.Lumap],
|
||||
settings,
|
||||
patches: [
|
||||
{
|
||||
find: ".nonMediaMosaicItem]",
|
||||
find: ".removeMosaicItemHoverButton),",
|
||||
replacement: {
|
||||
match: /\.nonMediaMosaicItem\]:!(\i).{0,50}?children:\[(\S)/,
|
||||
match: /\.nonMediaMosaicItem\]:!(\i).{0,50}?children:\[\S,(\S)/,
|
||||
replace: "$&,$1&&$2&&$self.renderPiPButton(),"
|
||||
},
|
||||
},
|
||||
|
|
|
@ -547,13 +547,33 @@ export const Devs = /* #__PURE__*/ Object.freeze({
|
|||
surgedevs: {
|
||||
name: "Chloe",
|
||||
id: 1084592643784331324n
|
||||
}
|
||||
},
|
||||
Lumap: {
|
||||
name: "Lumap",
|
||||
id: 585278686291427338n,
|
||||
},
|
||||
} satisfies Record<string, Dev>);
|
||||
|
||||
export const EquicordDevs = Object.freeze({
|
||||
vmohammad: {
|
||||
name: "vMohammad",
|
||||
id: 921098159348924457n
|
||||
thororen: {
|
||||
name: "thororen",
|
||||
id: 848339671629299742n
|
||||
},
|
||||
nyx: {
|
||||
name: "verticalsync",
|
||||
id: 328165170536775680n,
|
||||
},
|
||||
Cortex: {
|
||||
name: "Cortex",
|
||||
id: 825069530376044594n,
|
||||
},
|
||||
KrystalSkull: {
|
||||
name: "krystalskullofficial",
|
||||
id: 929208515883569182n
|
||||
},
|
||||
Naibuu: {
|
||||
name: "hs50",
|
||||
id: 1120045713867423835n,
|
||||
},
|
||||
nexpid: {
|
||||
name: "Nexpid",
|
||||
|
@ -575,10 +595,6 @@ export const EquicordDevs = Object.freeze({
|
|||
name: "ryan",
|
||||
id: 479403382994632704n
|
||||
},
|
||||
thororen: {
|
||||
name: "thororen",
|
||||
id: 848339671629299742n
|
||||
},
|
||||
MrDiamond: {
|
||||
name: "MrDiamond",
|
||||
id: 523338295644782592n
|
||||
|
@ -615,18 +631,10 @@ export const EquicordDevs = Object.freeze({
|
|||
name: "cooles",
|
||||
id: 406084422308331522n,
|
||||
},
|
||||
KrystalSkull: {
|
||||
name: "krystalskullofficial",
|
||||
id: 929208515883569182n
|
||||
},
|
||||
SerStars: {
|
||||
name: "SerStars",
|
||||
id: 861631850681729045n
|
||||
},
|
||||
nyx: {
|
||||
name: "verticalsync",
|
||||
id: 328165170536775680n,
|
||||
},
|
||||
MaxHerbold: {
|
||||
name: "MaxHerbold",
|
||||
id: 1189527130611138663n,
|
||||
|
@ -639,10 +647,6 @@ export const EquicordDevs = Object.freeze({
|
|||
name: "Megal",
|
||||
id: 387790666484285441n
|
||||
},
|
||||
Cortex: {
|
||||
name: "Cortex",
|
||||
id: 825069530376044594n,
|
||||
},
|
||||
Woosh: {
|
||||
name: "w00shh.",
|
||||
id: 919239894327521361n,
|
||||
|
@ -683,10 +687,6 @@ export const EquicordDevs = Object.freeze({
|
|||
name: "Fafa",
|
||||
id: 428188716641812481n,
|
||||
},
|
||||
Naibuu: {
|
||||
name: "hs50",
|
||||
id: 1120045713867423835n,
|
||||
},
|
||||
Colorman: {
|
||||
name: "colorman",
|
||||
id: 298842558610800650n,
|
||||
|
@ -751,6 +751,10 @@ export const EquicordDevs = Object.freeze({
|
|||
name: "Hen",
|
||||
id: 279266228151779329n
|
||||
},
|
||||
vmohammad: {
|
||||
name: "vMohammad",
|
||||
id: 921098159348924457n
|
||||
},
|
||||
} satisfies Record<string, Dev>);
|
||||
|
||||
// iife so #__PURE__ works correctly
|
||||
|
|
Loading…
Reference in a new issue