From 1527cd86e885d3f9d9b8dccb20e91cf999a62544 Mon Sep 17 00:00:00 2001 From: Shrey Marwaha Date: Wed, 17 Dec 2025 21:28:37 +0530 Subject: [PATCH 1/2] 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 6c8c99f8d..7f138b923 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 cc2edbc0f..a83196fb1 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"; From 97cd11f50da08630c6dc83acf57e3b3e0146b43c Mon Sep 17 00:00:00 2001 From: Shrey Marwaha Date: Thu, 18 Dec 2025 10:51:17 +0530 Subject: [PATCH 2/2] Remove clipboardWrite permission from manifest The clipboardWrite permission was removed from the manifest.json file, likely to reduce unnecessary permissions and improve security. --- manifest/manifest.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/manifest/manifest.json b/manifest/manifest.json index 7f138b923..6c8c99f8d 100644 --- a/manifest/manifest.json +++ b/manifest/manifest.json @@ -17,8 +17,7 @@ "permissions": [ "storage", "scripting", - "unlimitedStorage", - "clipboardWrite" + "unlimitedStorage" ], "options_ui": { "page": "options/options.html",