Chrome Extension, TypeScript and Visual Studio Code
- node + npm (Current Version)
- TypeScript
- Webpack
- React
- Jest
- Example Code
- Chrome Storage
- Options Version 2
- content script
- count up badge number
- background
- src/typescript: TypeScript source files
- src/assets: static files
- dist: Chrome Extension directory
- dist/js: Generated JavaScript files
npm install
...
npm run build
npm run watch
Run watch mode.
type Ctrl + Shift + B
Load dist directory
npx jest or npm run test
Samples:
// const ids = [ // "#diff-197ff6008249a9b844974e0f7df4dfba518c23a91fa56390a421e1bb958bdfd9R84", // "#diff-481ee07767a8e8d6e1faca2a9d51f591db194947b2ef53860e97c6bd97eae5a6R57", // "#diff-da6498268e99511d9ba0df3c13e439d10556a812881c9d03955b2ef7c6c1c655R5" // ];