rhadamanthe / host-grabber-pp

A web extension, originally designed for Firefox, to find and download media files from various hosts.
MIT License
16 stars 6 forks source link
bulk-download firefox firefox-webextension web-extension

Host Grabber ++

[License]() Build Status Web site
Join the chat at https://gitter.im/host-grabber-pp/Lobby Download on Mozilla's web site   Firefox Chrome

A web extension that allows to find and download media files from various hosts.
It was originally designed for Mozilla Firefox but might be adapted to other web browsers.

It works like the former Image Host Grabber extension, but unlike it, it is not restricted to downloading images.

Notices:

  • IHG's catalog is not compatible with this extension.
  • The list of hosts is different.
  • The current list is not guaranteed to be up-to-date. Feel free to contribute.

Roadmap

Short-term

Development

Source code is available on Github.
Test assertions are written with expect.js.
To test and debug it live, use...

CLI options:

# Install dependencies
npm install

# Execute tests on both Chrome and Firefox
npm test

# Execute tests for Firefox only
npm run test-firefox

# Execute tests for Chrome only
npm run test-chrome

# Verifying linting
npm run lint

# Package the extension to submit it to addons.mozilla.org
npm run build

Testing in Firefox

Testing in a separate browser:

Testing in your usual browser:

Debugging the extension:

Testing in Chrome / Chromium

Testing in your usual browser:

You can debug it by clicking Inspect views: background page.

Testing the Documentation

cd docs/
docker run --rm --label=jekyll --volume=$(pwd):/srv/jekyll -it -p 4000:4000 jekyll/jekyll jekyll serve

Notice that the startup takes a little time.

Source Code Organization

This project is a web extension, originally created for Mozilla Firefox.
However, it should be possible to adapt it for other web browsers. The source code organization may help for this.