Welcome guest, is this your first visit? Create Account now to join.
Results 1 to 5 of 5

This is a discussion on New Tab Replacement Fix w/o Extension within the Chrome Talk section, part of the Google Chrome category: Well the lack of the ability of chrome to go to something other than the new tab page on load ...


  1. #1
    Zamadatix is offline Junior Member
    Join Date
    Oct 2008
    Posts
    16

    Post New Tab Replacement Fix w/o Extension

    Well the lack of the ability of chrome to go to something other than the new tab page on load has always annoyed me, so I went to extensions (already annoyed that it wasn't a feature) and tried a few, none could load my local html file!).

    To make things more efficient, and work for that matter, I looked at switches.cc and added '-new-tab-page="C:/Documents and Settings/Daniel/Documents/google.htm"'. This worked... however that annoying bookmarks bar was in my way. So I made a new file called g.htm which contain nothing but '<meta http-equiv="Refresh" content="0; URL=file:///C:/Documents%20and%20Settings/Daniel/Documents/Google.htm">' and changed my chrome shortcut to say '-new-tab-page="C:/Documents and Settings/Daniel/Documents/g.htm"'. Not only does it not require an extension, but it loads my page!



    tl;dr: Make a page that redirects to what you want to replace the new tab page and point to it in your Chrome shortcut with -new-tab-page="file location".

  2. #2
    PAEz's Avatar
    PAEz is offline Moderator
    Join Date
    Aug 2009
    Location
    Australia
    Posts
    656

    Default

    Maybe its just in the dev version or something, but you can do this in the options.
    Click the wrench and select options
    Select the Basics tab (prolly allready selected)
    Set On Startup: to Open the homepage
    Set Homepage: to Open this page:
    put what ever url (including file:\\ urls) in its edit box and your set

  3. #3
    Zamadatix is offline Junior Member
    Join Date
    Oct 2008
    Posts
    16

    Default

    All that does is set the homepage (which was already set), not change the window that appears when you open a new tab.

  4. #4
    mg2's Avatar
    mg2
    mg2 is offline Senior Member
    Join Date
    Jun 2009
    Location
    Karlsruhe, Germany, Europe
    Posts
    328

    Default

    you can always host your page somewhere and point to it via extension,
    but i know this isn't the point.
    BETTER GMAIL for Google Chrome

    Win7 RC1
    Google Chrome Dev latest version

  5. #5
    PAEz's Avatar
    PAEz is offline Moderator
    Join Date
    Aug 2009
    Location
    Australia
    Posts
    656

    Default

    Sorry I misinterpreted....
    Seems googles gone to a bit of hassle in not allowing acesse to your local files (which is understandable from a security stand point) and this stops extensions just pointing to a local file.
    I had a look at it and figured a workaround doing something like this.....
    Code:
    <html><head>
    <script>
    function getUrl() {
      if (localStorage.customURL)
    chrome.tabs.getSelected(null, function (tab){
    chrome.tabs.update(tab.id,{"url":localStorage.customURL});	
    })
      else
        document.write('<meta http-equiv="refresh"content="0;URL=options.html">');
      return null;
    }
    getUrl();
    </script>
    </head>
    </html>
    ...they just need to enable tab permissions and use the tab api to get it done.
    Ill send that code to the extension I modified and see if theyll include it.
    This is the extension I modified....
    https://chrome.google.com/extensions...baaelfojkmlkja

    Thanks for pointing out the command line way, options are great.
    Last edited by PAEz; 03-02-2010 at 06:46 AM.

Similar Threads

  1. resource hacker's replacement ?
    By sulasno in forum Chrome Tech
    Replies: 2
    Last Post: 05-26-2009, 01:52 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •