백그라운드 스크립트에서 DOM html 페이지를 어떻게 수정합니까? 확장 페이지의 루트 폴더에 html 페이지가 있습니다. 내 확장에서 "//hffffemnacblbojccelnkhnafndfkhgc/block.html 크롬 확장"백그라운드 자바 스크립트에서 html 페이지의 DOM 수정
파일 트리 : 다음 페이지가 열릴 때 URL은 모습입니다
css/
bootstrap-theme.css
bootstrap-theme.css.map
bootstrap-theme.min.css
bootstrap.css
bootstrap.css.map
bootstrap.min.css
popup.css
fonts/
img/
128-128.png
1413232635_virus detected 2.png
16-16.png
48-48.png
js/
block.js
bootstrap.js
bootstrap.min.js
event.js
jquery-1.11.1.js
jquery.cookie.js
block.html
manifest.json
popup.html
manifest.json을
{
"manifest_version": 2,
"name": "Viper Security ATD",
"version": "1.0",
"description": "Viper Security Advance Threat Defence.",
"icons": {
"48": "img/48-48.png",
"128": "img/128-128.png"
},
"browser_action": {
"default_icon": "img/16-16.png",
"default_title": "Viper Security Advance Threat Defence",
"default_popup": "popup.html"
},
"background": {
"scripts": ["js/jquery-1.11.1.js","js/event.js"],
"persistent": true
},
"permissions": [
"<all_urls>",
"tabs",
"webNavigation"
]
}
질문을 분명하게 보이게하십시오. 어떻게 하시겠습니까? 확장 폴더의 페이지를 어디에 넣으시겠습니까? –
배경 자바 스크립트에서 내 확장의 HTML 페이지의 DOM을 수정하고 싶습니다. 페이지가 내 확장 프로그램의 루트에 있습니다. 페이지 URL은 다음과 같습니다. chrome-extension : //hffffemnacblbojccelnkhnafndfkhgc/block.html – Touhid