简体中文 | 繁體中文 | 日本語 | 한국어 | Русский
Thank you for your interest in contributing to PixTab! We welcome bug reports, feature requests, code improvements, and translations.
- Node.js: v18+ (v20 recommended)
- Git: For version control
- Browsers: Chrome, Edge, or Firefox (recent versions)
# Clone the repository
git clone https://github.com/cloud-oc/PixTab.git
cd PixTabChrome/Edge:
- Open
chrome://extensions. - Enable Developer mode (top right).
- Click Load unpacked and select the root directory of this project.
- Open a new tab to see PixTab in action.
Firefox:
- Open
about:debugging#/runtime/this-firefox. - Click Load Temporary Add-on....
- Select the
manifest.jsonfile in the project root.
manifest.json: Extension entry point.src/: Source code.newtab/: Logic for the new tab page.options/: Logic for the settings panel.background/: Service worker for background tasks.shared/: Utilities and shared logic.
_locales/: Localization strings.build/: Build and packaging scripts.
To package the extension for the Web Store or Firefox AMO:
# Windows
.\build\build.bat
# macOS/Linux
chmod +x build/build.sh
./build/build.shThe output will be generated in the dist/ directory (ignored by Git).
Localization files are located in _locales/{lang}/messages.json.
- Create a new folder in
_locales/using the ISO language code (e.g.,esfor Spanish). - Copy
_locales/en/messages.jsonto your new folder. - Translate only the
"message"values. Do not change the key names. - Test the extension by changing your browser's language.
- Branching: Create a descriptive branch:
git checkout -b feature/cool-feature. - Testing: Ensure changes work in both Chrome-based browsers and Firefox.
- Committing: Use clear commit messages:
git commit -m "Brief description of change". - Pull Request: Submit your PR with a clear description of the problem solved or feature added.
Questions? Feel free to open an issue. Thank you for making PixTab better!