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": ...
I'm writing an extension. in the mainfest.json i used the following code.
which gave the " could not load the extension .......{
"format_version": 1,
"version": "1.0",
"name": "myextension",
"background_page": "background.html",
"content_scripts": [
{
"matches": ["chrome://newtab/*"],
"js": ["abc.js"]
}
]
}
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
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
it worked. thanks a lot!
Hi everyone, I'm new here and I can't install it, can anyone help me?? Thanks!
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?