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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T08:54:09+00:00 2026-06-04T08:54:09+00:00

I have a chrome extension that adds a custom button beside the like button

  • 0

I have a chrome extension that adds a custom button beside the “like” button in facebook.

The problem is that when I launch facebook that button doesn’t appear and when I refresh the page it appears.

It’s a basic jQuery script:

$(".like_link").after("...MY BUTTON...");

I also tried to put an alert(“extension works”) function to see when the extension is loaded and when it doesn’t. So the problem is not of the button, it’s a problem of the extension itself.

I tried one more thing, I set the extension to work on all the websites (*://*.* in manifest.json). In all the websites it worked all the time, and in facebook I had to refresh every page after I launched it.

jQuery id LOADED into my extension. My manifest.json file:

{
"name": "Custom button",
"version": "0.1",
"description": "Add a custom button beside the like button!",
"content_scripts": [
    {
    "matches": ["*://facebook.com/*"], //or *://*/*
    "css": ["style.css"],
    "js": ["jquery-1.7.2.min.js","script.js"]
    }
]
}
  • 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-04T08:54:10+00:00Added an answer on June 4, 2026 at 8:54 am

    How about "matches": ["*://*.facebook.com/*"] (inserted asterisk before facebook.com)

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

Sidebar

Related Questions

I want to have a chrome extension that adds a little bar to the
I have a chrome extension that uses the facebook Graph API Because its a
I have a Google Chrome extension that upon pressing a button executes an xmlhttp
I have this Chrome Extension, it adds a poke all button under your pokes.
I have written a Chrome extension that adds a char counter to some input
I am currently writing a chrome extension so that I have a button on
I am making a Google Chrome extension and I would like to have my
I have this Chrome extension that modifies the header of requests before sending them.
I have a Chrome Extension that is using the experimental sidebar API. It works
I have created a Chrome extension that uses the hotkeys [Alt]+[0...9] only to discover

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.