Giter VIP home page Giter VIP logo

Comments (5)

jimschubert avatar jimschubert commented on August 22, 2024

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:

  1. Download the source
  2. Unpack the zip file to some directory
  3. Go to chrome://extensions and check "Developer Mode"
  4. Choose "Load Unpacked Extension" and browse to the directory from step 2
  5. Uninstall or disable New Tab Redirect
  6. 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.

23inhouse avatar 23inhouse commented on August 22, 2024

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 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:

  1. Download the source
  2. Unpack the zip file to some directory
  3. Go to chrome://extensions and check "Developer Mode"
  4. Choose "Load Unpacked Extension" and browse to the directory from step 2
  5. Uninstall or disable New Tab Redirect
  6. 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.


Reply to this email directly or view it on GitHub:
#4 (comment)

from newtab-redirect.

dbuenzli avatar dbuenzli commented on August 22, 2024

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.

jimschubert avatar jimschubert commented on August 22, 2024

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.

jimschubert avatar jimschubert commented on August 22, 2024

I've added examples locally within the repository and included instructions here

from newtab-redirect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.