From 1527cd86e885d3f9d9b8dccb20e91cf999a62544 Mon Sep 17 00:00:00 2001 From: Shrey Marwaha Date: Wed, 17 Dec 2025 21:28:37 +0530 Subject: [PATCH] Add clipboard write permission and iframe attribute Added 'clipboardWrite' to extension permissions in manifest.json and set 'allow' attribute to 'clipboard-write' on the info menu iframe in content.ts to enable clipboard operations. --- manifest/manifest.json | 3 ++- src/content.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/manifest/manifest.json b/manifest/manifest.json index 6c8c99f8..7f138b92 100644 --- a/manifest/manifest.json +++ b/manifest/manifest.json @@ -17,7 +17,8 @@ "permissions": [ "storage", "scripting", - "unlimitedStorage" + "unlimitedStorage", + "clipboardWrite" ], "options_ui": { "page": "options/options.html", diff --git a/src/content.ts b/src/content.ts index cc2edbc0..a83196fb 100644 --- a/src/content.ts +++ b/src/content.ts @@ -2205,6 +2205,7 @@ function openInfoMenu() { popup.id = "sponsorBlockPopupContainer"; const frame = document.createElement("iframe"); + frame.allow = "clipboard-write"; frame.width = "374"; frame.height = "500"; frame.style.borderRadius = "12px";