Repository navigation
feat: 크롬 확장 MVP (우클릭 메뉴·툴바 아이콘으로 동네 도서관에서 찾기) - #91
Merged
Merged
Conversation
웹에서 본 책 제목을 드래그해 /?title=…&ref=ext 를 새 탭으로 연다. 도서관은 넣지 않아 사이트가 내 도서관에서 찾고, GA 에서는 entry_ref=ext 로 구분된다. - extension/: Manifest V3, 빌드 없는 순수 JS - 우클릭 메뉴(contextMenus)와 툴바 아이콘(activeTab·scripting, 누를 때만 선택 텍스트 읽기) - 검색 주소 만들기를 searchUrl.js 로 분리하고 node 테스트에 포함 - 아이콘은 사이트 로고의 책 더미를 잘라 16·32·48·128px 로 만듦 - 설치 방법(압축해제된 확장 프로그램 로드)은 extension/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
요약
성장 로드맵 1단계(유입 경로)의 마지막 항목입니다. 웹에서 본 책 제목을 드래그해 우클릭 메뉴나 툴바 아이콘으로
/?title=…&ref=ext를 새 탭으로 엽니다. 도서관은 넣지 않으므로 사이트가 내 도서관에서 찾고(#84), GA 에서는entry_ref=ext로 구분됩니다(#82, #87).변경
extension/manifest.json: Manifest V3. 권한은contextMenus,activeTab,scripting만.extension/background.js: 우클릭 메뉴📚 동네 도서관에서 "…" 찾기, 툴바 아이콘(누를 때만 선택 텍스트를 읽고, 선택이 없거나 chrome:// 같은 페이지면 사이트만 엶). 새 탭은 현재 탭 바로 옆에 엽니다.extension/searchUrl.js: 검색 주소 만들기 (공백 정리, 100자 제한). 테스트를vitest.config.node.ts에 포함.extension/icons/: 사이트 로고의 책 더미를 잘라 만든 16·32·48·128px.extension/README.md와 README 에 설치 방법(압축해제된 확장 프로그램 로드).Test Plan
npm run typecheck통과,npm test32 + 232개 통과 (새 테스트 4개),npm run build통과chrome://extensions→ 개발자 모드 → 압축해제된 확장 프로그램 로드 →extension/page_view·search, 하루 뒤entry_ref=ext