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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:24:42+00:00 2026-06-15T01:24:42+00:00

I am trying to install my Extension’s CRX version but it is not loading

  • 0

I am trying to install my Extension’s CRX version but it is not loading some of image files on extension button placed on address bar.I have even put try/catch but it is not giving any error either. The Developer/Unpack version is working just fine.

What’s wrong am I doing? What I guess my all image files are not compressed in CRX file. Unfortunately I can’t extract CRX content either as renamig to .ZIP is not letting me to unzip on MacoSX

I am installing CRX by dragging on to extensions page.
How do I test the issue?

Code is given below:

Manifest.jsonn

{
  "name": "Domain Colors",
  "version": "1.0",
  "manifest_version": 2,
  "description": "Change Button Color for domains.",
  "content_scripts": [
    {
      "matches": ["http://*/*","https://*/*"],
      "js": ["script.js"]
    }
  ],
  "permissions": [
  "tabs", "http://*/*"
],
  "browser_action": {
    "default_title": "Colry",
    "default_icon": "blue.png"
  },
  "background": {
    "scripts": ["background41.js"]
    }
}

script.js

alert("Testing Version..Wait for a while");
var request = new XMLHttpRequest();
if (request == null)
{
        alert("Unable to create request");
}
else
{
    try
    {
        var timestamp = new Date().getTime(); //to avoid cache ajax calls
        var randomnumber=Math.floor(Math.random()*11);
        timestamp = timestamp * randomnumber;
        var _domain = document.domain;
        _domain = _domain.replace("www.","");
        var url = "http://xxxxnet/xxx/xxx.asp?xx="+_domain+"&ts="+timestamp;
        request.onreadystatechange = function()
        {
            //request.setRequestHeader('Cache-Control', 'no-cache');
            //request.setRequestHeader('Pragma', 'no-cache');
            if(request.readyState == 4)
            {
                LDResponse(request.responseText);
            }
        }
        request.open("GET", url, true);
        request.send(null);
    }
    catch(e){
        alert('An error has occurred in AJAX Call: '+e.message)
    }
}

function LDResponse(response)
{
    var json = JSON.parse(response);
    alert(response);
    var msg = document.domain+","+json["buttonColour"]+","+json["buttonTip"];
    chrome.extension.sendMessage(msg);
}

background file

var currentUrl = "";
var currentColor = "";
var currentTip = "";

chrome.tabs.onUpdated.addListener(function(tabId, changeInfo) {
    if (changeInfo.status === 'loading')
    {
        chrome.browserAction.setIcon({
            path:'chrome-extension://lkhgldilknhpmdodeblhnbniahbjcdcm/gray.png',
            tabId:tabId
        });
        chrome.extension.onMessage.addListener(function(message, sender)
        {
            try
            {
                var stuff = message.split(",");
                currentUrl = stuff[0];
                currentUrl = currentUrl.replace("www.","");
                currentColor = stuff[1];
                currentTip = stuff[2];
            }
            catch(e)
            {
                alert('An error in onMessage method: '+e.message)
            }
        });
    }
    else if (changeInfo.status === 'complete')
    {
        try
        {
           chrome.browserAction.setIcon({
            path:'chrome-extension://lkhgldilknhpmdodeblhnbniahbjcdcm/'+currentColor+".png",
            tabId:tabId
            });

            chrome.browserAction.setTitle({
              tabId:tabId,
              title:currentTip
            });
        }
        catch(e)
        {
            alert('An error in Complete method: '+e.message)
        }

    }
});

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-15T01:24:44+00:00Added an answer on June 15, 2026 at 1:24 am

    Replace path:'chrome-extension://lkhgldilknhpmdodeblhnbniahbjcdcm/'+currentColor+".png with path: chrome.extension.getURL("currentColor.png") to get it to work.

    Your runtime extension id is not lkhgldilknhpmdodeblhnbniahbjcdcm, so to use dynamic generated content you should use chrome.extension.getURL()

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

Sidebar

Related Questions

trying to work out how to install zipArchive extension with MAMP, but not having
After trying to install one extension and trying to uninstall, deleting all their files
I'm trying to install the RabbitMQ PECL extension but after running sudo pecl install
I have Open Cart version 1.4.8 and trying to install Extension that is compatible
I'm trying to install MySQL_python 1.2.2 (I specifically need this version, not the current
I am trying to install self-built extension for Opera . As Opera suggests :
I'm trying to install the PECL extension pecl_http so that I can use PHP's
I'm trying to install imagick PHP extension on windows. It was working on PHP
I'm trying to install django-extensions + graphviz + pygraph but i can't. I have
I am trying: install.packages(RGoogleDocs, repos = http://www.omegahat.org/R) As suggested here , but it doesn't

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.