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

  • SEARCH
  • Home
  • 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 6183317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:20:42+00:00 2026-05-24T01:20:42+00:00

I have been reading the dev guide but haven’t been able to work out

  • 0

I have been reading the dev guide but haven’t been able to work out how to put my own codes into webpages

I know it is possible because AVG uses it (in it’s link scanner), and FastestChrome extension uses it too (highlight something and a link to a search pops up).

I have a backgrounded page but I can’t get it to effect the webpages I go on (permissions are correct as I can get css to effect)

I am probably missing something really simple :/

  • 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-05-24T01:20:42+00:00Added an answer on May 24, 2026 at 1:20 am

    It’s not intuitively presented in the documentation but your background page can not access the current webpage b/c they are in different contexts. In other words the background page is it’s own separate page so it has no access to any other page’s DOM.

    If you want to affect the page the user is viewing in the browser you will need to use what is referred to as a “content script”.

    If you want to communicate between content scripts and the background page you will need to refer to the message passing API. Check out my extension’s source code for reference. I do exactly that.

    Just remember…

    Background Page: used for general logic in your extension, not anything page specific.

    Content Scripts: are loaded into every page the user sees, and can manipulate that specific page.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been reading up on multiple PHP frameworks, especially the Zend Framework but
I have been reading over a lot of questions, but cant seem to find
I have been reading so many topics here about this, but I could not
I have been reading the doc and searching but cannot seem to find a
I have been reading the programming guide for CUDA and OpenCL, and I cannot
I have been reading about out of memory conditions on Linux, and the following
I have been hearing and reading about Agile for years. I own a book
I have been reading the Phing documentation and it makes sense, but I'm not
I have been reading the AVFoundation docs and I have just not been able
I have been reading about /dev/urandom , and as far as I can tell,

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.