This repo contains some experiment result of "Which characters are illegal in downloads.download API" which are used by the extension "Image Picka".
- Install node.js.
- In the project root, run
npm install
. - run
npm run build
to build the extension. - Create
config.mjs
. - Run
npm start
to start the test. - The extension will test ASCII characters from 0~127 for all targets.
- When a test ends i.e. after testing all 127 chars, the script should close the browser automatically. However, there is a bug preventing Firefox from closing, you may have to close it manually.
- The result will be saved in
report.md
.
This file should be placed in the project root. Example:
// The download folder. The script uses this folder to generate relative path.
export const downloadFolder = String.raw`C:\Users\eight04\Downloads`;
// An array of objects. Each object should have a `name` property. Other properties will be sent to web-ext runner:
// https://github.com/mozilla/web-ext/blob/a81ddc1c4fb09152ee4efd059643a2312d16e966/src/cmd/run.js#L20
// Usually, you only need to specify `target`, `firefox`, or `chromiumBinary` properties.
export const targets = [
{
name: "Firefox 126 + Windows 10",
target: "firefox-desktop",
firefox: String.raw`D:\Program Files\FirefoxPortable126\App\Firefox64\firefox.exe`,
},
{
name: "Firefox Nightly 129 + Windows 10",
target: "firefox-desktop",
firefox: String.raw`C:\Program Files\Firefox Nightly\firefox.exe`
},
{
name: "Edge 126 + Windows 10",
target: "chromium",
chromiumBinary: String.raw`C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe`
}
];
See report.md.