diff --git a/src/plugins/pictureInPicture/index.tsx b/src/plugins/pictureInPicture/index.tsx index 81d75a25..20cedf45 100644 --- a/src/plugins/pictureInPicture/index.tsx +++ b/src/plugins/pictureInPicture/index.tsx @@ -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()," }, }, diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 35525cd1..febb8f9a 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -33,10 +33,6 @@ export interface Dev { * If you are fine with attribution but don't want the badge, add badge: false */ export const Devs = /* #__PURE__*/ Object.freeze({ - Nobody: { - name: "Nobody", - id: 0n, - }, Ven: { name: "Vee", id: 343383572805058560n @@ -545,7 +541,11 @@ export const Devs = /* #__PURE__*/ Object.freeze({ surgedevs: { name: "Chloe", id: 1084592643784331324n - } + }, + Lumap: { + name: "Lumap", + id: 585278686291427338n, + }, } satisfies Record); // iife so #__PURE__ works correctly