-
content script 에서 iframe 안의 내용을 접근하기chrome extension 2022. 12. 12. 23:10
iframe 안의 contents 에 접근하기 위해서는 아래처럼 all_frames 를 manifest.json 파일에 설정해 줘야 한다.
{ "content_scripts": [ { "matches": [ "http://my.site.com/*" ], "css": [ "css/active-tab.css", "css/bootstrap.min.css" ], "js": [ "scripts/common.js", ], "all_frames": true } ] }
'chrome extension' 카테고리의 다른 글
background.js 에서 third-party libaray 사용하기(in Manifest V3) (0) 2023.02.25 새탭을 만든 후 동적 HTML 로 내용 채우기 (0) 2022.12.12 CORS 우회 하기 (0) 2022.12.12