NewTab-Redirect | is an extension for Google Chrome | Browser Plugin library
kandi X-RAY | NewTab-Redirect Summary
kandi X-RAY | NewTab-Redirect Summary
NewTab Redirect! is an extension for Google Chrome which allows the user to replace the page displayed when creating a new tab.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of NewTab-Redirect
NewTab-Redirect Key Features
NewTab-Redirect Examples and Code Snippets
Community Discussions
Trending Discussions on NewTab-Redirect
QUESTION
Is there a clean way for a Google Chrome extension to set a non-local webpage as the new tab page while also keeping the omnibox cleared or highlighted?
The chrome_url_overrides.newtab option in the extension manifest only allows local HTML pages.
Right now, I see two options:
- iframe the webpage in the local extension page. However, many websites won't work properly when iframed.
- Redirect the local new tab page to the webpage. However, this does not reliably highlight the omnibox, so users have to manually set focus to the omnibox before typing, which is a poor user experience.
The ideal solution would keep the webpage be the top frame of the new tab page, and the omnibox would be either cleared or highlighted.
Additional info:
- There's an ongoing, unsolved thread on this topic here for the Chrome extension New Tab Redirect.
- Using
chrome.tabs.update
to redirect the new tab page has historically highlighted the URL. However, this appears to be undocumented and unreliable. The highlighting broke in Chrome 34 and appears to be broken now in Chrome 61 (a bug I just reported).
ANSWER
Answered 2017-Sep-22 at 23:02Right now, this isn't quite possible. I've opened a feature request for Chrome extensions to better support this use case.
The two options in the meantime are:
On the local extension new tab page, create an iframe to the webpage.
In an extension background script, listen for new tab creation and update the URL to a website. This looks something like:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install NewTab-Redirect
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page