A browser extension to enhance the browser's default media viewer.
To try it out (when installed), open a media file (image / video / audio) in a new tab.
The following platforms are supported (for each the latest browser version):
./build.py [platform(s)] [-meta] [-min] [-pack] [-all] [-version=x.x.x]
All arguments are optional. The output and temporary files go into the build
directory.
Without arguments the script will generate the necessary files for each non-disabled platform.
Additional information for specific platforms can be found in their directories.
platf1 platf2...
list of platforms (directory names under platform/
) if building for all platforms is not desired
-meta
generates only meta-data (localization, manifest files)
-pack
creates installable/distributable packages (with -meta
it will also generate meta files for updating)
-min
compress source files (JS, HTML, CSS) (Java is required)
-all
build disabled platforms as well (if it's not listed as a platform already)
-version=x.x.x
custom version string, current date-time (YYYY.MMDD.HHII) if not set
Examples:
# Prepare directories for non-disabled platforms
./build.py
# Prepare directories for Firefox (XUL) and Opera (Presto)
./build.py xpi oex
# Prepare directories and package them for every platform (including disabled)
./build.py -pack -all
# Prepare, minify, and package for Chromium
./build.py crx -min -pack
# Generate meta-data for Maxthon and Safari
./build.py -meta mxaddon safariextz
eslint
, don't diverge too much from the main goal; viewing enhancements.
The code must work on all supported platforms, except if the browser's extension API doesn't provide appropriate functionality, then fail silently.