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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:18:04+00:00 2026-06-15T14:18:04+00:00

Possible Duplicate: Check whether user has my chrome extension installed A little background. I’m

  • 0

Possible Duplicate:
Check whether user has my chrome extension installed

A little background. I’m creating a Chrome extension to interact with data between a company’s intranet site to open and login to social media sites. I want to write buttons on a page with Javascript only if I have verified that the extension actually exists in that browser. The button is useless otherwise. Let me know if you’ve found a clean way to do that!

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-15T14:18:05+00:00Added an answer on June 15, 2026 at 2:18 pm

    Write buttons on a page with JavaScript, from your Extension.

    Find below the way you can.

    manifest.json

    {
    
      "name": "Example",
    
      "description": "Description",
    
      "version": "0.6",
    
      "permissions": ["tabs", "http://mysite.com/*"],
    
      "background": {
    
        "scripts": ["background.js"]
    
      },
    
      "manifest_version": 2
    
    }
    

    background.js

    chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) {
      var HOST_NAME = 'mysite.com';
      if(changeInfo.status === "complete")
      if(tab.url.search(HOST_NAME) !== -1) {
        var execute_script_param = { "file": "excecute_js.js",
                                     "runAt": "document_start"
                                   }
        chrome.tabs.executeScript(tabId, execute_script_param, function() {
          console.log('added extension identity in dom');
          // if you want to do here, go ahead
        })
      }
    });
    

    excecute_js

    (function(obj_document) {
      // do here what ever you want
      // write buttons on a page with Javascript
    })(window.document)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Determine whether client browser has java installed and can launch applets I
Possible Duplicate: Facebook how to check if user has liked page and show content?
Possible Duplicate: check whether internet connection is available with C# I just want to
Possible Duplicate: How to check if resultset has one row or more? What will
Possible Duplicate: How to check whether 2 DirectoryInfo objects are pointing to the same
Possible Duplicate: How can I check whether a option already exist in select by
Possible Duplicate: Check if timestamp is x hours old? How do I determine whether
Possible Duplicate: Check whether a Directory Exists in PHP I am trying scandir() to
Possible Duplicate: check whether a List<string> contains an element in another List<string> using LINQ
Possible Duplicate: Checking if array is multidimensional or not? How do I check whether

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.