본문 바로가기
etc/프로그래밍

Chrome Extension - Inject with static declarations

by 칸타렌서 2021. 9. 27.

특정 페이지 접근시 자동으로 실행

Automatically run when accessing a specific page.

{ 
"name": "AAA", 
... 
"content_scripts": [ 
{ 
"matches": ["http://*.nytimes.com/*"], 
"css": ["myStyles.css"], 
"js": ["contentScript.js"] 
} 
], 
... 
}

https://developer.chrome.com/docs/extensions/mv3/content_scripts/

 

Content scripts - Chrome Developers

An explanation of content scripts and how to use them in your Chrome Extension.

developer.chrome.com

 

댓글