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

107
Views
RegEx filter for webNavigation.onCompleted listener not working

This is my extension code, no way to have the listener trigger, I also tried removing the filters whole but nothing, it must be one of those dumb mistakes that I cannot see:

    const filter_1 = {
      url:
      [
        {urlMatches: "^\w*:\/\/\w*\.creoweb\.com\/data\/$"},
        {urlMatches: "^\w*:\/\/\w*\.creoweb\.com\/cp\/\w*\/history\/$"}
      ]
  };

    const filter_2 = {
      url:
      [    
        {urlMatches: "^\w*:\/\/\w*\.creoweb\.com\/user\/\d+\/panel\/$"}
      ]
  };  


function sample1(details) {
  console.log(`onCompleted => sample1: ${details.url}`);
}

function sample2(details) {
  console.log(`onCompleted => sample2: ${details.url}`);
}

console.log('here'); //this trigger
browser.webNavigation.onCompleted.addListener(sample1, filter_1);
console.log('here 2'); //this never 
browser.webNavigation.onCompleted.addListener(sample2, filter_2);
console.log('here 3'); //this never
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!