Skip to content

A Chrome extension that bridges Aria2 and browser downloading experience with UI powered by AriaNg

License

Notifications You must be signed in to change notification settings

pingshunhuangalex/ariang-for-chrome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AriaNg for Chrome

AriaNg for Chrome Version

Aria2 Version AriaNg Version YAAW for Chrome Version

A Chrome extension that bridges Aria2 and browser downloading experience with UI powered by AriaNg

While this project provides a user-friendly GUI that works seamlessly with the Chrome downloading experience, please note that all credits should go to the contributors from the original repositories (see badges above).

Apart from the features brought by the original programs, this repository introduces only enough changes that glue those awesome tools together so it works as a Chrome extension properly. The extension is shipped in a ready-to-use fashion for consumers who just want things to work without all the hassle.

Inherited from its dependencies, this program comes with no warranty and you should use it at your own risk.

How to use

  • Ensure you have Aria2 installed and configured

  • Download AriaNg-for-Chrome.rar in the latest release and unzip it in the directory of your choice

  • Load the unzipped folder AriaNg-for-Chrome as an unpacked Chrome extention via Chrome menu > More tools > Extensions > Load unpacked, and you are all set

  • [Optional] If you have a secret token for your Aria2 RPC, you may still need to config it after the installation

    • For AriaNg for Chrome Settings, right-click the extension and click Options
      • HTTP with token: http://token:xxxx@localhost:6800/jsonrpc
    • For AriaNg Settings, click into the extension and select AriaNg Settings in the left panel
      • Websocket: ws://localhost:6800/jsonrpc
  • [Optional] If you want to make the most out of the extention for resources from 百度网盘, 阿里云盘, 天翼云盘 and 迅雷云盘, 网盘直链下载助手 is a good addition


Build your own

Advanced users only. If you want to hack the code to add your own twist, please clone / download this repository and continue reading...

Prerequisites

  • Install Chocolatey

  • Install Aria2 and finish all configurations

  • Install Nodist or any Node version manager of your choice

choco install nodist
  • Ensure Nodist is in your system path (C:\Program Files (x86)\Nodist\bin for Windows)

  • Install Node 11 and Node 14

nodist add 11
nodist add 14
  • Set the Node global requirement to the "latest" version installed
nodist latest
  • Install npm that matches with your Node
nodist npm match
  • Install Yarn
npm i -g yarn
  • Install Gulp
choco install gulp-cli
  • [Optional] Update the original repository
rm -rf node_modules/ && rm -rf dist/
git stash && git pull --recurse-submodules && git stash pop
  • Install and build
nodist env 14.17.0
yarn
yarn build
  • [Optional] Update the original repository
rm -rf node_modules/ && rm -rf dist/
git stash && git pull && git stash pop
  • Install and build
nodist env 11.13.0
npm ci
gulp clean build
  • [Optional] If you run into an error complaining about missing npx while running npm ci, just install it globally
npm i -g npx

Assembly

  • Merge all built files in ariang/dist into yaaw-for-chrome/dist/yaaw (index.html should be the only file that needs to be replaced)