Support for content scripts
Unlike the other chrome.* APIs,
parts of chrome.extension
can be used by content scripts:
-
$ref:runtime.sendMessage and
$ref:runtime.onMessage
-
Simple communication with extension pages
-
$ref:runtime.connect and
$ref:runtime.onConnect
-
Extended communication with extension pages
-
$ref:extension.getURL
-
Access to extension resources such as image files
For details, see
Content Scripts.