3

As title, how to be able to apply the modifications to another page, different from that of background?

Manifest:

{
    "name": "First Extension",
    "version": "1.0",
    "description": "The first extensione tha I made",
    "permissions":["contextMenus", "tabs", "http://localhost/CreativaIly/*"],
    "background_page": "background_page.html",
    "browser_action":{ 
                        "name": "My First Extension!",
                        "default_icon": "Chrome_icon32bn.png",
                        /*"default_popup": "popup.html",*/
                        "default_title": "My First Extension!"
    },
    "icons": {
                "16": "Chrome_icon19color.png",
                "48": "Chrome_icon32color.png",
                "128": "Chrome_icon.png"
    }
}

Background page:

<!doctype html>
<html>
  <head>
    <title>Background Page</title>
    <script type="text/javascript" src="mootools-core-1.4.2-full-compat.js"></script>
    <script src="script.js" type="text/javascript" ></script>
  </head>
  <body>
  </body>
</html>

1 Answer 1

10

I strongly recommend reading about content scripts and message passing as the solution involves the combination of these 2 techniques.

I could do a quick solution for you using these techniques but you'd probably fall in to a pitfall later on because you didn't study these pages. However, I will give you a basic example flow;

It's a lot simpler than it may first appear.

1
  • Ok, i thought that non there was requests need Ajax, so still i did not read guide's this part. Thanks, I will conduct with it a study.
    – Donovant
    Feb 24, 2012 at 13:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.