CONTRIBUTING.md
May 27, 2026 ยท View on GitHub
Reporting bugs and suggestions
- Make sure both your browser and StyleChan are up to date.
- Disable your other extensions & scripts to identify conflicts.
- If your issue persists, open a new issue with the following information:
- Precise steps to reproduce the problem, with the expected and actual results.
- Console errors, if any.
- Browser version.
Open your console with:
Ctrl + Shift + Jon Chrome.Ctrl + Shift + Kon Firefox.
Development & Contribution
Get started
- Install node.js.
- Install Grunt's CLI with
npm install -g grunt-cli. - Clone StyleChan.
cdinto it.- Install/Update StyleChan dependencies with
npm install.
Build
- Build with
grunt.
Lint
StyleChan uses ESLint with the flat config format (eslint.config.mjs).
Command line:
npm install eslint --save-dev # install ESlint
npx eslint --init # generate a config file
After that:
npm run lint # check src/ for errors
npx eslint src/ # same, without the npm script
VSCode integration:
Install the ESLint extension
Config notes:
src/meta/andsrc/style.jsare excluded- These contain grunt template syntax (
<%= %>) that ESLint cannot parse
- These contain grunt template syntax (
- Custom globals (
$,$lib,$SS,$docBody,$docHead,TCaptcha) are declared
Fix common issues:
npx eslint src/ --fix # auto-fix formatting issues only
Release
- Update the version with
grunt patch,grunt minororgrunt major. - Release with
grunt release.
Note: this is only used to release new StyleChan versions, and is not needed or wanted in pull requests.
Contribute
- Edit the sources.
- Open a pull request to merge branch.