In my previous post, I have demonstrated how to use aria2 as the main downloader on Unix/Linux (Aria2 as Default Download Manager on Unix/Linux). However, there is still one thing missing. That is browser integration. Luckily, Conkeror allow me to customize it very easily through the init file. To achieve, you need to modify the content_handler_prompt function in content-handler.js file. Add this to your .conkerorrc file for it to overwrite the conkeror’s built in one (sadly, I haven’t found any better solution).

In the function above, I have modified it to add one more option (press a) for calling to content_handler_add_to_aria2 function when the download happens. Because of that, we need to define the content_handler_add_to_aria2 for sending download request to aria2.

This function send a JSON request to aria2 RPC listening on port 6800 (aria2’s default port) so that you need to start aria2 RPC before. Please refer to my previous post (Aria2 as Default Download Manager on Unix/Linux) for instruction on how to start aria2 RPC daemon.

Now open any link that download a file, press a when it prompt for an option and then the download is sent to aria2 automatically.