Welcome guest, is this your first visit? Create Account now to join.
Page 5 of 5 FirstFirst ... 345
Results 41 to 46 of 46

This is a discussion on Customize your "new tab" extension within the Chrome Plugins section, part of the Google Chrome category: I'm writing an extension. in the mainfest.json i used the following code. { "format_version": 1, "version": "1.0", "name": "myextension", "background_page": ...


  1. #41
    dhanushka is offline Junior Member
    Join Date
    Sep 2009
    Posts
    9

    Default

    I'm writing an extension. in the mainfest.json i used the following code.
    {
    "format_version": 1,
    "version": "1.0",
    "name": "myextension",
    "background_page": "background.html",
    "content_scripts": [
    {
    "matches": ["chrome://newtab/*"],
    "js": ["abc.js"]
    }
    ]
    }
    which gave the " could not load the extension .......
    invalid value for 'content_script[0]. matches[0]'. " error message

    I'm using google chrome 4.0.213.1 div version. In which there is a inbuilt newtab

  2. #42
    OpenNingia is offline Senior Member
    Join Date
    Jul 2009
    Posts
    123

    Default

    Quote Originally Posted by dhanushka View Post
    I'm writing an extension. in the mainfest.json i used the following code.

    which gave the " could not load the extension .......
    invalid value for 'content_script[0]. matches[0]'. " error message

    I'm using google chrome 4.0.213.1 div version. In which there is a inbuilt newtab
    content scripts are no longer supported on chrome:// pages.

  3. #43
    Michael3185 is offline Senior Member
    Join Date
    Apr 2009
    Location
    Lincoln, UK
    Posts
    377

    Default

    Here's what I used today and it works, giving access to the Tabs API (though I don't like that way it works);

    {
    "name": "NewTab",
    "version": "1.0",
    "description": "Opens new tab pages blank, or with your own HTML page.",
    "background_page": "background.html",
    "matches": ["http://*/*", "https://*/*", "file://*"],
    "permissions": ["tabs", "http://*/*"],
    "run_at": "document_start"
    }

    and you can check for newtab in code;

    <html>
    <head>
    <script>
    chrome.tabs.onUpdated.addListener(function(tabId, changeInfo) {
    chrome.tabs.get(tabId, function(tab) {
    if (tab.url.indexOf("chrome://newtab") != -1)
    chrome.tabs.update(tab.id, {url: "about:blank"});
    });
    });
    </script>
    </head>
    </html>
    Veesteronnalaptop, and Chrome extension mods at http://gochrome.letsdoo.org

  4. #44
    dhanushka is offline Junior Member
    Join Date
    Sep 2009
    Posts
    9

    Default

    it worked. thanks a lot!

  5. #45
    Gameking30578 is offline Junior Member
    Join Date
    Jul 2010
    Posts
    1

    Default

    Hi everyone, I'm new here and I can't install it, can anyone help me?? Thanks!

  6. #46
    steve.upham@gmail.com is offline Junior Member
    Join Date
    Jan 2011
    Posts
    1

    Default

    How about an easy solution to turning off the "most visited" tabs for tech dummies without having to change to the Dev version that is too complicated?

Page 5 of 5 FirstFirst ... 345

Similar Threads

  1. Block Flash + Disable "Most Visited Sites"
    By calande in forum Chrome Plugins
    Replies: 27
    Last Post: 04-22-2009, 06:45 AM
  2. Customize your "new tab" !!
    By Kyrax in forum Chrome Plugins
    Replies: 0
    Last Post: 04-15-2009, 12:52 AM
  3. Customize your "new tab" !!
    By Kyrax in forum Chrome Plugins
    Replies: 0
    Last Post: 04-15-2009, 12:22 AM
  4. Links to "other sites" error in the Forum
    By Calyp in forum Chrome Talk
    Replies: 0
    Last Post: 01-09-2009, 09:13 PM
  5. Make a "Kill Micro$oft's ChildsPlay" option!
    By Calyp in forum Chrome Talk
    Replies: 0
    Last Post: 01-09-2009, 08:14 PM

Posting Permissions

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