Trauerfeier für Kong Harald
Beiträge von Boersenfeger
-
-
-
Ja, das Script kann ich liefern:
JavaScript
Alles anzeigen// ==UserScript== // @name dav_LinkifiesLocationBar.us.js // @version ? // @description dav_LinkifiesLocationBar // @based on https://github.com/sdavidg/firefoxChromeScripts/blob/main/scripts/dav_LinkifiesLocationBar.uc.js // @modified by Mira_Belle [https://www.camp-firefox.de/forum/] // ==/UserScript== /* Idea based on https://addons.mozilla.org/en-US/firefox/addon/locationbar%C2%B2/ https://github.com/simonlindholm/locationbar2 */ setTimeout(function() { if (location.href != 'chrome://browser/content/browser.xhtml') return; function getWindow(){ return window; } var localWindow = getWindow(); localWindow.dav_LinkifiesLocationBar = {}; var styleBase = ` @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); .claseLocationBar{ display: block; position: absolute; height: 24px; width: 100%; line-height: 24px; white-space:nowrap; overflow:hidden; } .claseLocationBar span{ position: relative; margin: 0 1px; display: inline-block; } .claseLocationBar .label_pathname { margin-inline: unset !important; } locationBarTag{ display: inline; } /* Von mir hinzugefügt! */ /* .claseLocationBar span.protocol{ display: none; } */ /************************************* *************** COLORS *************** *************************************/ .claseLocationBar span.protocol{ font-weight: bold; color: #c1121c; margin-right: -1px; } .claseLocationBar .subdomain { font-weight: bold; color: #397ff8; } .claseLocationBar span.hostname{ font-weight: bold; color: #038709; } .claseLocationBar span.port{ color: #00aeff; } .claseLocationBar span.pathname{ color: #ff0700; } .claseLocationBar span.hash{ color: #00ffff; margin-left: -1px; } .claseLocationBar span.search{ color: #3900FF; } .claseLocationBar .extension{ color: #ffffff; } `; var style_pathnameArrow = ` @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); .claseLocationBar span.pathname{ padding-left:9px; margin: 0 2px; } .claseLocationBar .pathname:before{ content:'/'; font-weight: bold; margin-left: -10px; margin-right: 2px; color: #0db7bc; } .claseLocationBar .label_pathname{ display: none; } `; var stylexul = ` .urlbar-input-box[dav_LinkifiesLocationBar] #urlbar-input:focus ~ .claseLocationBar{ display: none !important; } .urlbar-input-box[dav_LinkifiesLocationBar] #urlbar-input:focus{ opacity: 1; } .urlbar-input-box[dav_LinkifiesLocationBar] #urlbar-input{ opacity: 0; } `; /* AGENT_SHEET: 0 USER_SHEET: 1 AUTHOR_SHEET: 2 */ var CSS_Loader = { sss: Components.classes["@mozilla.org/content/style-sheet-service;1"].getService(Components.interfaces.nsIStyleSheetService), load: function(cssCode) { this.unload(cssCode); var uri = Services.io.newURI("data:text/css;charset=utf-8," + encodeURIComponent(cssCode), null, null); this.sss.loadAndRegisterSheet(uri, this.sss.AGENT_SHEET); }, unload: function(cssCode) { var uri = Services.io.newURI("data:text/css;charset=utf-8," + encodeURIComponent(cssCode), null, null); if (this.sss.sheetRegistered(uri,this.sss.AGENT_SHEET)) { this.sss.unregisterSheet(uri,this.sss.AGENT_SHEET); } } } function extend() { var copy, target = {}; for (var i = 0, l = arguments.length; i < l; i++) { var options = arguments[i]; for (var name in options) { copy = options[name]; if (copy !== undefined) { target[name] = copy; } } } return target; } var styleString = (style) => { return Object.keys(style).reduce((prev, curr) => { return `${prev += curr.split(/(?=[A-Z])/).join('-').toLowerCase()}:${style[curr]};` }, ''); }; function createElement(elto) { elto = extend({ attrArray: {}, evtListener: [], estilos: {} }, elto); var node = getWindow().document.createXULElement(elto.type); Object.keys(elto.attrArray).forEach(key => { if(key == "innerHTML"){ node.innerHTML = encodeHTML(elto.attrArray[key]); } else { node.setAttribute(key, elto.attrArray[key]); } }); elto.evtListener.forEach(evt => { node.addEventListener(evt.type, evt.funcion, false); }); let estilo = styleString(elto.estilos); if (estilo) { node.setAttribute("style", estilo); } return node; } function encodeHTML(text) { return decodeURI(text) .replace(/&/g, '&') .replace(/</g, '<') .replace(/>/g, '>') .replace(/"/g, '"') .replace(/'/g, '''); } function appendPart(text, clase) { // Nur leere Strings abbrechen – außer bei pathname if (!text && clase !== "pathname") return; if (clase == "pathname") { let spSlash = createElement({ type: "label", attrArray: { class: "label_pathname", innerHTML: "/" } }); divLocationBar.appendChild(spSlash); } let sp = createElement({ type: "span", attrArray: { class: clase, innerHTML: text || "" // Auch "" explizit anzeigen }, }); divLocationBar.appendChild(sp); sp.setAttribute("href", divLocationBar.textContent); return sp; } function borraPrevio() { var divPrevio = localWindow.document.querySelector(".claseLocationBar"); if (divPrevio) { divPrevio.parentNode.removeChild(divPrevio) } } var debounce = (fn, ms = 0) => { let timeoutId; return function(...args) { clearTimeout(timeoutId); timeoutId = setTimeout(() => fn.apply(this, args), ms); }; }; var pintaLocation = debounce(pintaLocation_, 50); function pintaLocation_() { divLocationBar.innerHTML = ''; var urlBarInput = getWindow().document.querySelector("#urlbar-input").value; var urlGBrowser = gBrowser.currentURI.displaySpec; if (urlGBrowser.startsWith("about")) { divLocationBar.innerHTML = encodeHTML(urlBarInput); return; } var url = urlGBrowser.indexOf(urlBarInput) !== -1 ? urlGBrowser : urlBarInput; try { var { protocol, hostname, port, pathname, hash, search } = new URL(url); } catch (e) { console.error("Fehler beim Parsen der URL:", e); divLocationBar.innerHTML = encodeHTML(urlBarInput); return; } var partido = hostname.split("."); var subdomain; if (partido.length > 2 && !partido.every(v => v == v - 0)) { //Es wird geprüf, ob es sich nicht um eine IP handelt (nur Zahlen) subdomain = partido.splice(0, partido.length - 2).join("."); hostname = partido.join("."); } appendPart(protocol + "//", "protocol"); if (subdomain) { appendPart(subdomain + ".", "subdomain"); } appendPart(hostname, "hostname"); if (port) { appendPart(":" + port, "port"); } if (pathname === "/") { // Spezialfall: Nur ein einfacher Slash appendPart("", "pathname"); } else { let arrayPathname = pathname.split("/"); arrayPathname.forEach((elto, index) => { if (index === 0 && elto === "") return; // erstes leeres Element (vor dem ersten Slash) let sp = appendPart(elto, "pathname"); let arrayDot = elto.split("."); if (arrayDot.length > 1) { let extension = arrayDot.pop(); sp.innerHTML = ""; sp.appendChild(createElement({ type: "locationBarTag", attrArray: { href: sp.getAttribute("href"), innerHTML: arrayDot.join(".") } })); sp.appendChild(createElement({ type: "locationBarTag", attrArray: { class: "extension", href: sp.getAttribute("href"), innerHTML: "." + extension } })); } }); } appendPart(search, "search"); appendPart(hash, "hash"); } /******************* INIT ***************************/ var urlbarInput = getWindow().document.querySelector("#urlbar-input"); var timeMouseMove = -1; function hideDivLocatonBar(){ urlbarInput.focus(); } var divLocationBar = createElement({ type: "div", attrArray: { class: "claseLocationBar" }, evtListener: [{ type: "click", funcion: function() { hideDivLocatonBar() } }] }); borraPrevio(); urlbarInput.parentNode.appendChild(divLocationBar); urlbarInput.parentNode.setAttribute("dav_LinkifiesLocationBar", true); urlbarInput.addEventListener("blur", pintaLocation); pintaLocation(); var last_displaySpec = ""; setInterval(function(){ let actual_displaySpec = gBrowser.currentURI.displaySpec; if(last_displaySpec != actual_displaySpec){ last_displaySpec = actual_displaySpec; pintaLocation(); } }, 50); CSS_Loader.load(styleBase); CSS_Loader.load(style_pathnameArrow); CSS_Loader.load(stylexul); /******************* END INIT ***************************/ dav_LinkifiesLocationBar.globalShutdown = function(){ var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); var ws = wm.getEnumerator(null); while(ws.hasMoreElements()) { var w = ws.getNext(); w.dav_LinkifiesLocationBar.shutdown(w); } } }, 50); -
2002Andreas Ich habe jetzt mal rumprobiert und mit deinem abgewandelten CCS Erfolg gehabt:
CSS/* Ausmitten der Beschriftung */ #urlbar-input { .urlbar:not([focused])[domaindir="ltr"] > .urlbar-input-container > .urlbar-input-box > & { margin-top: -5px !important; } }Den Code für die farbige URL finde ich nicht, suche auch nicht mehr weiter.
Dankeschön!
-
-
grisu2099 Oh, in der Tat... falsche Diktion genommen.
milupo dann müssten also alle # Einträge in . Einträge umgeschrieben werden?
2002Andreas mit dem Code rücken die beiden Icons runter
-
-
-
Moin, ich nutze u.a. diesen CSS, um die Adresszeile anzupassen.
CSS
Alles anzeigen/* Adresszeile einfaerben */ #urlbar { position: relative; z-index: 6; } #identity-box::after { content: ''; position: absolute; height: 100%; width: 100%; top: 0; left: 0; pointer-events: none; z-index: 3; background: var(--toolbar-bgcolor); /* white */ opacity: 0.2; transition: background 500ms linear; /* Fade in/out effekt */ } /* There is also grantedPermissions, but irrelevant. */ /* about:about */ #urlbar[pageproxystate='valid'] #identity-box.unknownIdentity::after { background: #ff0039; /* Firefox Red 50 */ } /* about:config */ #urlbar[pageproxystate='valid'] #identity-box.chromeUI::after { background: #0a84ff; /* Firefox Blue 50 */ } /* addon pages like uBlock Origin Dashboard */ #urlbar[pageproxystate='valid'] #identity-box.extensionPage::after { background: #45a1ff; /* Firefox Blue 40 */ } /* https://www.github.com/ */ #urlbar[pageproxystate='valid'] #identity-box.verifiedIdentity::after{ background: #058b00; /* Firefox Green 70 */ } /* https://www.google.com/ */ #urlbar[pageproxystate='valid'] #identity-box.verifiedDomain::after{ background: #12bc00; /* Firefox Green 60 */ } /* https://mixed-script.badssl.com/ */ #urlbar[pageproxystate='valid'] #identity-box.mixedActiveBlocked::after { /* background: #30e60b; /* Firefox Green 50 */ background: #d7b600; /* Firefox Yellow 60 */ } /* https://mixed.badssl.com/ */ #urlbar[pageproxystate='valid'] #identity-box.mixedDisplayContent::after { background: #d7b600; /* Firefox Yellow 60 */ } /* https://very.badssl.com/ */ #urlbar[pageproxystate='valid'] #identity-box.mixedDisplayContentLoadedActiveBlocked::after { background: #d7b600; /* Firefox Yellow 60 */ } /* https://self-signed.badssl.com/ but add certificate exception */ #urlbar[pageproxystate='valid'] #identity-box.certUserOverridden::after { background: #ffe900; /* Firefox Yellow 50 */ } /* Don't know an example for this */ #urlbar[pageproxystate='valid'] #identity-box.weakCipher::after { background: #a47f00; /* Firefox Yellow 70 */ } /* https://mixed-script.badssl.com/ but disable protection */ #urlbar[pageproxystate='valid'] #identity-box.mixedActiveContent::after { background: #d70022; /* Firefox Red 60 */ } /* http://http-login.badssl.com/ */ #urlbar[pageproxystate='valid'] #identity-box.insecureLoginForms::after { background: #a4000f; /* Firefox Red 70 */ } /* http://http.badssl.com/ */ /* http://www.httpvshttps.com/ */ #urlbar[pageproxystate='valid'] #identity-box.notSecure::after { background: #a4000f; /* Firefox Red 70 */ } /* Regeln ergänzt */ /* in Fx72 eingeführt, vgl. https://github.com/Aris-t2/CustomCSSforFx/issues/244 */ #urlbar[pageproxystate='valid'] #identity-box.certErrorPage::after { background: #d70022; /* Firefox Red 60 */ } #urlbar[pageproxystate='valid'][focused="true"] #identity-box::after { background: var(--toolbar-bgcolor); } #urlbar[breakout][breakout-extend] { top: calc((var(--urlbar-toolbar-height) - var(--urlbar-height)) / 2) !important; left: 0 !important; width: 100% !important; } #urlbar[breakout][breakout-extend] > .urlbar-input-container { height: var(--urlbar-height) !important; padding-block: 0 !important; padding-inline: 0 !important; } #urlbar[breakout][breakout-extend][breakout-extend-animate] > .urlbar-background { animation-name: none !important; } #urlbar[breakout][breakout-extend] > .urlbar-background { box-shadow: none !important; } /* Adresszeile kompakt und fett */ #urlbar { font-size:18px !important; font-weight:bold !important; height: 24px; padding: 0px 0px 0px !important; } #searchbar { font-size:18px !important; font-weight:bold !important; height: 24px; padding: 0px 0px 0px !important; } .urlbar-origin-label, .urlbar-over-origin-box, .urlbar-over-link-host-label, .urlbar-over-link-path-label { margin-top: -1px !important; margin-bottom: -1px !important; } #identity-box{ border:none!important; background:none!important; } #identity-box #identity-icon-label, #identity-box #identity-icon-labels { font-size: 18px !important; } #omnibar-defaultEngineName { margin-top: -1px !important; font-size:18px !important; font-weight:bold !important;} #omnibar-defaultEngine {margin-top: 10px !important; } #urlbar #feed-button { list-style-image: none !important; } #urlbar,.searchbar-textbox, #searchbar { min-height:1.8em!important; max-height:1.8em!important; border-radius: 70px !important; background: #e2f7e2 !important; opacity: 0.7!important; padding: 0px 0px 0px 5px !important; } /* Adressleiste Breite */ #urlbar{ min-height:1.9em!important; max-height:1.9em!important; width: 100% !important; border-radius: 200px !important; padding: 0px 0px 0px 0px !important; } /* Adresszeile - Suche ausblenden */ #PopupAutoCompleteRichResult > richlistbox > richlistitem:first-child{ display:none!important } #urlbar input.textbox-input::placeholder { color: transparent !important;} /* Adresszeile bereinigen */ #identity-icon, /*Links im Adressfeld: Seiteninformationen (kleines "i" in einem Kreis) und Lupensymbol*/ #pageActionButton, /*Rechts im Adressfeld: Aktionen für diese Seite (Drei Punkte)*/ #pageActionSeparator, /*Rechts im Adressfeld: Graue Linie neben "Aktionen für diese Seite (Drei Punkte)"*/ .urlbar-go-button, /*Rechts im Adressfeld: URL laden (Pfeil nach rechts)*/ .urlbar-history-dropmarker /*Rechts im Adressfeld: Chronik (kleines Dreieck)*/ { display: none !important; } /* Adresszeilenhöhe einstellen */ #urlbar[breakout][breakout-extend] { top: calc((var(--urlbar-toolbar-height) - var(--urlbar-height)) / 2) !important; left: 0 !important; width: 100% !important; } #urlbar[breakout][breakout-extend] > .urlbar-input-container { height: var(--urlbar-height) !important; padding-block: 0 !important; padding-inline: 0 !important; } #urlbar[breakout][breakout-extend][breakout-extend-animate] > .urlbar-background { animation-name: none !important; } #urlbar[breakout][breakout-extend] > .urlbar-background { box-shadow: none !important; } /* Schloss- und Schildsymbol aus FF 88 */ #tracking-protection-icon { list-style-image: url("..//icons/tracking-protection.svg") !important; background-size: 18px 18px !important; fill: purple !important; } #identity-icon { list-style-image: url("..//icons/security-state-secure.svg") !important; background-size: 18px 18px !important; opacity: unset !important; fill: orange !important; } /* Lesezeichen-Stern ungesetzt */ #star-button:not([starred="true"]) { fill: Fuchsia !important; /* Fuchsia */ } /* Lesezeichen-Stern gesetzt */ #star-button[starred="true"] { fill: Blue !important; /* Blau */ } /* Farbe der Suchleiste */ #searchbar-new.urlbar hbox.urlbar-input-container { background-color: none !important; } #searchbar-new { --toolbar-field-focus-border-color: transparent !important; } [data-l10n-id="searchbar-input"] { color: black !important; }Seit neuestem ist die Adresszeile horizontal nicht mehr mittig. Kann man das anpassen? Meine Versuche führten mal wieder zu nichts...

