Toplu indirme ve Eklenti Güncellemesi

This commit is contained in:
hOLOlu
2026-05-09 11:33:53 +03:00
parent 729879c693
commit 75bd47c052
349 changed files with 5292 additions and 401 deletions

View File

@@ -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, {