Is there a way to disable chrome_url_override via a Chrome Extension?

Here's the background on my question: I have a chrome extension that overrides the user's new tab with the extension. It is using the chrome_url_overrides permission to override the newtab with my extension.

I need a way to disable this feature since some of our users want to only show our extension when they choose to.

I looked through all the Google Chrome Extension apis and could not find a programmatic way of doing it.

Answers


You could use a local setting to detect if the user wants to see the new tab page or not. If they don't want your new experience, you could redirect the newtab to the internal newtab via:

chrome.tabs.update({
  url: 'chrome-internal://newtab/'
});

See: http://stackoverflow.com/a/15016689/76734


@Dalze you can easily fix the flicker by adding a css to the body: set display:none and then if you are loading your newtab change it to show with js - this way you won't have the flicker. (sorry for adding an answer, I was unable to comment above :)


Need Your Help

Mvc 3 outputcache varyByCustom extension

asp.net-mvc-3 c#-4.0 outputcache

[OutputCache(Duration = 120, VaryByCustom = "siteId")]

Multiple Rewrite Rules, Try A then B

.htaccess

I have the following directory structure:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.