Page 1 of 1

How to disable the new tab page

Posted: Thu Jan 31, 2013 6:52 pm
by robertcollier4
This will prevent chromium from loading the the new tab script and instead have the new tab run a script that tells it to just load the blank page"about:blank".

1. Download Resource Hacker
2. In Resource Hacker, open Iron\iron.dll
3. Go to View - Find text - Search for (without quotes) - "It's important that this be the first script loaded"
4. On the line below where the searched text is found, add the following line:
<script>window.location = 'about:blank';</script>

So before modification it will look like this

Code: Select all

<!-- It's important that this be the first script loaded. -->
<script>// Copyright (c) 2012 The Chromium Authors. All rights reserved.
After modification it will look like this:

Code: Select all

<!-- It's important that this be the first script loaded. -->
<script>window.location = 'about:blank';</script>
<script>// Copyright (c) 2012 The Chromium Authors. All rights reserved.
5. Click on "Compile Script" and go to File - Save.

Re: How to disable the new tab page

Posted: Sat Mar 23, 2013 4:17 pm
by Derek
Fantastic tip, worked for me. Who needs new tab redirect extensions when this does the job nicely! :D

Re: How to disable the new tab page

Posted: Wed Mar 27, 2013 9:43 pm
by Derek
Fantastic tip, worked for me. Generally no need for "new tab redirect" extensions as this does the job nicely! Only one downside: when using this method as a generic new tab redirect — as opposed to simply loading a blank page — this does not work for file:/// URLs. Chromium blocks such access (see the F12 Console message).

e.g. this successfully redirects to Google UK:

Code: Select all

<script>window.location = 'https://wwww.google.co.uk/';</script>
but this does not successfully redirect to the local file, file.txt:

Code: Select all

<script>window.location = 'file:///C:/temp/file.txt';</script>

Re: How to disable the new tab page

Posted: Mon Dec 23, 2013 4:19 am
by gregm
This no longer works in version 31. Is there an alternative?