2012-06-20 3 views

답변

2

Chrome 확장 프로그램을 통해서만 자바 스크립트와 CSS를 삽입 할 수 있습니다.

{ 
     "name": "Website addon", 
     "version": "1.0", 
     "manifest_version": 1, 
     "description": "Addon for your website", 
     "content_scripts": [ 
      { 
      "matches": ["*://yourWebsite.com/*", "*://*.yourWebsite.com/*"], 
      "js": ["yourJS.js"] 
      "css": ["yourCSS.css"] 
      } 
     ] 
    } 

이 여기

yourWebsite.com

에 모든 웹 사이트에 yourJS.js 및 yourCSS.css을 추가 할 수있는 링크가 있습니다 : 당신의 manifest.json 이런 식으로 뭔가를 보일 것 CSS 스크립트를 삽입하거나하려면 Google에서 제공하는 자습서 : http://code.google.com/chrome/extensions/content_scripts.html

관련 문제