Chrome extension Page Action JS

Posted by Radek Šimko on Stack Overflow See other posts from Stack Overflow or by Radek Šimko
Published on 2010-06-14T06:35:08Z Indexed on 2010/06/14 6:42 UTC
Read the original article Hit count: 286

I'm trying to create an extension using this docs: http://code.google.com/chrome/extensions/content_scripts.html

I want a part of JS code to run when document is ready (loaded).

This is my manifest.json:

{
    "name": "OwnExtension",
    "version": "0.1",
    "content_scripts": [
    {
        "matches": ["https://my.site.eu/*"],
        "css": ["styles.css"],
        "js": ["main.js"]
    }
    ]
}

This is my main.js:

alert(10);

Am I doing sth wrong, that nothing happend when page https://my.site.eu/ loaded in browser?

© Stack Overflow or respective owner

Related posts about google-chrome

Related posts about chrome