Hallo,
teste dieses Skript:
Code
(function() {
if (location != 'chrome://browser/content/browser.xul')
return;
function doTab(aTab) {
let browser = aTab.linkedBrowser;
let title = browser.currentURI.spec;
if (title == 'about:newtab' || title == 'about:home') {
browser.messageManager.loadFrameScript(
'data:, content.focus(); content.document.getElementById("newtab-search-text").focus();',
true);
};
};
// Startseite
setTimeout(function() {
doTab(gBrowser.selectedTab);
}, 1000);
// neuer Tab
gBrowser.tabContainer.addEventListener('TabOpen', function(event) {
setTimeout(function() {
doTab(event.target);
}, 500);
});
})();
Alles anzeigen