Hallo zusammen,
ich habe dieses Script auch getestet, ein kleines Problem habe ich festgestellt.
Test mit Firefox 57.0b13 64 bit.
Ich wollte ein Programm herunterladen, habe diesen Download abgebrochen, warum weiß ich nicht mehr.
Dann das Programm von Homepage noch einmal heruntergeladen.
Heute stelle ich fest das der unterbrochene Download immer noch angezeigt wird, wenn ich auf den Download Button klicke.
Auch nach einem löschen aller Downloads bleibt diese Meldung.
Erst wenn ich noch einmal herunterladen auswähle ist die Meldung weg.
Ohne dieses Script werden mir unterbrochene Downloads nicht mehr angezeigt.
Kann das einer bestätigen?
Gruß EDV Oldi
Beiträge von edvoldi
-
-
ich nutze hier auch eher die Zwischenablage
Hat auch seinen Vorteil, so kann man sich die Suchmaschine aussuchen. -
Die habe ich auch von Endor :lol:
-
Diese Version funktioniert.
Code
Alles anzeigen// ==UserScript== // @name AutoPopup.uc.js // @description Auto popup menulist/menupopup // @compatibility Firefox 30.0+ // @author GOLF-AT, modify by gsf & aborix // @version 2017.9.04 // ==UserScript== (function() { const showDelay = 200; const hideDelay = 500; var overElt = null; var PopElt = null; var PopTimer = null; var HideTimer = null; var AlwaysPop = false; var searchBar = null; if (window.BrowserSearch) searchBar = BrowserSearch.searchBar; // by gsf, 支持Fx的CSS所有语法: #表示id,. 表示class,或[id='demo'] // Fx support all of CSS syntax: # indicates id, . represents class, or [id='demo'] var BlackIDs = []; // by gsf, 白名单,及触发动作 // whitelist, and trigger action var whiteIDs = [{ id: 'omnibar-defaultEngine', popMemu: 'omnibar-engine-menu', run: function(overElem) { document.getElementById('omnibar-in-urlbar').click(0); } }, { id: 'ucjs_zoom_statuslabel', popMemu: 'ucjs_zoom-context', run: null }, { id: 'UserScriptLoader-icon', popMemu: 'UserScriptLoader-popup', run: null }, { id: 'readLater', popMemu: 'readLater-popup', run: null //function(overElem) {PopElt.popup();} }, { id: 'foxyproxy-toolbar-icon', popMemu: 'foxyproxy-toolbarbutton-popup', run: null }]; var whitesInx = -1; var popupPos = ['after_start', 'end_before', 'before_start', 'start_before']; var menuPanelID = 'PanelUI-popup'; var downPanelID = 'downloadsPanel'; var widgetPanelID = 'customizationui-widget-panel'; function IsWidgetBtn(elt) { try { return elt.hasAttribute('widget-id') && elt.getAttribute('widget-type') == 'view'; } catch(e) { return false; } } function IsSearchBtn(elt) { try { return elt.getAttribute('anonid') == 'searchbar-search-button' || whitesInx === 0; } catch(e) { return false; } } function IsNewMenuBtn(elt) { try { return elt.id == 'PanelUI-menu-button'; } catch(e) { return false; } } function IsDownloadBtn(elt) { try { return elt.localName == 'toolbarbutton' && elt.id == 'downloads-button'; } catch(e) { return false; } } function IsAutoComplete(elt) { try { return elt.getAttribute('type').substr(0, 12) == 'autocomplete'; } catch(e) { return false; } } function getPopupMenu(elt) { if (whitesInx > -1 && PopElt) return PopElt; var nodes = elt ? elt.ownerDocument.getAnonymousNodes(elt) : null; for (let node of nodes) { if (node.localName == 'menupopup') return node; } var s = elt.getAttribute('popup'); return s ? document.getElementById(s) : null; } function isBlackNode(elt) { return BlackIDs.some(function(css) { try { var nodes = document.querySelectorAll(css); } catch(e) { return false; } for (var node of nodes) { if (node == elt) return true; } return false; }) } function getPopupPos(elt) { var x, y, pos, box; for (pos = 0, x = elt.boxObject.screenX, y = elt.boxObject.screenY; elt != null; elt = elt.parentNode) { if (elt.localName == 'window' || !elt.parentNode) break; else if (elt.localName != 'toolbar' && elt.localName != 'hbox' && elt.localName != 'vbox'); else if (elt.boxObject.height >= 3 * elt.boxObject.width) { if (elt.boxObject.height >= 45) { pos = 9; break; } } else if (elt.boxObject.width >= 3 * elt.boxObject.height) { if (elt.boxObject.width >= 45) { pos = 8; break; } } } try { box = elt.boxObject; x = (pos & 1) ? (x <= box.width / 2 + box.screenX ? 1 : 3) : (y <= box.height / 2 + box.screenY ? 0 : 2); } catch(e) { x = 0; } return popupPos[x]; } function getPopupNode(node) { if (whitesInx > -1 && PopElt) return PopElt; var elt, isPop, s; for (; node != null; node = node.parentNode) { if (node == PopElt) return node; isPop = false; // Node isn't Popup node s = node.localName; if (s == 'menupopup' || s == 'popup' || s == 'menulist' || IsAutoComplete(node) || IsMenuButton(node)) isPop = true; else if (s == 'dropmarker') { if (node.getAttribute('type') == 'menu') { elt = node.parentNode; if (elt.firstChild.localName == 'menupopup') isPop = true; } else if (node.classList.contains('autocomplete-history-dropmarker')) isPop = true; } else if (s == 'menu') isPop = (node.parentNode.localName == 'menubar'); else if (IsButton(node)) { for (elt = node; (elt = elt.nextSibling) != null;) { if (elt.localName == 'dropmarker' && elt.boxObject.width > 0 && elt.boxObject.height > 0) break; } if (elt) break; } if (isPop) break; } if (PopElt && node) { // Whether node is child of PopElt for (elt = node.parentNode; elt != null; elt = elt.parentNode) { if (elt == PopElt) return PopElt; } } return isPop ? node : null; } function AutoPopup() { PopTimer = null; if (!overElt) return; if (whitesInx > -1 && PopElt && whiteIDs[whitesInx].run) { whiteIDs[whitesInx].run(overElt); return; } !PopElt && (PopElt = overElt); if (overElt.localName == 'dropmarker') { if (overElt.classList.contains('urlbar-history-dropmarker')) overElt.click(); else PopElt.showPopup(); } else if (overElt.localName == 'menulist') { overElt.open = true; } else if (IsNewMenuBtn(overElt)) { PanelUI.show(); PopElt = document.getElementById(menuPanelID); } else if (IsWidgetBtn(overElt)) { var cmdEvent = document.createEvent('xulcommandevent'); cmdEvent.initCommandEvent('command', true, true, window, 0, false, false, false, false, null); overElt.dispatchEvent(cmdEvent); PopElt = document.getElementById(widgetPanelID); } else if (IsDownloadBtn(overElt)) { PopElt = document.getElementById(downPanelID); DownloadsPanel.showPanel(); } else if (IsSearchBtn(overElt)) { searchBar.openSuggestionsPanel(); //console.log('search click!'); } else { PopElt = getPopupMenu(overElt); try { var Pos = getPopupPos(overElt); PopElt.openPopup(overElt, Pos, 0, 0, false, false, null); } catch(e) { PopElt = null; } } } function HidePopup() { try { if (overElt.localName == 'dropmarker') try { PopElt.parentNode.closePopup(); } catch(e) { PopElt.parentNode.parentNode.closePopup(); } else if (overElt.localName == 'menulist') PopElt.open = false; else if (IsDownloadBtn(overElt)) DownloadsPanel.hidePanel(); //else if (IsNewMenuBtn(overElt) || IsWidgetBtn(overElt)) else if (PopElt && PopElt.hidePopup) PopElt.hidePopup(); else if (PopElt.popupBoxObject) PopElt.popupBoxObject.hidePopup(); else if (IsSearchBtn(overElt)) searchBar.textbox.closePopup(); } catch(e) { } HideTimer = null; overElt = PopElt = null; } function MouseOver(e) { if (!AlwaysPop && !document.hasFocus()) return; var popNode, n = e.originalTarget; whitesInx = -1; // gsf :some,forEach,filter等数组遍历方法接受第二个参数,表作用域this,可不用call了 if (n.hasAttribute('id') && whiteIDs.some(function(k,i,me) { if (k.id == n.id) { overElt = n; whitesInx = i; PopElt = document.getElementById(k.popMemu); PopTimer = setTimeout(AutoPopup, showDelay); return true; } })) return; popNode = getPopupNode(e.originalTarget); if (!popNode || (popNode && popNode.disabled) || isBlackNode(popNode)) { MouseOut(); return; } if (HideTimer) { window.clearTimeout(HideTimer); HideTimer = null; } try { if (IsAutoComplete(popNode)) return; for (var elt = popNode; elt != null; elt = elt.parentNode) { if (elt.localName == 'menupopup' || elt.localName == 'popup') return; } } catch(e) { } if (PopElt && popNode == PopElt && PopElt != overElt) return; if (overElt && popNode != overElt) HidePopup(); overElt = popNode; PopElt = null; PopTimer = setTimeout(AutoPopup, showDelay); } function MouseOut(e) { if (PopTimer) { window.clearTimeout(PopTimer); PopTimer = null; } if (!HideTimer && PopElt) HideTimer = window.setTimeout(HidePopup, hideDelay); } function IsButton(elt) { try { return elt.localName == 'button' || elt.localName == 'toolbarbutton'; } catch(e) { return false; } } function IsMenuButton(elt) { return IsNewMenuBtn(elt) || IsDownloadBtn(elt) || IsWidgetBtn(elt) || (IsButton(elt) && getPopupMenu(elt)); } window.addEventListener('mouseover', MouseOver, false); })();
Gruß EDV Oldi -
Brauch man das Script noch ?
Es gibt doch die Möglichkeit einen Text mit der Maus zu markieren und dann mit der rechte Maustaste darauf zu klicken und kann dann mit seiner Standartsuchmaschine direkt nach dem Begriff suchen.
[attachment=0]Zwischenablage02.jpg[/attachment]
Gruß EDV Oldi -
Bei mir gibt es das:
[attachment=0]Zwischenablage02.jpg[/attachment] -
Hallo Andreas,
wie immer Super, Danke.
Und ich suche mir einen Wolf.
Gruß EDV oldi -
Falsche Auswahl, ich meine das Symbol mit der Uhr, also die Chronik.
[attachment=0]Zwischenablage02.jpg[/attachment]
Gruß EDV Oldi -
Leider nein, keine Farbe.
Gruß EDV Oldi -
Hallo zusammen,
ich habe so weit alles nach meinen Wünschen eingerichtet.
Nur für das history-panelmenu kann ich keine Hintergrundfarbe eingerichtet.
[attachment=0]Zwischenablage01.jpg[/attachment]
Hat einer eine Idde?
Gruß EDV Oldi -
Danke, funktioniert im Firefox 57.
-
Hallo Endor,
ich hatte das zu erst im Firefox 56 getestet, hier wird nichts unter "Extras" angezeigt und es gibt auch keine Schaltfläche die ich verschieben kann.
Dann habe ich es zum Spaß auch im Firefox 57 probiert und hier erschien auch keine Schaltfläche im "Firefox anpassen" Tab.
Jetzt nach einem weiteren Neustart von Firefox 57 erscheint die Schaltfläche (Symbol) rechts neben dem Suchfeld und unter Extras gibt es auch eine Auswahlmöglichkeit.
Jetzt nur die Frage wie kann ich testen ob der Cache gelöscht wird?
Gruß EDV Oldi -
Hallo zusammen,
ich wollte gerade einmal diese Script ( ClearCacheButtonMovable.uc.js ) testen.
Leider funktioniert es nicht, weder im Firefox 56 noch im Firefox 57.
Hat einer eine Idee?
Gruß
EDV-Oldi -
Danke, Link gespeichert.
-
Hallo zusammen,
das Script ( WebScreenShotButton.uc.js ) funktioniert ja leider ab Firefox 57 nicht mehr.
Leider ist in diesem Script auch die Funktion drin Bilder "Grafik in Base64 kopieren".
Gibt es so etwas separat oder kann man das aus diesem Script heraus ziehen?Gruß EDV Oldi
-
Hallo Andreas,
funktioniert.
Danke
Gruß EDV Oldi -
Hallo zusammen,
ich habe dieses Script (ucjs_ClearSearchTerm.uc.js) im Firefox 57 eingebunden.Code
Alles anzeigen/* Clear Search Term */ (function() { var searchbar = document.getElementById("searchbar"); searchbar._doSearchInternal = searchbar.doSearch; searchbar.doSearch = function(aData, aInNewTab) { this._doSearchInternal(aData, aInNewTab); // clear the search term this.value = ""; // reset the search engine this.currentEngine = this.engines ? this.engines[0] : this._engines[0]; }; }());
Das Suchfeld wird nach eine Eingabe gelöscht, so weit so gut.
[attachment=0]Zwischenablage02.jpg[/attachment]
Aber wenn ich eine andere Suchmaschine auswählen möchte, funktioniert das nicht, es wird immer die Standartsuchmaschine gestartet.
Gibt es eine Lösung für dieses Problem?
Gruß EDV Oldi -
Hallo zusammen,
gibt es ein Script das diese (MinimizeToTray revived) Erweiterung ersetzt?
Gruß EDV Oldi -
Um Addons entdecken ausblenden, kannst Du diesen Code nehmen.
#category-discover {
display: none !important;
}Gruß EDV Oldi
-