Skip to content

Commit e2f3ceb

Browse files
committed
3.1.6: update some script overrides.
1 parent d93808f commit e2f3ceb

7 files changed

Lines changed: 17 additions & 1168 deletions

File tree

JS/restorePreProtonArrowpanels.uc.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name Restore pre-Proton Arrowpanels
3-
// @version 1.0.2
3+
// @version 1.0.3
44
// @author aminomancer
55
// @homepage https://github.com/aminomancer/uc.css.js
66
// @description The mother of all proton reversals. Probably my least favorite "feature" of the UI refresh has been the removal of arrows from arrowpanels. I'd call it misguided, except I can't comprehend what guided it in the first place. I mean — they're called arrowpanels, and that should really say it all. The point of arrows is to point at something. In this case, to point at the node to which the panel is anchored. Some might think it's enough that the popup simply be anchored to the node. That might be true for small elements like tooltips. But panels are big enough that they can be lined up with many nodes, especially when they're opened on a toolbar that's full of other buttons. It's not like there aren't other ways to see where the panel is anchored, but why give the user less information? Moreover, don't the arrows look good? This change, more than any of the other ones, feels like change for change's sake. Stripping things down merely for the sake of simplifying them. Anyway, this script will basically restore a bunch of stuff that was removed in Nightly 96.0a1. Arrowpanels' glory days are not behind them, not if I have anything to say about it...
@@ -21,7 +21,7 @@
2121
},
2222
});
2323
spec.prototype._setSideAttribute = function (event) {
24-
if (!this.isArrowPanel || !this.isAnchored) {
24+
if (!this.isArrowPanel || !event.isAnchored) {
2525
return;
2626
}
2727

@@ -46,7 +46,7 @@
4646

4747
let arrow = this.shadowRoot.querySelector(".panel-arrow");
4848
if (arrow) {
49-
arrow.hidden = !this.isAnchored;
49+
arrow.hidden = !event.isAnchored;
5050
this.shadowRoot.querySelector(".panel-arrowbox").style.removeProperty("transform");
5151
}
5252

@@ -97,15 +97,15 @@
9797
this.panelContent.style.display = "";
9898
}
9999
if (this.isArrowPanel && event.target == this) {
100-
if (this.isAnchored && this.anchorNode) {
100+
if (event.isAnchored && this.anchorNode) {
101101
let anchorRoot =
102102
this.anchorNode.closest("toolbarbutton, .anchor-root") || this.anchorNode;
103103
anchorRoot.setAttribute("open", "true");
104104
}
105105

106106
let arrow = this.shadowRoot.querySelector(".panel-arrow");
107107
if (arrow) {
108-
arrow.hidden = !this.isAnchored;
108+
arrow.hidden = !event.isAnchored;
109109
this.shadowRoot
110110
.querySelector(".panel-arrowbox")
111111
.style.removeProperty("transform");

resources/in-content/ext-ublock.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
/* uBlock Origin dark theme */
88

9-
@-moz-document regexp("^moz-extension://.*/.*")
9+
/* @-moz-document regexp("^moz-extension://.*/.*") */
10+
@-moz-document url("disabled")
1011
{
1112
@media (prefers-color-scheme: dark) {
1213
:root[uc-extension-id="uBlock0@raymondhill.net"] {

resources/in-content/system.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,8 @@
634634
}
635635

636636
.container {
637-
margin-inline-start: calc(3% + 65px) !important;
637+
/* below: left align the text in about:reader */
638+
/* margin-inline-start: calc(3% + 65px) !important; */
638639
max-width: var(--final-content-width) !important;
639640
}
640641

0 commit comments

Comments
 (0)