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

88
Views
Quick way to go to a URL from clipboard

Recently Opera browser removed paste & go feature (via ctrl+shift+v), so I'm trying to implement an extension that can do the same. The following code (in the background script) works:

chrome.commands.onCommand.addListener((e) => {
var pasteTarget = document.createElement('div');
pasteTarget.contentEditable = true;
var actElem = document.activeElement.appendChild(pasteTarget).parentNode;
pasteTarget.focus();
document.execCommand('paste');
var paste = pasteTarget.innerText;
chrome.tabs.update({ url: paste })
actElem.removeChild(pasteTarget);
})

However, I noticed that chrome.tabs.update({ url: paste }) is very slow, like 500 ms or so. Is there a quicker way to read clipboard and use it as a URL?

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!