endoflife.date: Left scrollbar presence, text overlap
Moderator: trava90
Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.
Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.
Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
- Clear any current output
- Navigate or refresh the page in question
- Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
-
back2themoon
- Knows the dark side

- Posts: 3097
- Joined: 2012-08-19, 20:32
endoflife.date: Left scrollbar presence, text overlap
You do not have the required permissions to view the files attached to this post.
Improve Pale Moon performance • Safe Mode / clean profile test info
How to auto-fill passwords • How to apply user agent overrides
Information to include when asking for support
Windows 10 Pro x64 (W11: hard pass)
How to auto-fill passwords • How to apply user agent overrides
Information to include when asking for support
Windows 10 Pro x64 (W11: hard pass)
-
adoxa
- Astronaut

- Posts: 596
- Joined: 2019-03-16, 13:26
- Location: Qld, Aus.
Re: endoflife.date: Left scrollbar presence, text overlap
It wants max; try this userstyle.
Code: Select all
@-moz-document domain("endoflife.date") {
.side-bar + .main {
margin-left: calc((100% - 66.5rem) / 2 + 16.5rem)
}
}
-
back2themoon
- Knows the dark side

- Posts: 3097
- Joined: 2012-08-19, 20:32
Re: endoflife.date: Left scrollbar presence, text overlap
Thank you adoxa, it works. I'm sure keeping you busy.
It is the first time that the CSS to userscript result fails to work:
Not expecting you are anyone else to fix this too, of course (or fix anything, for that matter). But I put the code here, just in case. It is impressive how verbose userscripts are in comparison.
It is the first time that the CSS to userscript result fails to work:
Code: Select all
// ==UserScript==
// @name endoflife.date fix (wants "max")
// @author adoxa
// @homepage https://forum.palemoon.org/viewtopic.php?f=70&t=32378&e=1#p262610
// @match https://*.endoflife.date/*
// @grant none
// @version 1.0
// ==/UserScript==
(function() {var css = ["@-moz-document domain('endoflife.date') {",
" .side-bar + .main {",
" margin-left: calc((100% - 66.5rem) / 2 + 16.5rem)",
" }",
"}"
].join("\n");
if (typeof GM_addStyle != 'undefined') {
GM_addStyle(css);
} else if (typeof PRO_addStyle != 'undefined') {
PRO_addStyle(css);
} else if (typeof addStyle != 'undefined') {
addStyle(css);
} else {
var node = document.createElement('style');
node.type = 'text/css';
node.appendChild(document.createTextNode(css));
var heads = document.getElementsByTagName('head');
if (heads.length > 0) { heads[0].appendChild(node);
} else {
// no head yet, stick it whereever
document.documentElement.appendChild(node);
}
}})();Improve Pale Moon performance • Safe Mode / clean profile test info
How to auto-fill passwords • How to apply user agent overrides
Information to include when asking for support
Windows 10 Pro x64 (W11: hard pass)
How to auto-fill passwords • How to apply user agent overrides
Information to include when asking for support
Windows 10 Pro x64 (W11: hard pass)
-
vannilla
- Moon Magic practitioner

- Posts: 2533
- Joined: 2018-05-05, 13:29
Re: endoflife.date: Left scrollbar presence, text overlap
The userscript can be simplified to:
Code: Select all
// ==UserScript==
// @name endoflife.date fix (wants "max")
// @author adoxa
// @homepage https://forum.palemoon.org/viewtopic.php?f=70&t=32378&e=1#p262610
// @match https://*.endoflife.date/*
// @grant none
// @version 1.0
// @run-at document-end
// ==/UserScript==
(function() {
const css = `.side-bar + .main {
margin-left: calc((100% - 66.5rem) / 2 + 16.5rem);
}`;
const node = document.createElement('style');
node.type = 'text/css';
node.innerText = css;
document.head.append(node);
})();-
back2themoon
- Knows the dark side

- Posts: 3097
- Joined: 2012-08-19, 20:32
Re: endoflife.date: Left scrollbar presence, text overlap
Thank you, vanillia. Tried it but it doesn't work. In any case, I've decided to switch to Stylem/userstyles for these hopefully temporary fixes. It even seems to perform faster than GM. That old CSS to UserScript Converter can be dodgy I guess, and if adoxa uses/prefers userstyles, I certainly won't disagree!
Improve Pale Moon performance • Safe Mode / clean profile test info
How to auto-fill passwords • How to apply user agent overrides
Information to include when asking for support
Windows 10 Pro x64 (W11: hard pass)
How to auto-fill passwords • How to apply user agent overrides
Information to include when asking for support
Windows 10 Pro x64 (W11: hard pass)
-
Moonchild
- Project founder

- Posts: 38923
- Joined: 2011-08-28, 17:27
- Location: Sweden
Re: endoflife.date: Left scrollbar presence, text overlap
Using the browser's native user style overrides plugging in CSS directly will always be more performant than injecting nodes via JS and forcing repaints for them to take effect. So not only is the converter dodgy but you're also choosing a much less optimal method to change styles.back2themoon wrote: ↑2025-05-19, 23:18I've decided to switch to Stylem/userstyles for these hopefully temporary fixes. It even seems to perform faster than GM.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite