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