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

112
Views
Optional newtab override in Chrome extension

I want to make the newtab override in a Chrome Extension optional. A user should be able to see a dashboard on their newtab page, OR, if they don't want to, turn that off and use the standard Chrome one (or another extension).

However, I'm having problems with this.

Previously, we checked this setting on each time a new tab was opened using the chrome.tabs.onUpdated API. However, Google didn't like this without the chrome_url_overrides manifest permission and pulled the extension from the webstore.

After adding the chrome_url_overrides the setting which shows/hides the dashboard on newtab is broken and it shows the dashboard on 100% of new tabs.

Does anyone have a workaround for this?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

you have to keep chrome_url_overrides in manifest and store the user choice (dashboard or default) in a localStorage or chrome.storage variable. Then you'll have to check that variable in your newpage javascript file. Something like this:

if (typeof localStorage.behaviour !== 'undefined' && localStorage.behaviour == 'default' )
    chrome.tabs.update({url:"chrome-search://local-ntp/local-ntp.html"})
else {
    //other stuff
}

if user choose to keep default page you'll have to give an alternative way to change his mind by adding another route to the dashboard. A good idea could be via extension popup.

about 4 years ago · Juan Pablo Isaza 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!