This extension uses no build process. All source code is unminified and ready to use directly.
The only minified file is:
lib/dompurify.min.js
)
# Install web-ext (optional, for testing)
npm install -g web-ext
# Run in Firefox
web-ext run --source-dir .
# Simply zip the following directories and files:
# - assets/
# - background/
# - content/
# - lib/
# - popup/
# - manifest.json
# - onboarding.html
# On Windows PowerShell:
Compress-Archive -Path assets,background,content,lib,popup,manifest.json,onboarding.html -DestinationPath anchored-firefox.zip
# On Linux/Mac:
zip -r anchored-firefox.zip assets background content lib popup manifest.json onboarding.html
extension-firefox/
├── assets/ # Icons and images (unmodified)
├── background/ # Background scripts (unminified)
├── content/ # Content scripts (unminified)
├── lib/ # Libraries including DOMPurify
├── popup/ # Popup UI and modules (unminified)
├── manifest.json # Extension manifest
└── onboarding.html # Onboarding page
All JavaScript files except lib/dompurify.min.js
are human-readable source code.
You can verify DOMPurify by comparing the SHA-256 hash with the official release.