Skip to content

amkhrjee/fontonic

Repository files navigation

Effortlessly change the web's typography!

Fontonic - Customize fonts of any website with any fonts you like! | Product Hunt

Chrome Web Store Users Mozilla Add-on Users Mozilla Add-on Users

Setup

Run the TypeScript comiler to generate the JavaScript files required in the manifest.json:

tsc --watch -p tsconfig.json

Fontonic uses Prettier for code formatting. Thus, it is recommended to have the Prettier VS Code extension installed. Maintain the tabWidth: 4 as configured in .pretttierc.

Building for publishing

The Chrome Web Store requires you to package your extension as ZIP to submit for review. Unnecessary directories like node_modules and ts should be excluded to reduce the size footprint of the extension. The build.py automates this process.

python build.py <version_string>

This saves the ZIP file to the build directory (create the directory if not already there).

Source code for the Firefox Add-On

💻 Firefox Desktop: https://github.com/amkhrjee/fontonic-firefox

📱 Firefox Android: https://github.com/amkhrjee/fontonic-firefox-android