Hallo Mira_Belle .
Ja stimmt.
Ich wollte warten bis es hier getestet ist und wie du selber gesehen
hast war eine Anpassung noch notwendig. Warte noch ob ich noch was
ändern soll - muss. Dann aktualisiere ich die Version bei Github.
Auch Dir einen schönen Sonntag.
Mfg.
Endor
Beiträge von Endor
-
-
Hallo FuchsFan .
Prima. So passt es jetzt.
Keine Fehlermeldung mehr hier.
Einen schönen Sonntag wünsche ich Dir.Mfg.
Endor -
Halle bege, und all!
Der Autor vom Script SaveTo.uc.js hat eine neue Version
veröffentlicht. Hier die übersetzte Version.
Bitte testen und gebt mir Bescheid ob alles passt.Code
Alles anzeigen// ==UserScript== // @include chrome://mozapps/content/downloads/unknownContentType.xhtml // @charset UTF-8 // @sandbox true // @version 20250615 Fx139+ // ==/UserScript== (function() { const { FileUtils } = ChromeUtils.importESModule('resource://gre/modules/FileUtils.sys.mjs'); setTimeout(function() { saveTo() }, 100); function saveTo() { // config const dirArray = [ ['C:\\', 'System'], ['D:\\', 'DATA'], ['D:\\Software', 'Software'], ['D:\\Downloads', 'herunterladen'], ['D:\\Video', 'Video'], ['' + FileUtils.getDir('UChrm', []).path + '', 'chrome'], //["" + FileUtils.getDir('UChrm', ['SubScript']).path + "", "SubScript"], ['E:\\', 'E:'], ['F:\\', 'F:'], ['G:\\', 'G:'], ['H:\\', 'H:'], ['I:\\', 'I:'], ['S:\\', 'S:'], ]; let saveTo = createEl(document, 'button', { id: 'saveto', class: 'dialog-button', size: 'small', label: 'Speichern nach', type: 'menu', }); let saveToMenu = createEl(document, 'menupopup'); saveToMenu.appendChild(createEl(document, "html:link", { rel: "stylesheet", href: "chrome://global/skin/global.css" })); saveToMenu.appendChild(createEl(document, "html:link", { rel: "stylesheet", href: "chrome://global/content/elements/menupopup.css" })); saveTo.appendChild(saveToMenu); dirArray.forEach(item => { let [name, dir] = [item[1], item[0]]; saveToMenu.appendChild(createEl(document, "menuitem", { label: name || (dir.match(/[^\\/]+$/) || [dir])[0], dir: dir, image: "moz-icon:file:///" + dir + "\\", class: "menuitem-iconic", onclick: function() { let dir = this.getAttribute('dir'); let locationtext = document.getElementById('locationtext'); let file = new FileUtils.File(dir + '\\' + (locationtext ? locationtext.value : document.getElementById('location').value)); dialog.mLauncher.saveDestinationAvailable(file); dialog.onCancel = function() {}; close(); } })); }) dialog.dialogElement('unknownContentType').getButton('cancel').before(saveTo); } function createEl (doc, type, attrs = {}) { let el = type.startsWith('html:') ? doc.createElementNS('http://www.w3.org/1999/xhtml', type) : doc.createXULElement(type); for (let key of Object.keys(attrs)) { if (key === 'innerHTML') { el.innerHTML = attrs[key]; } else if (key.startsWith('on')) { el.addEventListener(key.slice(2).toLocaleLowerCase(), attrs[key]); } else { el.setAttribute(key, attrs[key]); } } return el; } }());Wenn alles passt lade ich diese Version dann anstelle der vorhandenen hoch.
Mfg.
Endor -
Hallo @Horstmann.
Vielen Dank!Habe Deine Version nun hoch geladen.
userChrome.js/Firefox 139/bookmark_count.uc.js at master · Endor8/userChrome.jsSkripte für die Firefox-Erweiterung userChromeJS. Contribute to Endor8/userChrome.js development by creating an account on GitHub.github.comVielen Dank nochmals.
Mfg.
Endor -
-
Hallo @Horstmann .
Danke für Dein Script. Funktioniert sehr gut. Nur eine Frage
wo im Script kann ich die Farbe des Textes der Ordneranzahl ändern.Habe es hier probiert, Absatz D ab Zeile 109, da wirkt es nur für die Lesezeichen.
Code
Alles anzeigen/* D */ /* Farben Text / svg! Icons aendern , anpassen nach Belieben */ /* Info: HSL Farben: https://www.w3schools.com/css/css_colors_hsl.asp */ /* Ordner Icon, Zahl / Links Icon, Zahl / Trennlinie */ #bmContent.bm_my_colors { --folder_fill: hsl(0, 100%, 50%, 1)); --folder_color: hsl(0, 100%, 50%, 1)); --link_fill: hsl(0, 100%, 50%, 1); --link_color: hsl(0, 100%, 50%, 1); --trenn_color: hsl(250, 60%, 30%, 1); }Mfg.
Endor -
Bitte mal testen:
JavaScript
Alles anzeigen(function() { if (location != "chrome://browser/content/browser.xhtml") return; try { // Firefox 'Über Firefox' // Tooltiptext: 'Über Firefox öffnen', CustomizableUI.createWidget({ id: 'openAboutDialog-ToolBarButton', type: 'custom', onBuild: function(aDocument) { let toolbaritem = aDocument.createXULElement('toolbarbutton'); let props = { id: 'openAboutDialog-ToolBarButton', class: 'toolbarbutton-1 chromeclass-toolbar-additional', label: 'Über Firefox', accesskey: 'i', tooltiptext: 'Über Firefox öffnen', style: 'list-style-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABnlBMVEVHcEwAAAAABQoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGi8AAAAAAAAACAwAIzcAHTIABQoAHjMAGCsAHjEAPV0ANlgAAAAAHDAAAAAAAAAABAcALVAAAAAABAcANlIANVAAMlQAHzEAAwUAJ0QAAAAALEkAAAAAAAAABAYAdsIAcb0Aa7kAfMcAgswAh9EAldwAZrQAjdUAlNsAargAcb4AdrEAd8MAkNgAj9cAktr///8AZ7UAeLwAY68AXKQAe74AhM4AgcsAZ7YAZZkAg80AY5gAbrMAidIAcL0AfscJfMQAidAaic0Ae8UAeLkAeroAhc8AfMgCg8wAS4MAecUAUYgAWJgAWZ40jssAW5q01+2w2O/j7/g0jsoAlt3O5fQAZ5YAaZgAjdYBg8wAk9tCntYAhLvK5vVwv+j1+v36/P7f8PnS6vYAi9MAhbwAjNRcuudaueft9vuAxuqn2vKj2PIzm9YAiNLN6PYBk9rL5/YEidEDidEAaLbZ6fQAZrUAa63J3/CSvd8AV5aHttsAWZgAdMAARnsATIBnpYJbAAAAKnRSTlMAJJU3QlpXDAURC9shD5Td3pLe19r19VvZDUSG9COF7Oz12oPrOO02WIa8WgzIAAAA7UlEQVQY02NgAAEOZjY2Zg4GGGCXU0hMz0+Sl2aH8BklAuKNLY0Kkv1FGEF8TgEfg1RjA2OLCj0vIU6gAJODgZVVUWlZYVVekDsTA4OkmIGlUaZ1daV1iVGguSI7g5Sbhb5+Rk5tTXGuvr55GAuDuJmHnl5wil55doyeXmgUKwOrmasuEKRlJfjq6mqFszKwuDhpAUF0rDeQ9AxhYWAXdTTV1taOiwQS2iYyXAwMfLZaOjo6TfVAwsReEOQwfj/TBsPWZkNDZztuXpBTZZUa23VsDG3qIoR5oJ7TVOtsa+lQUeaC+5dDVYNNHeJ9AMPoLvVmYcZtAAAAAElFTkSuQmCC)', }; for (var p in props) { toolbaritem.setAttribute(p, props[p]); } toolbaritem.addEventListener("command", (event) => { event.target.ownerGlobal.openAboutDialog(); }); return toolbaritem; } }); } catch(e){}; })();Mfg.
Endor -
Hallo *Nobbi* .
Auch von mir alles alles Gute zum Geburtstag. Vor allem viel Gesundheit aber auch viel Glück und Wohlergehen wünsche ich dir von ganzem Herzen bleibt gesund.
Viele Grüße
Endor -
bege
erledigt:userChrome.js/Firefox 139/SaveTo.uc.js at master · Endor8/userChrome.jsSkripte für die Firefox-Erweiterung userChromeJS. Contribute to Endor8/userChrome.js development by creating an account on GitHub.github.comMfg.
Endor -
Halle bege
Kann ich gerne machen.
Würde vorschlagen mein vorhandenes mit obigem ersetzen.
Was meinst Du - Ihr?Mfg.
Endor -
Hallo zusammen.
Für das Script saveto.uc.js gibt es eine neue Version für Firefox 139
Denkt daran eure Anpassungen - Änderungen zu übertragen.CSS
Alles anzeigen// ==UserScript== // @include chrome://mozapps/content/downloads/unknownContentType.xhtml // @charset UTF-8 // @sandbox true // @version Fx139+ // ==/UserScript== (function() { const {FileUtils} = ChromeUtils.importESModule('resource://gre/modules/FileUtils.sys.mjs'); const {setTimeout} = ChromeUtils.importESModule('resource://gre/modules/Timer.sys.mjs'); const css = ` hbox.dialog-button-box button.dialog-button menupopup { background: #F0F0F0 !important; border: 1px solid #CCCCCC !important; padding: 2px !important; } hbox.dialog-button-box button.dialog-button menupopup menuitem.menuitem-iconic:hover { background: #91C9F7 !important; } hbox.dialog-button-box button.dialog-button menupopup menuitem.menuitem-iconic hbox.menu-iconic { padding: 3px !important; } hbox.dialog-button-box button.dialog-button menupopup menuitem.menuitem-iconic label.menu-iconic-text{ padding: 3px !important; padding-left: 5px !important; padding-right: 12px !important; }`; const sss = Cc['@mozilla.org/content/style-sheet-service;1'].getService(Ci.nsIStyleSheetService); try { const uri = Services.io.newURI('data:text/css,' + encodeURIComponent(css)); if(!sss.sheetRegistered(uri, sss.AGENT_SHEET)) sss.loadAndRegisterSheet(uri, sss.AGENT_SHEET); } catch (ex) {} setTimeout(function() { saveTo() }, 200); function saveTo() { // config const dirArray = [ ['C:\\', 'System'], ['D:\\', 'DATA'], ['D:\\Software', 'Software'], ['D:\\Downloads', 'herunterladen'], ['D:\\Video', 'Video'], ['' + FileUtils.getDir('UChrm', []).path + '', 'chrome'], //['' + FileUtils.getDir('UChrm', ['SubScript']).path + '', 'SubScript'], ['F:\\', 'F:'], ['G:\\', 'G:'], ['H:\\', 'H:'], ]; const button = document.getElementById('unknownContentType').getButton('cancel'); const saveTo = button.parentNode.insertBefore(document.createXULElement('button'), button); const saveToMenu = saveTo.appendChild(document.createXULElement('menupopup')); saveTo.classList.toggle('dialog-button'); saveTo.label = 'Speichern nach'; saveTo.type = 'menu'; dirArray.forEach(function(dir) { const name = dir[1]; dir = dir[0]; const mi = document.createXULElement('menuitem'); const item = saveToMenu.appendChild(mi); item.setAttribute('label', (name || (dir.match(/[^\\/]+$/) || [dir])[0])); item.setAttribute('image', 'moz-icon:file:///' + dir + '\\'); item.setAttribute('class', 'menuitem-iconic'); item.addEventListener('click', function() { const locationtext = document.getElementById('locationtext'); const file = new FileUtils.File(dir + '\\' + (locationtext ? locationtext.value : document.getElementById('location').value)); dialog.mLauncher.saveDestinationAvailable(file); dialog.onCancel = function() {}; close(); }); }); } }());Diese Version ist nun auch bei Github zu finden:
userChrome.js/Firefox 139/saveto.uc.js at master · Endor8/userChrome.jsSkripte für die Firefox-Erweiterung userChromeJS. Contribute to Endor8/userChrome.js development by creating an account on GitHub.github.comMfg.
Endor -
Hallo 2002Andreas
Danke für den Hinweis.
Ich warte damit noch bis der Autor Alice sich bei Github meldet.
Mal sehen.
Mfg.
Endor -
Hallo Speravir .
Vielen Dank. Habe Deinen fix in meine deutsche Version übertragen:userChrome.js/Firefox 135/UndoListInTabmenuToo.uc.js at master · Endor8/userChrome.jsSkripte für die Firefox-Erweiterung userChromeJS. Contribute to Endor8/userChrome.js development by creating an account on GitHub.github.comMfg.
Endor -
Hallo omar1979
Hast Du in Firefox 139 in about:config den Eintrag
security.browser_xhtml_csp.enabled auf false gesetzt?
Sonst geht das Script nicht mehr.
Wenn ja, müsstest Du bitte deine Version vom Script
mal ganz hier einstellen. Dann kann man es vergleichen.Mfg.
Endor -
Ja die Scripte werden in der Reihenfolge wie sie im Ordner sind geladen.
Daher habe ich hier alle Scripe die mit Leisten zu tun haben bei der Bezeichnung
eine 0- Null mit Bindestrich voran gestellt.
Also zbs: 0-Leiste1.uc.js , 0-Leiste2.uc.js usw.
So werden die als erstes geladen und dann erst andere Scripte die sich auf diese
Leisten beziehen.
Mfg.
Endor -
Endor hat geschrieben, dass er kaum Zeit hat.
Danke Speravir.
Genau so ist es. Beruf und schwer kranker Vater, da bleibt fast keine Zeit mehr
für was anderes. Ich aktualisiere gerne alle Scripte sobald ihr sie fertig habt.
Gebt mir bitte Bescheid. Auch wenn ich nicht ein geloggt bin lese ich immer mit.
Viele Grüße
Endor -
Speravir und Mira_Belle .
Habe alle drei Scripte hoch geladen.
Bitte kontrollieren:userChrome.js/Firefox 138 at master · Endor8/userChrome.jsSkripte für die Firefox-Erweiterung userChromeJS. Contribute to Endor8/userChrome.js development by creating an account on GitHub.github.comMfg.
Endor -
Hallo milupo und Mira_Belle .
Vielen Dank nochmals und habe ich schon erledigt:userChrome.js/Firefox 138/AddOnLister.uc.js at master · Endor8/userChrome.jsSkripte für die Firefox-Erweiterung userChromeJS. Contribute to Endor8/userChrome.js development by creating an account on GitHub.github.comMira_Belle
Danke für das Einfügen der neuen Versionsnummer.
Mfg.
Endor -
Hallo milupo.
Vielen Dank funktioniert wieder bestens.
Habe es in Firefox 138.0.1 und 139.0b3 getestet.
Alles funktioniert wie es soll.
Mfg.
Endor -
Hallo GermanFreme82
Ne das schaff ich nicht. Ich brauche auch immer Hilfe....
Ändere in Zeile 35 bei TabBar_Position die 0 auf 1, starte Firefox neu mit Cache leeren
dann müsste die Tableiste wieder unten sein.
Mfg.
Endor