create chrome extension inject javascript in url 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"]
}
],