-
Michael Mendl ist im Alter von 82 Jahren gestorben. 😔
-
Ist egal, ich nutze den Release ja kaum. Drüber installieren der BETA funktioniert nicht. Mir reicht es so...
-
Was passiert, wenn du anstatt der Beta die aktuelle Release (1.74.0) über die Mozilla-Seite für Erweiterungen installierst?
Danke, das war tatsächlich die Lösung! 😄
-
Oder ist das nur ein Schreibfehler von dir?
Jo Tippfehler.. ist korrigiert
Schön, dass du das Problem nicht hast 🫠
-
Moin, ich verwende die Release-Version ja selten.
Nun ist mir aufgefallen, das uBlock Origin in der Version 1.74.1b2 mit Firefox 155.0 nicht funktioniert bzw. sich nicht aktivieren bzw. neu installieren lässt. Es könnte sein, das das auch bei den FF-Versionen davor auch schon nicht ging!Ich habe sie vergeblich versucht zu aktivieren. Sie dann aus dem Profil entfernt, im Profil vergeblich nach Resten der Erweiterung gesucht, Firefox 155.0 neu mit Skript-Cachelöschung gestartet und dann versucht sie durch Hineinziehen ins Addons-Fenster oder auch durch "Installieren aus Datei" zu installieren.
Es passiert nichts, kein Dialog und sie erscheint auch nicht. Ebenfalls sind keine Hinterlassenschaften im Profil nach Installationsversuch festzustellen.
Was kann noch versucht werden, ohne ein neues Profil zu erstellen? -
-
-
-
Zur Ergänzung: Das ist auch auf Windowsrechnern so...
-
-
Lustig, das ein User, der ein Problem mit einer Webseite hat, dem Forum vorschreiben möchte, was dessen Aufgabe ist.
Fakt 1 ist: Die Webseite, um die es geht, ist scheinbar nicht sauber produziert!
Fakt 2 ist: Du bist der Werbung erlegen, das AVIRA für dich wichtig ist und auf gar keinen Fall solche negativen Erlebnisse produzieren kann.
Fakt 3 ist: Wir haben hier teils jahrelange Erfahrung mit dieser Art von "Sicherheitssoftware", lesen sehr häufig davon, das nach einer Deinstallation die aufgetretenen Probleme verschwunden waren. Noch nie gelesen haben wir hingegen, das bei der Verwendung vom Windows Defender es bei der Darstellung von sauber produzierten Webseiten zu einer entsprechenden Fehldarstellung gekommen wäre.