How to disable the new tab page

Iron Forum for english speaking people

How to disable the new tab page

Postby robertcollier4 » Thu Jan 31, 2013 6:52 pm

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.
robertcollier4
 
Posts: 18
Joined: Thu Nov 29, 2012 12:45 pm


Re: How to disable the new tab page

Postby Derek » Sat Mar 23, 2013 4:17 pm

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

Postby Derek » Wed Mar 27, 2013 9:43 pm

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


Re: How to disable the new tab page

Postby gregm » Mon Dec 23, 2013 4:19 am

This no longer works in version 31. Is there an alternative?
gregm
 
Posts: 2
Joined: Tue Feb 26, 2013 7:17 am



Return to SRWare Iron Support (English)

Who is online

Users browsing this forum: Bing [Bot] and 12 guests