amir1376 / ab-download-manager

A Download Manager that speeds up your downloads
https://abdownloadmanager.com
Apache License 2.0
3.32k stars 163 forks source link

[Feature] Add browser extension to automatically start downloading main program. #81

Open KrxkGit opened 2 months ago

KrxkGit commented 2 months ago

At present, if the main program is not started, you will not be able to call the download through the browser extension.

Can you consider adding the following functions : When the download main program is not started, you can start the download main program through the browser extension.

The following is one of the implementations I know:

The following Example is the browser starting VSCode:

register.reg

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\CodeWebshell]
@="URL:CodeWebshell Protocol Handler"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\CodeWebshell\DefaultIcon]
@="D:\\soft\\Microsoft VS Code\\Code.exe"

[HKEY_CLASSES_ROOT\CodeWebshell\shell]
[HKEY_CLASSES_ROOT\CodeWebshell\shell\open]
[HKEY_CLASSES_ROOT\CodeWebshell\shell\open\command]
@="VSCode Location"

test.html

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Test</title>
</head>
<body>
  <a href="CodeWebshell:\">Startup</a>
</body>
</html>
amir1376 commented 2 months ago

@KrxkGit Hi there. Thank you for suggesting this.

I was planned to use browser native messaging for this purpose. ( some of its implementation is already in the source code )

But I will check and compare the custom protocol capabilities with the native messaging. maybe we can use a combination of both in the app.