Add no workey extension

This commit is contained in:
PhatPhuckDave
2024-07-21 18:56:08 +02:00
parent c95613e240
commit 7cf0cf5033
3 changed files with 64 additions and 0 deletions

10
extension/background.js Normal file
View File

@@ -0,0 +1,10 @@
browser.menus.create({
id: "youtube-download",
title: "Download",
contexts: ["all"],
documentUrlPatterns: ["*://*.youtube.com/*"],
});
browser.menus.onShown.addListener((info, tab) => {
browser.tabs.sendMessage(tab.id, { action: "check-element", info: info });
});