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

264
Views
Grab part of url with chrome extension

I've been playing with chrome extensions. However, I'm not certain which function to call to grab part of a URL and fit it into another URL, then save it in the browser storage.

Problem: need to grab 123-event-id from https://ab.website/`123-event-id` and a button trigger to save it as https:// portal.website/events/123-event-id/summary with an option (button) to delete later.

Would really appreciate any help.

almost 4 years ago · Santiago Trujillo
1 answers
Answer question

0

How to get the URL of the active tab

chrome.tabs.query({ active: true, currentWindow: true }, (tabs) => {
  let url = tabs[0].url;
});

You can use localStorage or chrome.storage to store data.

almost 4 years ago · Santiago Trujillo Report
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!