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 8799517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:20:43+00:00 2026-06-14T00:20:43+00:00

Site structure: Site1 -dynamic iframe (using document.write) –iframe src=site2 I want to change the

  • 0

Site structure:

Site1
-dynamic iframe (using document.write)
--iframe src="site2"

I want to change the content of site2 with my chrome extension.

Using a content script that walks the iframes from site1 will not work. Soon as it gets to site2 chrome gets anal about security and no way to make an exception through manifest setting. Manifest file:

"content_scripts": [
    {
        "matches": ["http://site1/*"],
        "js": ["script.js"],
    }
],
"permissions": [
    "tabs"
],

So i tried to get the script to run on site2 directly like so (manifest file):

"content_scripts": [
    {
        "matches": ["http://site2/*"],
        "js": ["script.js"],
    }
],
"permissions": [
    "tabs"
],

It didn’t work. Doesn’t seem to work when site2 is within an iframe of another site.

Here is the test script i used:

function check_player() {
    //var player = document.getElementById("player");
    var player = self.document.getElementById("player");
    if (player) {
        console.log(player);
    } else {
        setTimeout("check_player()", 100);
    }
}
check_player();

So what am i supposed to do ?
Do you have any suggestions ?

  • 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-14T00:20:44+00:00Added an answer on June 14, 2026 at 12:20 am

    You need to specify all_frames: true for you content script on the manifest. That way it will run your script in all iframes with a matching url. See http://developer.chrome.com/extensions/content_scripts.html

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

Sidebar

Related Questions

i just want to know about the files and folder structure for a site
i have this site structure: First page: <script src=../jquery.uniform.min.js type=text/javascript charset=utf-8></script> <script type=text/javascript charset=utf-8>
I currently have a broken site structure that needs repair and I want to
I want to be able to reorganize my ASP.NET MVC site structure to more
I have a very dynamic (social networking) site running smarty that I want to
My boss wants to change our dynamic web site into static one, in order
I am going to build a site that have dynamic content (properties as title,
I have following site structure <div id=movies> <a href=> <div>content</div> </a> <a href=> <div>content</div>
I am using CodeIgniter 2.1.1 my site structure is like mysite/ application/ controllers/ backend/
I have many static images under a directory in my site structure, and I'm

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.