Skip to content

Commit b457ed9

Browse files
committed
update status panel styles:
no longer hide status info with CSS. if you want to keep hiding status, you can use miscMods.uc.js now. it has a new setting that disables the status info but preserves the mouseover link URL display.
1 parent 19df71b commit b457ed9

2 files changed

Lines changed: 32 additions & 3 deletions

File tree

JS/miscMods.uc.js

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name Misc. Mods
3-
// @version 2.0.4
3+
// @version 2.0.5
44
// @author aminomancer
55
// @homepage https://github.com/aminomancer/uc.css.js
66
// @description Various tiny mods not worth making separate scripts for. Read the comments inside the script for details.
@@ -124,6 +124,14 @@
124124
// `:root{--in-content-bg-dark: #000}` to your userChrome.css, or it will fall back to white.
125125
"Customize tab drag preview background color": true,
126126

127+
// Normally when a page is loading, Firefox will display network information
128+
// in the bottom left of the browser content area. When the mouse cursor is
129+
// hovering over a link, this is also where the link URL is shown. This
130+
// setting disables the page network status but keeps the mouseover link
131+
// URL. duskFox used to do this with CSS, but it doesn't behave well with
132+
// the fade transitions to do it that way. So now it's done with JavaScript.
133+
"Disable loading status for status panel": true,
134+
127135
// With duskFox installed, we indicate container tabs by adding a colored
128136
// stripe at the bottom of the tab. But we also add a purple stripe at the
129137
// bottom of multiselected tabs, which overrides the container tab stripe.
@@ -177,6 +185,7 @@
177185
if (config["Show container icons on multiselected tabs"]) {
178186
this.containerIconsOnMultiselectedTabs();
179187
}
188+
if (config["Disable loading status for status panel"]) this.disableLoadingStatus();
180189
this.randomTinyStuff();
181190
}
182191
stopDownloadsPanelFocus() {
@@ -396,6 +405,20 @@
396405
}
397406
};
398407
}
408+
disableLoadingStatus() {
409+
if (StatusPanel.update.name !== "uc_update") {
410+
eval(
411+
`StatusPanel.update = function ` +
412+
StatusPanel.update
413+
.toSource()
414+
.replace(/^update/, "uc_update")
415+
.replace(
416+
/\s*if \(XULBrowserWindow\.busyUI\) {\n\s*types\.push\(\"status\"\);\n\s*}\n\s*types\.push\(\"defaultStatus\"\);/,
417+
""
418+
)
419+
);
420+
}
421+
}
399422
randomTinyStuff() {
400423
// give the tracking protection popup's info button a tooltip
401424
let etpPanel = document

uc-misc.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ progress[paused]:indeterminate::-moz-progress-bar {
343343
border-top-style: solid !important;
344344
box-shadow: var(--tooltip-box-shadow) !important;
345345
margin-top: calc(0px - var(--menuitem-height)) !important;
346+
min-width: revert !important;
346347

347348
background-color: var(--tooltip-bgcolor) !important;
348349
color: var(--tooltip-color) !important;
@@ -352,12 +353,16 @@ progress[paused]:indeterminate::-moz-progress-bar {
352353
visibility: collapse !important;
353354
}
354355

355-
#statuspanel:not([type="overLink"], [inactive][previoustype="overLink"]) {
356+
#statuspanel[hidden] {
356357
opacity: 0 !important;
357358
transition: none !important;
358359
}
359360

360-
#statuspanel[type="overLink"] {
361+
#statuspanel {
362+
transition: opacity 300ms var(--uc-smooth-timing-function), visibility 300ms !important;
363+
}
364+
365+
#statuspanel[inactive][previoustype=overLink] {
361366
transition: opacity 400ms var(--uc-smooth-timing-function), visibility 400ms !important;
362367
}
363368

@@ -369,6 +374,7 @@ progress[paused]:indeterminate::-moz-progress-bar {
369374
padding: var(--uc-tooltip-inner-padding, 4px 7px 6px 7px) !important;
370375
margin: 0 !important;
371376
border: none !important;
377+
min-width: revert !important;
372378
}
373379

374380
#statuspanel:not([mirror]):-moz-locale-dir(ltr),

0 commit comments

Comments
 (0)