chrome extension to communicate between API <-> websocket <-> background <-> tabs <-> content <-> page.
- Open Chrome browser with url
chrome://extensions
. - Activate
Developer mode
--> SelectLOAD UNPACKED
--> Selectbuild
folder. (NOTE! runnpm run build
before) - Open development console --> Reload Page --> Check
lemon ready!
message in console log.
chrome://extensions
-> SelectLemon Chrome Bot
-> Inspect viewsbackground page
.
- TIP: page 의
document.location
를 얻는 방법
// change client-name.
> $LEM.client_name('chrome-bot')
// switch default tab-id as 2 (maybe 2nd tab, find out from console log)
> $LEM.tid(2)
// say `hi~ there`
> $LEM.hi('there')
// evaluate script
> $LEM.eval('document.location')
- 관리 화면을 react로 만듬. 참고 url
# install react tool (one-time)
$ npm install -g create-react-app
# npm (one-time at least)
$ npm install
# bulid.
$ npm run build