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

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

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

View File

@@ -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>"],