Ach jeh,
mit dem neuen CSS gibts bei mir Probleme.
Ich nutze ja ein Script für eine Statuszeile, an deren Ende bisher die Downloads eingeblendet wurden. Mit dem neuen CSS poppt jetzt aber eine weitere Zeile unter der Statuszeile auf, dort werden nun die Downloads angezeigt und diese verschwindet auch nicht mehr, wenn der Download beendet ist. Mich dünkt, es bedurfte schon damals eine Anpassung der CSS, damit das bei mir lief... wenn sich da nochmal jemand versuchen mag?
Edit: Zum Schließen nach dem Download war diese Änderung zu erledigen: false auf true
JavaScript
// close toolbar
var closeWhenDone = true;
try {
closeWhenDone = Services.prefs.getBoolPref("userChrome.downloadsStatusModoki.closeWhenDone");
} catch(e) {}
if (closeWhenDone) {
top.ucjsDownloadsStatusModoki.hideDownloadsStatusModoki();
}
};
Jetzt so
CSS
/*Alte Version*/
/* DownloadStatusModoki CSS */
@charset "utf-8";
/*@version 2020/03/13 fix for 74, broken listitem orient due to Bug 1606130
/*@version 2019/12/11 fix for 73 Bug 1601094 - Rename remaining .xul files to .xhtml in browser */
/*@version 2019/10/20 12:30*/
html#main-window vbox#downloadsStatusModokiBar
{
display: flex !important;
position: absolute !important;
right: -180px !important;
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] {
-moz-box-orient: horizontal !important;
/*background-color: rgba(0,0,0,0) !important;*/
border-top: 1px solid black !important;
background-image: linear-gradient( rgba(192,192,192,1), rgba(255,255,255,1) ), none !important;
padding: 0 !important;
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] > stack:first-child {
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] #downloadsRichListBox {
background-color: rgba(0,0,0,0) !important;
overflow-y: auto !important;
scrollbar-width: thin;
border: none !important;
min-height: 32px !important;
max-height: 32px !important;
height: 32px !important;
max-width: 210px !important;
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] *|*:root
{
--downloads-item-height: 28px !important;
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] richlistitem {
min-width:200px !important;
max-width:200px !important;
font-size: 10px !important;
margin-top: -1px !important;
min-height: 28px !important;
max-height: 28px !important;
height: 28px !important;
display:-moz-inline-box !important;
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] richlistitem vbox {
height: 16px !important;
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] .downloadTypeIcon {
height:16px !important;
width: 16px !important;
-moz-margin-end: 1px !important;
-moz-margin-start: 1px !important;
padding-right: 1px !important;
padding-left: 1px !important;
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] .downloadTarget {
margin-top:1px !important;
padding-bottom:16px !important;
max-width: calc(100% - 51px) !important;
min-width: calc(100% - 51px) !important;
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] .download-state[state="0"] * .downloadTarget,
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] .download-state[state="4"] * .downloadTarget {
padding-bottom:0px !important;
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] #downloadsListEmptyDescription
{
color: red !important;
margin-top: 6px !important;
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] .downloadTarget:-moz-system-metric(windows-default-theme) {
margin-top:2px !important;
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] *|*.downloadProgress {
margin-top: 2px !important;
border: none !important;
padding-top: 1px !important;
padding-bottom: 1px !important;
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] *|*.downloadProgress::-moz-progress-bar {
margin-top: -1px !important;
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] *|*.downloadProgress:not([paused])::-moz-progress-bar {
background-color: lime !important;
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] .downloadDetails {
margin-top:-10px !important;
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] .download-state:not(:-moz-any([state="-1"], [state="5"], [state="0"], [state="4"], [state="7"])) .downloadDetails {
margin-top:-17px !important;
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] richlistitem[selected] .downloadDetails {
opacity: 1 !important;
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] .downloadButton {
padding: 0 !important;
margin: 0 !important;
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] button > .button-box {
-moz-padding-start: 0px !important;
-moz-padding-end: 1px !important;
padding-right: 0 !important;
padding-left: 0 !important;
margin-top: -2px !important;
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] #downloadFilter {
display: none !important;
/* width: 150px;
min-height: 23px !important;
max-height: 23px !important;
height: 23px !important;*/
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] #ucjs_clearListButton {
/*display:none !important;*/
/*margin-top: -15px !important;*/
/*height: 20px !important;*/
min-width: 62px !important;
max-width: 62px !important;
min-height: 20px !important;
max-height: 20px !important;
}
#ucjs_clearListButton>#label
#new-toolbar { height: 28px !important; -moz-window-dragging: no-drag !important; }
Alles anzeigen
CSS
/* Neue Version */
/* DownloadStatusModoki CSS */
@charset "utf-8";
/*@version 2022/02/16 Bug 1747422 - Remove preprocessor variable use from downloads CSS*/
/*@version 2020/03/13 fix for 74, broken listitem orient due to Bug 1606130
/*@version 2019/12/11 fix for 73 Bug 1601094 - Rename remaining .xul files to .xhtml in browser */
/*@version 2019/10/20 12:30*/
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] {
-moz-box-orient: horizontal;
background-color: -moz-dialog !important;
padding: 0 !important;
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] > stack:first-child {
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] #downloadsListBox {
background-color: -moz-dialog !important;
display:inline-block !important;
overflow-y: auto !important;
scrollbar-width: thin;
border: none !important;
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] *|*:root
{
--downloads-item-height: 38px;
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] richlistitem:not([hidden]) {
min-width:200px !important;
max-width:200px !important;
font-size: 13px !important;
border-width: 0 1px 0 0 !important;
border-style: solid !important;
border-color: black !important;
height: 38px !important;
display:-moz-inline-box !important;
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] richlistitem vbox {
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] .downloadTypeIcon {
height:16px !important;
width: 16px !important;
-moz-margin-end: 1px !important;
-moz-margin-start: 1px !important;
padding-right: 1px !important;
padding-left: 1px !important;
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] .downloadTarget {
margin-top:1px !important;
padding-bottom:16px !important;
max-width: calc(100% - 51px) !important;
min-width: calc(100% - 51px) !important;
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] .download-state[state="0"] * .downloadTarget,
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] .download-state[state="4"] * .downloadTarget {
padding-bottom:0px !important;
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] .downloadTarget:-moz-system-metric(windows-default-theme) {
margin-top:2px !important;
/*padding-bottom:10px; windows7 ?*/
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] *|*.downloadProgres {
border: none !important;
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] *|*.downloadProgress:not([paused])::-moz-progress-bar {
background-color: lime !important;
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] .downloadDetails {
margin-top:-12px !important;
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] .download-state:not(:-moz-any([state="-1"], [state="5"], [state="0"], [state="4"], [state="7"])) .downloadDetails {
margin-top:-17px !important;
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] richlistitem[selected] .downloadDetails {
opacity: 1 !important;
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] .downloadButton {
padding: 0 !important;
margin: 0 !important;
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] button > .button-box {
-moz-padding-start: 0px !important;
-moz-padding-end: 1px !important;
padding-right: 0 !important;
padding-left: 0 !important;
}
#contentAreaDownloadsView[ucjsDownloadsStatusModoki] #downloadFilter {
width: 150px;
}
Alles anzeigen
JavaScript
/* Statusleiste für Firefox */
// https://www.camp-firefox.de/forum/viewtopic.php?p=1052187&sid=d4e33b574226439c26dfb45629b71369#p1052187
// entwickelt von aborix
// Anpassung für DownloadStatusModoki: https://www.camp-firefox.de/forum/thema/129854-downloadstatusmodoki-uc-js-umbasteln/?postID=1136067#post1136067
(function() {
if (location != AppConstants.BROWSER_CHROME_URL)
return;
var css =`
#new-toolbar {
height: 28px;
direction: rtl;
-moz-window-dragging: no-drag;
/* border-top: 1px solid black !important;
background-image: linear-gradient( rgba(192,192,192,1), rgba(255,255,255,1) ), none; } */
`;
var sss = Cc['@mozilla.org/content/style-sheet-service;1'].getService(Ci.nsIStyleSheetService);
var uri = makeURI('data:text/css;charset=UTF=8,' + encodeURIComponent(css));
sss.loadAndRegisterSheet(uri, sss.AUTHOR_SHEET);
var tb = document.createXULElement('toolbar');
tb.id = 'new-toolbar';
tb.setAttribute('customizable', true);
tb.setAttribute('mode', 'icons');
var vbox = document.createXULElement('vbox');
document.getElementById('navigator-toolbox').parentNode.parentNode.insertBefore(
vbox, document.getElementById('browser-bottombox'));
vbox.style.backgroundColor = '#ffe4c4';
vbox.appendChild(tb);
CustomizableUI.registerArea('new-toolbar', {legacy: true});
CustomizableUI.registerToolbarNode(tb);
})();
setTimeout(function() {
if (window.__SSi == 'window0')
return;
let tabbar = document.getElementById('TabsToolbar');
let tab = gBrowser.selectedTab;
tabbar.style.display = '-moz-box';
duplicateTabIn(tab, 'tab');
gBrowser.moveTabTo(gBrowser.selectedTab, tab._tPos);
gBrowser.removeTab(tab);
tabbar.style.display = '';
}, 1500);
Alles anzeigen
Soll ich noch die neue Version des Scripts anhängen, dann bitte melden!