Moodle Downloader Extension
Moodle downloader extension for Chrome. The extension is tested with both the TUM moodle and the official moodle demo.
Notice: This repository is under active development. Please submit an issue if you found any bugs or have feature requests.
If you like the tool, please star this repository and share it with your friends. :)
Installation
Chrome Extension Store
Install from the Visit the Moodle Downloader Extension in the Chrome Extension Store.
Install from the zip file
- Download the extension on the latest release page.
- Unzip the
zip
file to a folder. - Open Chrome and go to
chrome://extensions/
. - Click on
Load unpacked
and select the folder fromstep 2
. - Done. You can now find the extension in the list.
Usage
- Navigate to one of the following pages:
- Course view:
https://.../course/view.php?id=...
- Download all the resources of a course.
- Resource view:
https://.../course/resources.php?id=...
- Download all the resources of a course.
- Folder view:
https://.../mod/folder/view.php?id=...
- Download all the resources in a folder.
- Pluginfile:
https://.../pluginfile.php/.../mod_resource/content/.../...
- Download the opened file.
- Course view:
- Click on the extension.
- Click on
Download
button and wait for the download to complete. It may take a while depending on the network condition. You can close the extension or view other tabs. The file will be saved once the download has been completed.
Development
This monorepo is managed using turborepo
. It contains two packages @moodle-dl-ext/popup
and @moodle-dl-ext/content-script
.
@moodle-dl-ext/popup
This package is built for the popup page using React
and typescript
. The manifest.json
and other static resources can be found in packages/popup/public
.
@moodle-dl-ext/content-script
This package is built for the content script and packaged using Webpack
and typescript
.
How to build
- Clone or download the repository.
- Install
yarn
.- Run
npm install -g yarn
to installyarn
. - Run
yarn set version berry
to enable the modernyarn
.
- Run
- Run
yarn install
to install dependencies. - Generate the extension using
yarn package
. - Import the extension using the generated folder
output
.