Add no workey extension
This commit is contained in:
10
extension/background.js
Normal file
10
extension/background.js
Normal 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 });
|
||||
});
|
||||
Reference in New Issue
Block a user