Open danielreynoldsma opened 5 years ago
@camelCaseCo unfortunately, because this extension uses a redirect, the logic occurs after Chrome clears the bar. You could create a custom newtab extension with your target URL and get this behavior. Let me know if you'd like help setting this up.
@jimschubert ok, I would like help setting this up. Like how would I make a new tab extension? I have made simple extensions before but...
@camelCaseCo I took a look at this, and it appears that Chrome no longer allows this behavior. In older versions of the browser, I believe you could define a manifest.json as simple as this:
{
"name": "My newtab",
"description": "My customimzation to the Chrome newtab",
"version": "1.0",
"incognito": "split",
"chrome_url_overrides": { "newtab": "https://duckduckgo.com" },
"manifest_version": 2
}
Now, the value allowed in newtab may only reference a local HTML file packaged alongside the manifest.json. Any value here would result in a redirect behavior similar to what happens in this extension.
Here's a full example if you want to mess around with it:
manifest.json:
{
"name": "My newtab",
"description": "My customimzation to the Chrome newtab",
"version": "1.0",
"incognito": "split",
"chrome_url_overrides": { "newtab": "custom.html" },
"manifest_version": 2
}
custom.html:
<meta http-equiv="refresh" content="0; url=https://duckduckgo.com">
@jimschubert ok thanks. I mostly just wanted to be able to use my own html file, so that works great.
I was wondering if it is possible to clear the omnibar when a new tab is opened, just to look nice, rather then just highlighting it. thanks!