Toplu indirme ve Eklenti Güncellemesi
This commit is contained in:
BIN
browser-extension/128x128.png
Normal file
BIN
browser-extension/128x128.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
BIN
browser-extension/16x16.png
Normal file
BIN
browser-extension/16x16.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.2 KiB |
BIN
browser-extension/48x48.png
Normal file
BIN
browser-extension/48x48.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.1 KiB |
@@ -1,11 +1,5 @@
|
||||
const NATIVE_HOST = "com.downloadmanager.bridge";
|
||||
|
||||
const interceptExtensions = [
|
||||
"exe","msi","zip","rar","7z","tar","gz","iso",
|
||||
"mp4","mkv","avi","mp3","flac","wav",
|
||||
"pdf","docx","xlsx","pptx"
|
||||
];
|
||||
|
||||
chrome.runtime.onInstalled.addListener(() => {
|
||||
chrome.contextMenus.create({
|
||||
id: "dm-download-link",
|
||||
@@ -21,9 +15,6 @@ chrome.runtime.onInstalled.addListener(() => {
|
||||
});
|
||||
|
||||
chrome.downloads.onCreated.addListener((item) => {
|
||||
const ext = item.filename?.split(".").pop()?.toLowerCase() ?? "";
|
||||
if (!interceptExtensions.includes(ext)) return;
|
||||
|
||||
chrome.downloads.cancel(item.id, () => {
|
||||
console.log("İndirme yakalandı, bridge'e gönderiliyor:", item.url);
|
||||
chrome.runtime.sendNativeMessage(NATIVE_HOST, {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"manifest_version": 3,
|
||||
"name": "hOLOlu Download Manager",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.2",
|
||||
"description": "Bağlantıları hDM ile indir ve sayfaları incele",
|
||||
"permissions": ["downloads", "contextMenus", "storage", "nativeMessaging"],
|
||||
"host_permissions": ["<all_urls>"],
|
||||
|
||||
Reference in New Issue
Block a user