Goal
สร้าง browser extensions สำหรับ Chrome, Firefox, Edge และ browsers อื่นๆ ตาม Manifest V3 standard
Scope
ใช้สำหรับการสร้าง extensions ที่ modify web pages, add functionality, integrate กับ web services และ automate browser tasks
Execute
1. Create Project
ใช้ WXT หรือ scaffolding tools
2. Configure Manifest
ตั้งค่า manifest.json ตาม Manifest V3
3. Implement Features
- Background scripts
- Content scripts
- Popup UI
4. Test
Test บน browsers ที่ต้องการ support
Rules
Manifest V3
- ใช้ Manifest V3 standard
- ใช้ service workers แทน background pages
- Configure permissions อย่างเหมาะสม
Security
- ไม่ hardcode API keys
- ใช้ content security policy
- Validate user inputs
Best Practices
- ใช้ TypeScript สำหรับ type safety
- Test บนหลาย browsers
- Follow browser extension guidelines
References
Expected Outcome
- Browser extensions ที่ compatible กับ multiple browsers
- Code ที่ follow Manifest V3 standard
- Security ที่เหมาะสม