Reputation:
I want to create a new tab in google chrome with my extension:
chrome.tabs.create({'url': chrome.extension.getURL('page.html')}, function(page) {
// other code
});
But when new page is created the URL looks bad for me, like
chrome-extension://dfdnfdnfjdnkdfndfdf/page.html
How to create new tab with empty URL ?
I saw other extensions doing similar
Upvotes: 1
Views: 1665
Reputation: 2336
You are looking for a New Tab Override Page.
Alternatively, you could try manipulating the window.location.hash
directly from your content
script, using methods described here.
Upvotes: 1