|
|
@ -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(),"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|