How to disable the new tab page

Iron Forum for english speaking people

Post Reply
robertcollier4
Posts: 19
Joined: Thu Nov 29, 2012 12:45 pm

How to disable the new tab page

Post 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.
Derek
Posts: 7
Joined: Sun Sep 06, 2009 3:10 pm

Re: How to disable the new tab page

Post by Derek »

Fantastic tip, worked for me. Who needs new tab redirect extensions when this does the job nicely! :D
Derek
Posts: 7
Joined: Sun Sep 06, 2009 3:10 pm

Re: How to disable the new tab page

Post 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>
gregm
Posts: 3
Joined: Tue Feb 26, 2013 7:17 am

Re: How to disable the new tab page

Post by gregm »

This no longer works in version 31. Is there an alternative?
Post Reply