Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9245095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:11:19+00:00 2026-06-18T09:11:19+00:00

How can we inject our scripts to tabs that existed before our add-on was

  • 0

How can we inject our scripts to tabs that existed before our add-on was installed?

We would like to inject our scripts to all open tabs once the user install our add-on and without refreshing the pages.

Any idea how this can be done?

At the moment, we inject scripts to new tabs that the user open after our add-on is installed this way:

pageMod.PageMod({
    include: "*",
    contentScriptFile: [self.data.url("js/jquery-1.8.1.min.js"), self.data.url("content.js")],
    onAttach: function (worker) {

        worker.port.on('settings', function () {
            log('settings: get');
            var settings = {
              user: storage.user
            };

            worker.port.emit("settings", settings);
        });   
    }
});

btw, we use firefox add-on sdk 1.12

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T09:11:20+00:00Added an answer on June 18, 2026 at 9:11 am

    Just add the option

    attachTo: ["existing"]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wonder, if I can inject a list of (stateless) beans, that all implementing
I like to inject DLLs to processes, because I can change certain values of
We have a web application that uses C3P0 to pool our connections. We inject
Is there any way we can inject new methods and properties into classes during
I have a Spring Project with Wicket. I can successfully inject Services in Wicket
I can't seem to figure out how to inject a disabled element. Any help
Can anyone explain this to me. I'm trying to inject a CSS file onto
When using Ninjects ConstructorArgument you can specify the exact value to inject to specific
In our Smartclient app we currently use PostSharp to inject get/set code into auto
I have noticed from several web pages that apparently Spring 3.0 supports @Inject from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.