18. März 2017 um 09:46 #1 Hallo,wie kann man mit einem userChromeJS-Skript in die NavigationsBar den String "Hello World" schreiben ?Beispielcode:Anstatt dass eine MessageBox erscheint, sollte "Hello World" in die NavigationsBar geschrieben werden. Code var urlString = 'https://www.camp-firefox.de/forum/'; gBrowser.tabContainer.addEventListener('TabSelect', function(event) { if (gBrowser.currentURI.spec.startsWith(urlString)) { alert('Hello World'); }; });
18. März 2017 um 10:48 #2 Hallo, Code var input = document.getAnonymousElementByAttribute(gURLBar, 'anonid', 'input'); input.value = 'Hello World';