X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fchrome%2Fcommon%2Fextensions%2Fdocs%2Ftemplates%2Farticles%2Fcontent_scripts.html;h=cd6eb48537579051a068ce3a7c77f3874be2eb46;hb=4a1a0bdd01eef90b0826a0e761d3379d3715c10f;hp=eca015edee7e9ed576ef9c6f1aef0da8026f70f7;hpb=b1be5ca53587d23e7aeb77b26861fdc0a181ffd8;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/chrome/common/extensions/docs/templates/articles/content_scripts.html b/src/chrome/common/extensions/docs/templates/articles/content_scripts.html index eca015e..cd6eb48 100644 --- a/src/chrome/common/extensions/docs/templates/articles/content_scripts.html +++ b/src/chrome/common/extensions/docs/templates/articles/content_scripts.html @@ -27,9 +27,20 @@ They cannot:
chrome.extension
)
+ Use chrome.* APIs, with the exception of:
+ matches
exclude_matches
match_about_blank
false
.css
js
window.onload
event, because they may run after it has
already fired. In most cases, listening for the onload
event is unnecessary for content scripts running at "document_idle" because they are guaranteed to run after the DOM is complete. If your script definitely needs to run after window.onload
, you can check if onload
has already fired by using the document.readyState
property.all_frames
false
, meaning that only the top frame is matched.include_globs
matches
to include only those URLs that also match this glob. Intended to emulate the @include
Greasemonkey keyword.
See Match patterns and globs below for more details.exclude_globs