you can use chrome.tabs.executeScript instead

On Dec 23, 11:22 pm, "Sree ..." <gattasrika...@gmail.com> wrote:
> Hi Is it a special case or am I doing something wrong. Am trying to run a
> javascript code when any details page of an extension is opened. 
> [Say:https://chrome.google.com/extensions/detail/cmpagbnjdfkpjchmabmihonoi...
>  ]
>
> So my manifest file is something like below...
>
> {
>   "name": "Example",
>   "version": "1.0",
>   "content_scripts": [
>   {
>     "matches": ["https://chrome.google.com/extensions/detail/*";],
>     "js": ["js.js"]
>   }
> ],
>
>   "description": "Example",
>   "permissions": [
>     "https://www.google.com/";
>   ]
>
> }
>
> In js.js I wrote a simple statement as alert('test');
>
> But whenever I load any extension's details page this alert is not fired.
> Works with all other pages, ie if I say matches as  "matches": 
> ["http://code.google.com/chrome/extensions/*";], then this alert fires
> properly.
>
> Is this a limitation? or am I doing anything wrong
>
> --
> -Thanks
> -Srikanth.G
> -Google India Ltd
> -Hyderabad

--

You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to chromium-extensi...@googlegroups.com.
To unsubscribe from this group, send email to 
chromium-extensions+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=en.


Reply via email to