Categories

Developer

z.l

Aria2 Integration Extension v0.5.2

  • rating
  • rating
  • rating
  • rating
  • rating
5.00 (17 reviews)
Replace built-in download manager with Aria2.

Please Properly setup Aria2 before using this extension.

Features

  • Replace browser default download manager with Aria2
  • Add, start, pause and stop jobs in extension tab
  • Trigger download with right click context menu
  • Allow more operations with integrated AriaNg
  • Custom configuration allows instance other than default aria2 domains & ports
  • Third party scripts support, allow user to add scripts using integrated editor. (Removed after 0.5.0, see below)

Code example

This feature is removed after 0.5.0 due to manifest 3 does not allow arbitrary code execution per guideline - https://developer.chrome.com/docs/extensions/develop/migrate/improve-security. Please use 0.4.x if you need this feature.


(async function (url) {
   'use strict';

  const res = await fetch(url);
  if (res.ok) {
    const data = await res.text();
    const parser = new DOMParser();
    const doc = parser.parseFromString(data, "text/html");
    const matches = doc.querySelector("<SOME-QUERY-SELECTOR>");
    return matches.src;
  }
  throw res.statusText;
})();


Todo
  • Allow multiple Aria2 instances, currently only support one instance.
  • Background job monitor.

Submit Issues
Please submit issues if you encounter any problems here (https://github.com/zluo01/aria2-extension/issues)

Reference
  • https://github.com/aria2/aria2
  • https://github.com/mayswind/AriaNg
  • https://github.com/sonnyp/aria2.js/
  • https://github.com/RossWang/Aria2-Integration