chrome extension get document from content script code example
Example: google chrome extensions content scripts matches
in your manifest.json:
"content_scripts": [
{
"matches": ["http://*.nytimes.com/*"],
"css": ["myStyles.css"],
"js": ["contentScript.js"]
}
],