Beiträge von robotest
-
-
Danke milupo, sieht jetzt so aus, und funktionieren leider nicht. Oder mache ich was falsch? Im FF 68.0b2 funktioniert alles.
1 Adressleiste_verschiebbar
Code
Alles anzeigen(function() { if (location != 'chrome://browser/content/browser.xul') return; // Adressleiste verschiebbar try { CustomizableUI.createWidget({ id: 'ucjs_urlbar-item', type: 'custom', defaultArea: CustomizableUI.AREA_NAVBAR, onBuild: function(aDocument) { var toolbaritem = aDocument.createElementNS('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul', 'toolbaritem'); toolbaritem.id = 'ucjs_urlbar-item'; toolbaritem.className = 'chromeclass-toolbar-additional'; toolbaritem.setAttribute('label', 'Adressleiste'); return toolbaritem; } }); } catch(e) { }; document.getElementById('ucjs_urlbar-item').appendChild(document.getElementById('urlbar-container')); // Vor/Zuruck-Schaltflachen verschiebbar try { CustomizableUI.createWidget({ id: 'ucjs_back-item', type: 'custom', defaultArea: CustomizableUI.AREA_NAVBAR, onBuild: function(aDocument) { var toolbaritem = aDocument.createElementNS('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul', 'toolbaritem'); toolbaritem.id = 'ucjs_back-item'; toolbaritem.className = 'chromeclass-toolbar-additional'; toolbaritem.setAttribute('label', 'Zuruck'); return toolbaritem; } }); } catch(e) { }; document.getElementById('ucjs_back-item').appendChild(document.getElementById('back-button')); try { CustomizableUI.createWidget({ id: 'ucjs_forward-item', type: 'custom', defaultArea: CustomizableUI.AREA_NAVBAR, onBuild: function(aDocument) { var toolbaritem = aDocument.createElementNS('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul', 'toolbaritem'); toolbaritem.id = 'ucjs_forward-item'; toolbaritem.className = 'chromeclass-toolbar-additional'; toolbaritem.setAttribute('label', 'Vor'); return toolbaritem; } }); } catch(e) { }; document.getElementById('ucjs_forward-item').appendChild(document.getElementById('forward-button')); // Mehr-Werkzeuge-Schaltflache verschiebbar try { CustomizableUI.createWidget({ id: 'ucjs_overflow-item', type: 'custom', defaultArea: CustomizableUI.AREA_NAVBAR, onBuild: function(aDocument) { var toolbaritem = aDocument.createElementNS('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul', 'toolbaritem'); toolbaritem.id = 'ucjs_overflow-item'; toolbaritem.className = 'chromeclass-toolbar-additional'; toolbaritem.setAttribute('label', 'Mehr Werkzeuge'); return toolbaritem; } }); } catch(e) { }; document.getElementById('ucjs_overflow-item').appendChild(document.getElementById('nav-bar-overflow-button')); // Menuleiste verschiebbar try { CustomizableUI.createWidget({ id: 'ucjs_menubar-item', type: 'custom', defaultArea: CustomizableUI.AREA_MENUBAR, onBuild: function(aDocument) { var toolbaritem = aDocument.createElementNS('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul', 'toolbaritem'); toolbaritem.id = 'ucjs_menubar-item'; toolbaritem.className = 'chromeclass-toolbar-additional'; toolbaritem.setAttribute('label', 'Menuleiste'); return toolbaritem; } }); } catch(e) { }; document.getElementById('ucjs_menubar-item').appendChild(document.getElementById('main-menubar')); })();
Skript 4 ImLesezeichenMenuSpeichern
Code(function() { if (location != 'chrome://browser/content/browser.xhtml') return; eval('PlacesCommandHook.bookmarkPage = ' + PlacesCommandHook.bookmarkPage.toString() .replace(/^async/, 'async function') .replace(/unfiledGuid/g, 'menuGuid') ); })();
5 Neustart
Code
Alles anzeigen(function() { // Add "Restart" to menu > file var menuitem = document.createXULElement('menuitem'); menuitem.id = 'uc_menu_Restart'; menuitem.setAttribute('label' , 'Neustarten'); menuitem.setAttribute('oncommand' , "Services.appinfo.invalidateCachesOnRestart() || BrowserUtils.restartApplication();"); var refItem = document.getElementById('menu_FileQuitItem'); refItem.parentNode.insertBefore(menuitem, refItem); })();
6 Tastatur
Code
Alles anzeigen(function () { if (location != 'chrome://browser/content/browser.xhtml') return; try { /* *************************************************************** Pfad zum auszuführenden Programm ODER Ordner definieren: var APPpath = 'C:\\Windows\\notepad.exe'; var APPpath = 'C:\\Windows\\'; ***************************************************************** Label und Tooltip definieren: var label = "Notepad"; var tooltiptext = "Notepad starten"; ***************************************************************** */ var APPpath = 'C:\\Windows\\System32\\osk.exe'; var label = 'Notepad'; var tooltiptext = 'Notepad starten'; Components.utils.import("resource:///modules/CustomizableUI.jsm"); CustomizableUI.createWidget({ id: "ucjs-" + label + "-button", defaultArea: CustomizableUI.AREA_NAVBAR, removable: true, label: label, tooltiptext: tooltiptext, onClick: function () { var file = Cc['@mozilla.org/file/local;1'].createInstance(Ci.nsIFile); file.initWithPath(APPpath); file.launch(); }, onCreated: function (aNode) { var ICOpath = APPpath.replace(/\\/g, "//"); aNode.style.listStyleImage = 'url("moz-icon:file:///' + ICOpath + '?size=16")' return aNode; } }); } catch (e) { Components.utils.reportError(e); }; })();
-
Möchte gerne um Hilfe bitten, diese Scripte funktionieren bei mir nicht mehr, Vielen Dank im voraus
1 Adressleiste_verschiebbar
Code
Alles anzeigen(function() { if (location != 'chrome://browser/content/browser.xhtml') return; // Adressleiste verschiebbar try { CustomizableUI.createWidget({ id: 'ucjs_urlbar-item', type: 'custom', defaultArea: CustomizableUI.AREA_NAVBAR, onBuild: function(aDocument) { var toolbaritem = aDocument.createXULElementNS('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul', 'toolbaritem'); toolbaritem.id = 'ucjs_urlbar-item'; toolbaritem.className = 'chromeclass-toolbar-additional'; toolbaritem.setAttribute('label', 'Adressleiste'); return toolbaritem; } }); } catch(e) { }; document.getElementById('ucjs_urlbar-item').appendChild(document.getElementById('urlbar-container')); // Vor/Zuruck-Schaltflachen verschiebbar try { CustomizableUI.createWidget({ id: 'ucjs_back-item', type: 'custom', defaultArea: CustomizableUI.AREA_NAVBAR, onBuild: function(aDocument) { var toolbaritem = aDocument.createXULElementNS('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul', 'toolbaritem'); toolbaritem.id = 'ucjs_back-item'; toolbaritem.className = 'chromeclass-toolbar-additional'; toolbaritem.setAttribute('label', 'Zuruck'); return toolbaritem; } }); } catch(e) { }; document.getElementById('ucjs_back-item').appendChild(document.getElementById('back-button')); try { CustomizableUI.createWidget({ id: 'ucjs_forward-item', type: 'custom', defaultArea: CustomizableUI.AREA_NAVBAR, onBuild: function(aDocument) { var toolbaritem = aDocument.createXULElementNS('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul', 'toolbaritem'); toolbaritem.id = 'ucjs_forward-item'; toolbaritem.className = 'chromeclass-toolbar-additional'; toolbaritem.setAttribute('label', 'Vor'); return toolbaritem; } }); } catch(e) { }; document.getElementById('ucjs_forward-item').appendChild(document.getElementById('forward-button')); // Mehr-Werkzeuge-Schaltflache verschiebbar try { CustomizableUI.createWidget({ id: 'ucjs_overflow-item', type: 'custom', defaultArea: CustomizableUI.AREA_NAVBAR, onBuild: function(aDocument) { var toolbaritem = aDocument.createXULElementNS('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul', 'toolbaritem'); toolbaritem.id = 'ucjs_overflow-item'; toolbaritem.className = 'chromeclass-toolbar-additional'; toolbaritem.setAttribute('label', 'Mehr Werkzeuge'); return toolbaritem; } }); } catch(e) { }; document.getElementById('ucjs_overflow-item').appendChild(document.getElementById('nav-bar-overflow-button')); // Menuleiste verschiebbar try { CustomizableUI.createWidget({ id: 'ucjs_menubar-item', type: 'custom', defaultArea: CustomizableUI.AREA_MENUBAR, onBuild: function(aDocument) { var toolbaritem = aDocument.createXULElementNS('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul', 'toolbaritem'); toolbaritem.id = 'ucjs_menubar-item'; toolbaritem.className = 'chromeclass-toolbar-additional'; toolbaritem.setAttribute('label', 'Menuleiste'); return toolbaritem; } }); } catch(e) { }; document.getElementById('ucjs_menubar-item').appendChild(document.getElementById('main-menubar')); })();
2 DownloadSound
Code
Alles anzeigenvar downloadPlaySound = { // -- config -- DL_DONE : "file:///D:/Разное/Firefox/Sound/Piano.wav", // -- config -- _list: null, init: function sampleDownload_init() { XPCOMUtils.defineLazyModuleGetter(window, "Downloads", "resource://gre/modules/Downloads.jsm"); //window.removeEventListener("load", this, false); window.addEventListener("unload", this, false); //**** Zusätzliche Downloads Überwachung if (!this._list) { Downloads.getList(Downloads.ALL).then(list => { this._list = list; return this._list.addView(this); }).then(null, Cu.reportError); } }, uninit: function() { window.removeEventListener("unload", this, false); if (this._list) { this._list.removeView(this); } }, onDownloadAdded: function (aDownload) { //**** ダウンロード開始イベント if (this.DL_START) this.playSoundFile(this.DL_START); }, onDownloadChanged: function (aDownload) { //**** ダウンロードキャンセル if (aDownload.canceled && this.DL_CANCEL) this.playSoundFile(this.DL_CANCEL) //**** ダウンロード失敗 if (aDownload.error && this.DL_FAILED) this.playSoundFile(this.DL_FAILED) //**** ダウンロード完了 if (typeof aDownload.downloadPlaySound == "undefined" && aDownload.succeeded && aDownload.stopped && this.DL_DONE) { aDownload.downloadPlaySound = true; this.playSoundFile(this.DL_DONE); } }, playSoundFile: function(aFilePath) { if (!aFilePath) return; var ios = Components.classes["@mozilla.org/network/io-service;1"] .createInstance(Components.interfaces["nsIIOService"]); try { var uri = ios.newURI(aFilePath, "UTF-8", null); } catch(e) { return; } var file = uri.QueryInterface(Components.interfaces.nsIFileURL).file; if (!file.exists()) return; this.play(uri); }, play: function(aUri) { var sound = Components.classes["@mozilla.org/sound;1"] .createInstance(Components.interfaces["nsISound"]); sound.play(aUri); }, handleEvent: function(event) { switch (event.type) { case "unload": this.uninit(); break; } } } downloadPlaySound.init();
3 Google,YouTube Tasten
Code
Alles anzeigen(function() { try { Components.utils.import("resource:///modules/CustomizableUI.jsm"); CustomizableUI.createWidget({ id: "fp-youtube", defaultArea: CustomizableUI.AREA_NAVBAR, removable: true, label: "YouTube", tooltiptext: "YouTube", onClick: function() { openWebLinkIn('https://www.youtube.com/', 'current'); }, onCreated: function(aNode) { aNode.style.listStyleImage = 'url("https://www.youtube.com/yts/img/favicon-vfl8qSV2F.ico")'; return aNode; } }); } catch (e) { Components.utils.reportError(e); }; })(); (function() { try { Components.utils.import("resource:///modules/CustomizableUI.jsm"); CustomizableUI.createWidget({ id: "fp-google", defaultArea: CustomizableUI.AREA_NAVBAR, removable: true, label: "Google", tooltiptext: "Google", onClick: function() { openWebLinkIn('https://www.google.de/', 'current'); }, onCreated: function(aNode) { aNode.style.listStyleImage = 'url("https://www.google.de/images/branding/product/ico/googleg_lodp.ico")'; return aNode; } }); } catch (e) { Components.utils.reportError(e); }; })();
4 ImLesezeichenMenuSpeichern
Code(function() { if (location != 'chrome://browser/content/browser.xul') return; eval('PlacesCommandHook.bookmarkPage = ' + PlacesCommandHook.bookmarkPage.toString() .replace(/^async/, 'async function') .replace(/unfiledGuid/g, 'menuGuid') ); })();
5 Neustart
Code
Alles anzeigen(function() { // Add "Restart" to menu > file var menuitem = document.createElement('menuitem'); menuitem.id = 'uc_menu_Restart'; menuitem.setAttribute('label' , 'Neustarten'); menuitem.setAttribute('oncommand' , "Services.appinfo.invalidateCachesOnRestart() || BrowserUtils.restartApplication();"); var refItem = document.getElementById('menu_FileQuitItem'); refItem.parentNode.insertBefore(menuitem, refItem); })();
6 Tastatur
Code
Alles anzeigen(function () { if (location != 'chrome://browser/content/browser.xul') return; try { /* *************************************************************** Pfad zum auszuführenden Programm ODER Ordner definieren: var APPpath = 'C:\\Windows\\notepad.exe'; var APPpath = 'C:\\Windows\\'; ***************************************************************** Label und Tooltip definieren: var label = "Notepad"; var tooltiptext = "Notepad starten"; ***************************************************************** */ var APPpath = 'C:\\Windows\\System32\\osk.exe'; var label = 'Notepad'; var tooltiptext = 'Notepad starten'; Components.utils.import("resource:///modules/CustomizableUI.jsm"); CustomizableUI.createWidget({ id: "ucjs-" + label + "-button", defaultArea: CustomizableUI.AREA_NAVBAR, removable: true, label: label, tooltiptext: tooltiptext, onClick: function () { var file = Cc['@mozilla.org/file/local;1'].createInstance(Ci.nsIFile); file.initWithPath(APPpath); file.launch(); }, onCreated: function (aNode) { var ICOpath = APPpath.replace(/\\/g, "//"); aNode.style.listStyleImage = 'url("moz-icon:file:///' + ICOpath + '?size=16")' return aNode; } }); } catch (e) { Components.utils.reportError(e); }; })();
-
Alles klar, danke :klasse:
-
Danke Andreas, ich versuche es, bin aber sehr skeptisch, dass es funktionieren wird.
-
Genau, funktioniert nicht mehr, und noch ein Paar andere, muss ich neues Thema erstellen oder kann ich hier bleiben/fragen?
-
Danke Andreas, darf ich dann hier fragen, korregieren lassen? Zum beispiel:
Adressleiste_verschiebbar.uc
Code
Alles anzeigen(function() { if (location != 'chrome://browser/content/browser.xul') return; // Adressleiste verschiebbar try { CustomizableUI.createWidget({ id: 'ucjs_urlbar-item', type: 'custom', defaultArea: CustomizableUI.AREA_NAVBAR, onBuild: function(aDocument) { var toolbaritem = aDocument.createElementNS('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul', 'toolbaritem'); toolbaritem.id = 'ucjs_urlbar-item'; toolbaritem.className = 'chromeclass-toolbar-additional'; toolbaritem.setAttribute('label', 'Adressleiste'); return toolbaritem; } }); } catch(e) { }; document.getElementById('ucjs_urlbar-item').appendChild(document.getElementById('urlbar-container')); // Vor/Zuruck-Schaltflachen verschiebbar try { CustomizableUI.createWidget({ id: 'ucjs_back-item', type: 'custom', defaultArea: CustomizableUI.AREA_NAVBAR, onBuild: function(aDocument) { var toolbaritem = aDocument.createElementNS('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul', 'toolbaritem'); toolbaritem.id = 'ucjs_back-item'; toolbaritem.className = 'chromeclass-toolbar-additional'; toolbaritem.setAttribute('label', 'Zuruck'); return toolbaritem; } }); } catch(e) { }; document.getElementById('ucjs_back-item').appendChild(document.getElementById('back-button')); try { CustomizableUI.createWidget({ id: 'ucjs_forward-item', type: 'custom', defaultArea: CustomizableUI.AREA_NAVBAR, onBuild: function(aDocument) { var toolbaritem = aDocument.createElementNS('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul', 'toolbaritem'); toolbaritem.id = 'ucjs_forward-item'; toolbaritem.className = 'chromeclass-toolbar-additional'; toolbaritem.setAttribute('label', 'Vor'); return toolbaritem; } }); } catch(e) { }; document.getElementById('ucjs_forward-item').appendChild(document.getElementById('forward-button')); // Mehr-Werkzeuge-Schaltflache verschiebbar try { CustomizableUI.createWidget({ id: 'ucjs_overflow-item', type: 'custom', defaultArea: CustomizableUI.AREA_NAVBAR, onBuild: function(aDocument) { var toolbaritem = aDocument.createElementNS('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul', 'toolbaritem'); toolbaritem.id = 'ucjs_overflow-item'; toolbaritem.className = 'chromeclass-toolbar-additional'; toolbaritem.setAttribute('label', 'Mehr Werkzeuge'); return toolbaritem; } }); } catch(e) { }; document.getElementById('ucjs_overflow-item').appendChild(document.getElementById('nav-bar-overflow-button')); // Menuleiste verschiebbar try { CustomizableUI.createWidget({ id: 'ucjs_menubar-item', type: 'custom', defaultArea: CustomizableUI.AREA_MENUBAR, onBuild: function(aDocument) { var toolbaritem = aDocument.createElementNS('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul', 'toolbaritem'); toolbaritem.id = 'ucjs_menubar-item'; toolbaritem.className = 'chromeclass-toolbar-additional'; toolbaritem.setAttribute('label', 'Menuleiste'); return toolbaritem; } }); } catch(e) { }; document.getElementById('ucjs_menubar-item').appendChild(document.getElementById('main-menubar')); })();
-
Muss man jetzt jeden Skript einzeln korregieren (korregieren lassen), oder gibt es eine universäle lösung?
-
Uwe69 Danke dir :klasse:
-
AngelOfDarkness ich meinte, dass ich 3 sekunden nicht warten will.
aborix beliebige seiten, halt alles was in den Briefkasten kommt.
-
Danke Der Feuerfuchs, das ist mir schon klar, dachte nur, man kann es mit einem Skript, irgendwie, umgehen.
-
Hallo, kann man gmx weiterleitung irgendwie umgehen, ausschalten
-
Boersenfeger danke dir.
aborix alles klar, danke. -
Hallo,
bei mir funktionieren leider diese 2 Skripte nicht mehr.
Vielen Dank im voraus! (FF67.0b1)
Neustart.uc.jsCode
Alles anzeigen(function() { // Add "Restart" to menu > file var menuitem = document.createElement('menuitem'); menuitem.id = 'uc_menu_Restart'; menuitem.setAttribute('label' , 'Neustarten'); menuitem.setAttribute('oncommand' , "Services.appinfo.invalidateCachesOnRestart() || BrowserUtils.restartApplication();"); var refItem = document.getElementById('menu_FileQuitItem'); refItem.parentNode.insertBefore(menuitem, refItem); })();
Tastatur.js
Code
Alles anzeigen(function () { if (location != 'chrome://browser/content/browser.xul') return; try { /* *************************************************************** Pfad zum auszuführenden Programm ODER Ordner definieren: var APPpath = 'C:\\Windows\\System32\\osk.exe'; var APPpath = 'C:\\Windows\\'; ***************************************************************** Label und Tooltip definieren: var label = "osk"; var tooltiptext = "osk starten"; ***************************************************************** */ var APPpath = 'C:\\Windows\\System32\\osk.exe'; var label = 'osk'; var tooltiptext = 'osk starten'; Components.utils.import("resource:///modules/CustomizableUI.jsm"); CustomizableUI.createWidget({ id: "ucjs-" + label + "-button", defaultArea: CustomizableUI.AREA_NAVBAR, removable: true, label: label, tooltiptext: tooltiptext, onClick: function () { var file = Cc['@mozilla.org/file/local;1'].createInstance(Ci.nsIFile); file.initWithPath(APPpath); file.launch(); }, onCreated: function (aNode) { var ICOpath = APPpath.replace(/\\/g, "//"); aNode.style.listStyleImage = 'url("moz-icon:file:///' + ICOpath + '?size=16")' return aNode; } }); } catch (e) { Components.utils.reportError(e); }; })();
-
-
-
-
-
-