Extensions | Chrome for Developers
- 웹 애플리케이션을 만드는 데 사용되는 것과 동일한 웹 기술을 사용해 확장 프로그램 빌드 가능.
용어
- 매니페스트
manifest.json
이름의 파일이 프로젝트 루트 경로에 필수로 있어야 됨.
- 중요한 메타데이터 기록, 리소스 정의, 권한 선언, 백그라운드와 페이지에서 실행할 파일 식별.
- 서비스 워커
- 백그라운드에서 실행되는 이벤트 기반 스크립트.
- 북마크 삭제 또는 탭 닫기 같은 브라우저 이벤트 처리.
- DOM에 액세스 할 수는 없음.
- 콘텐츠 스크립트
- 웹페이지 컨텍스트에서 JS 실행.
- 표준 DOM을 사용해 방문한 웹 페이지 세부 정보를 읽고, 변경하고, 정보를 상위 확장 프로그램에 전달 가능.
- 툴바 작업
- 확장프로그램 툴바 아이콘을 클릭할 때 코드를 실행하거나 Action API를 사용해 팝업 표시.
- DeclarativeNetRequest
- 네트워크 요청을 가로채거나, 차단하거나, 수정함.
기능
chrome.notification
API를 사용해 알림 표시
chrome.commands
API를 사용해 확장 프로그램에서 작업을 트리거하는 단축키 추가 → 단어 블록 잡고 검색하는거 트리거?
chrome.identity
API로 OAuth 2.0 액세스 토큰 가져옴.
확장 프로그램 / 시작하기 | Get started | Chrome for Developers
익스텐션 - Layer on top of web