일부 특정 URL로 시작하는 모든 URL에 일부 내용을 추가하려고 시도 했습니까? Chrome에서 가능합니까?크롬 확장에서 추가 리스너를 사용하여 http 요청에 콘텐츠 변경/추가
내가 chrome.webRequest.onCompleted
를 사용하려고 만들었는데,이 문서에 아무것도 볼 수없는 당신이 응답을 읽거나 변경할 수 있습니다
http://code.google.com/chrome/extensions/webRequest.html
chrome.webRequest.onCompleted.addListener(function(info) {
if(info.url.indexOf('mypage.com/page') > -1){
//Do Something here to alter the response before its used in Chrome requests
//or displayed
}
},{urls:["<all_urls>"]});
I를하는 일 이 콘텐츠를 변경 하시겠습니까? 탭이나 iframe에 추가하기 전에 더 많은 내용을 추가합니다.
감사합니다.
어쩌면 도움이 될 수 있습니다. http://code.google.com/chrome/extensions/content_scripts.html –
명확한 설명 : 페이지 자체를 변경하거나 (예 : 일부 HTML 추가), URL? – apsillers