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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T06:38:35+00:00 2026-05-20T06:38:35+00:00

I have this jquery script: $(‘[id^=changesetList] tr’).each(function () { var sid = $(this).attr(‘sid’); $(this).find(‘td

  • 0

I have this jquery script:

$('[id^=changesetList] tr').each(function () {
    var sid = $(this).attr('sid');
    $(this).find('td span.changesetDescription').append('<span class="csetHash">' + sid + '</span>').css('color','#777');
});

I want to run this when I visit kilnhg.com.

I put in in a kiln_hash.user.js file and installed it into Chrome but it doesn’t do anything.

I think this might be because it requires jQuery.

I have read a few tutorials and it looks like I might need to create a manifest.json file and put that and the .user.js file into a zip file with a .crx extension.

I still do not know what I would need to put in the manifest file.

How can I get this to work?


Update

I created a manifest.json file:

{
  "name": "Kiln Hash",
  "version": "1.0.1",
  "description": "Show hash in changeset list in Kiln",
  "content_scripts": [
    {
      "matches": ["https://*.kilnhg.com/*"],
      "js": ["jquery.js"]
    }
  ],
  "background_page": "bg.html"
}

I include jquery.js file (version 1.4.2) and the bg.html file:

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script src="jquery.js"></script>

<script>

$(document).ready(function(){
    $(hash_link).click(function(){
        addHash();
        return false;
    });
});
function addHash()
{
    $('[id^=changesetList] tr').each(function () {
        var sid = $(this).attr('sid');
        $(this).find('td span.changesetDescription').append('<span class="csetHash">' + sid + '</span>').css('color','#777');
    });
}

</script>

<title>Untitled Document</title>
</head>

<body>
<a id="hash_link" href="#">Add Hash</a>
</body>
</html>

I packaged this in a zip with .crx extension and when I drag the file into Chrome it asks me if I want to install I say yes. It then tells me "bad magic number"

So I go to the Chrome developer dashboard and upload the zip, it accepts it, It makes my pay $5 to upload and then it installs. but it still does nothing.

  • 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-20T06:38:36+00:00Added an answer on May 20, 2026 at 6:38 am

    You not only might need a manifest, manifest is an absolutely necessary part of any extension. I hate to say that, but you probably need to read a little more about extension structure first, and all your questions will be answered.

    • Overview (what’s inside extension and what is manifest)
    • Content Scripts (how to include script into a specific domain with jquery)

    (I can provide you an answer if you like, but it would be more beneficial for you to read those links yourself, it’s all described and explained there in great details)

    UPDATE

    To locally install your extension you don’t need to archive it, just go to your extensions chrome://extensions/, click “Developer mode”, “Load unpacked extension” button, and then point it to your extension folder.

    If you want to inject a script to some page you need to use what’s called “content scripts”. Your manifest should look like this:

    {
      "name": "Kiln Hash",
      "version": "1.0.1",
      "description": "Show hash in changeset list in Kiln",
      "content_scripts": [
        {
          "matches": ["https://*.kilnhg.com/*"],
          "js": ["jquery.js", "content_script.js"]
        }
      ]
    }
    

    content_script.js:

    $('[id^=changesetList] tr').each(function () {
        var sid = $(this).attr('sid');
        $(this).find('td span.changesetDescription').append('<span class="csetHash">' + sid + '</span>').css('color','#777');
    });
    

    This content script would run on your specified domain after DOM is loaded and jquery is injected.

    You don’t need a background page for this.

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

Sidebar

Related Questions

I have this jQuery which works fine $(li[id^='shop_id']).click( function () { alert(I clicked on
I have this code: var $msg = jQuery('<div></div>') .hide() .appendTo(document.body) ; if ($msg.is(:hidden)) {
I have this java code: <script src=http://www.google.com/jsapi></script> <script type=text/javascript> google.load(jquery, 1.2.6); $(a#more).click(function() { $(#info_box).show(blind,
I have this jQuery code that queries an API on a keyup event (via
I have this code in jQuery, that I want to reimplement with the prototype
I have this bit of javascript written with jQuery 1.2.5. It's contained inside the
I have this strange issue with my web app. You see, I'm using jQuery
I have to preface this with the fact that I love jQuery as a
Say I have jquery code like this: html += '<div class=index>' + item.index +
This probably sounds really stupid but I have noo idea how to implement jquery's

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.