Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

131
Views
Chrome extension content loads only for a split second

I'm developing a chrome extension that involves adding a column to a table, however aside from the header the changes only load for a second before they get overridden. My changes also activate after a button within the website is pressed to load the table, but the changes always only ever take place the 2nd time the button is pressed, but never the first.

manifest.json

    "name": "Better Registration",
    "description": "Registration Page",
    "version": "1.0",
    "manifest_version": 3,
    "content_scripts": [
        {
            "matches": ["*://*.registrationssb.ucr.edu/*"],
            "js": ["content.js"],
            "run_at": "document_end"
        }
    ]
}

content.js

var run = document.getElementById("search-go");
if(run){
    run.addEventListener("click", load);
    
}


function load(){
    console.log("LOAD PAGE");
    var table = document.getElementById("table1");
    if(table != null){
        var row = table.rows[0];
        var cell = row.insertCell(9);
        cell.innerHTML = "PLACEMENT HEADER";
        for(let i = 1; i < table.rows.length; i++){
            var cell = table.rows[i].insertCell(9);
            cell.innerHTML = "PLACEMENT TEXT";
            
        }
    }
}
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!