Skip to content

Commit 89d5082

Browse files
committed
Remove Auto-PiP functionality
1 parent d097bd8 commit 89d5082

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

content.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,7 @@ function enablePiP(video) {
1515
}
1616
});
1717

18-
// AUTO PiP when video starts playing
19-
video.addEventListener("play", async () => {
20-
if (!document.pictureInPictureElement) {
21-
try {
22-
await video.requestPictureInPicture();
23-
} catch (e) {
24-
// Brave blocks if no user gesture — SAFE TO IGNORE
25-
}
26-
}
27-
});
18+
2819
}
2920

3021
// Detect existing videos

0 commit comments

Comments
 (0)