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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:52:13+00:00 2026-05-22T22:52:13+00:00

I am trying to build my first chrome extension, I have a problem where

  • 0

I am trying to build my first chrome extension, I have a problem where only first content script is being loaded. This is what I have defined in manifest.json

 "content_scripts": [
    {
        "matches": ["http://www.facebook.com/connect/login_success.html*"],
        "js": ["prototype.js", "intercept.js"]
    }]
}

When I see the scripts loaded on this page,

http://www.facebook.com/connect/login_success.html#access_token=207C2.AQA7ebNZjXPXR8qe.3600.1307120400.1-522955158%7CCqISyuCN9QDzzIeG4rYIKW4sIvI&expires_in=4297

I see only prototype.js loaded. Any idea ?

  • 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-22T22:52:13+00:00Added an answer on May 22, 2026 at 10:52 pm

    Actually, scratch all of this. I got it working now with no apparent changes on my end. When you inject a script, however, you shouldn’t be able to see it in the DOM IIRC. Is it possible you just have a stray typo that’s causing it to not render? You might want to test it on other pages.

    Unless it was Chrome pushing some random update that fixed things (possible), I’m thinking it might just have to do with intercept.js.

    I will still give Facebook a ton of credit for using a strict doctype and failing to validate with only one word, though.

    Initial answer (preserved only to demonstrate my confusion)

    I was able to duplicate your result with the simplest scripts possible, which I got working on other pages. The issue might have something to do with the doctype, XHTML Strict, and the fact that — despite the page managing to contain only a single word — it doesn’t validate. I tried several methods of dealing with it:

    • Change content_scripts.run_at to "document_end" in manifest.json
    • Use chrome.tabs.executeScript to inject a script
    • Use chrome.tabs.executeScript to inject pure code
    • Use chrome.tabs.executeScript to inject a script with the code surrounded in CDATA tags
    • Use chrome.tabs.executeScript to inject pure code surrounded in CDATA tags

    None worked.

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

Sidebar

Related Questions

I'm trying to build my first generic list and have run into some problems.
I've been trying to build my first rails app and have gotten stuck on
I have just started trying to build my first wp7 app, and I am
I'm trying to build my first app on CodeIgniter. This is also my first
I'm trying to build my first app on CodeIgniter. This is also my first
This is my first time playing around with SignalR. I am trying to build
I am a beginner with CakePHP trying to build my first app. I have
I am trying to run my first build in TFS 2010 but a have
I'm trying to build a menu where only the first item is shown by
I'm trying to build my first localized application. I have all the strings in

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.