Comments (5)
The new tab and replacement new tab pages do this by default. The problem is that the replacement new tab page here is redirect.html, which does gain focus before redirecting to the user-defined URL which then loses focus. Since I don't have file access to actually rewrite the manifest.json
or redirect.html
pages based on user options, I'm limited to redirecting via JavaScript.
The problem with this is that Chrome highlights the address bar in a thread. Sometimes that thread finishes after the custom page has loaded from this JavaScript redirect, sometimes it doesn't. There's not much I can do about this race condition in the browser until they provide an API that allows me to highlight the address bar.
Although I'd hate to limit your functionality of having a customizable new tab page, since you only want about:blank
, I would suggest using the Blank new tab page override page from the Chrome Developer's examples.
To install it:
- Download the source
- Unpack the zip file to some directory
- Go to chrome://extensions and check "Developer Mode"
- Choose "Load Unpacked Extension" and browse to the directory from step 2
- Uninstall or disable New Tab Redirect
- Enjoy
Although this page isn't exactly the same as about:blank
, it does give you a blank html page and provides some security if you don't want someone looking over your shoulder and essentially seeing your top-6 history. I'm not sure, but you may be able to edit the file manifest.json
and, instead of "blank.html", point it to some full-path file or external site.
Probably not the answer you were looking for, but an alternative is the best I can do.
Also, I'd recommend creating a bookmark called "Apps" or "Default New Tab" with a location of chrome-internal://newtab/
so you can get to your installed apps.
Let me know if you have any questions.
from newtab-redirect.
That is a great answer! Thank you for taking the time to respond.
All the best
On 11/02/2012, at 4:10 PM, Jim [email protected] wrote:
The new tab and replacement new tab pages do this by default. The problem is that the replacement new tab page here is redirect.html, which does gain focus before redirecting to the user-defined URL which then loses focus. Since I don't have file access to actually rewrite the
manifest.json
orredirect.html
pages based on user options, I'm limited to redirecting via JavaScript.The problem with this is that Chrome highlights the address bar in a thread. Sometimes that thread finishes after the custom page has loaded from this JavaScript redirect, sometimes it doesn't. There's not much I can do about this race condition in the browser until they provide an API that allows me to highlight the address bar.
Although I'd hate to limit your functionality of having a customizable new tab page, since you only want
about:blank
, I would suggest using the Blank new tab page override page from the Chrome Developer's examples.To install it:
- Download the source
- Unpack the zip file to some directory
- Go to chrome://extensions and check "Developer Mode"
- Choose "Load Unpacked Extension" and browse to the directory from step 2
- Uninstall or disable New Tab Redirect
- Enjoy
Although this page isn't exactly the same as
about:blank
, it does give you a blank html page and provides some security if you don't want someone looking over your shoulder and essentially seeing your top-6 history. I'm not sure, but you may be able to edit the filemanifest.json
and, instead of "blank.html", point it to some full-path file or external site.Probably not the answer you were looking for, but an alternative is the best I can do.
Also, I'd recommend creating a bookmark called "Apps" or "Default New Tab" with a location of
chrome-internal://newtab/
so you can get to your installed apps.Let me know if you have any questions.
Reply to this email directly or view it on GitHub:
#4 (comment)
from newtab-redirect.
The link to the example is broken but in any case I found that https://chrome.google.com/webstore/detail/empty-new-tab-page/dpjamkmjmigaoobjbekmfgabipmfilij,
from newtab-redirect.
Thanks. Later this week, I will update the issue with a downloadable zip or
add the blank new tab example to a subdirectory within the extension.
On Feb 23, 2014 9:19 AM, "Daniel Bünzli" [email protected] wrote:
The link to the example is broken but in any case I found that
https://chrome.google.com/webstore/detail/empty-new-tab-page/dpjamkmjmigaoobjbekmfgabipmfilij,Reply to this email directly or view it on GitHubhttps://github.com//issues/4#issuecomment-35832600
.
from newtab-redirect.
I've added examples locally within the repository and included instructions here
from newtab-redirect.
Related Issues (20)
- Tabs not opening on firist Chrome session
- Default Chrome Apps are no longer showing up on NTR Apps Page HOT 1
- New tab opens when closing tabs
- Not working anymore HOT 1
- Management options via json/config file? HOT 2
- Feature request for preloading default URL HOT 1
- the new tab has changed over the last few days HOT 4
- Option to keep focus on browser address bar HOT 1
- Web page bet365.com won't load HOT 2
- Chrome Beta 118 restricted access to a local file in "New Tab Redirect" HOT 30
- Local file doesen't work HOT 3
- Local file stopped working on Brave 1.59.117 HOT 3
- Local file is working on chromium based browsers but not on google chrome itself HOT 4
- New permissions: "Read the icons of the websites you visit" HOT 3
- Redraw and other issues? HOT 2
- Local files not working HOT 9
- Data URLs
- Focus is on address bar on second tab opened
- White flash problem HOT 5
- bug: ' grant permission ' request and links to new tab instead of options. Also not syncing correctly.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from newtab-redirect.