endoflife.date: Left scrollbar presence, text overlap

For support with specific websites

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:
  1. Clear any current output
  2. Navigate or refresh the page in question
  3. Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2895
Joined: 2012-08-19, 20:32

endoflife.date: Left scrollbar presence, text overlap

Unread post by back2themoon » 2025-05-19, 12:41

https://endoflife.date/
endoflifedate.png
Couldn't reproduce an error. Looks similar to this recent issue.
You do not have the required permissions to view the files attached to this post.

User avatar
adoxa
Lunatic
Lunatic
Posts: 429
Joined: 2019-03-16, 13:26
Location: Qld, Aus.

Re: endoflife.date: Left scrollbar presence, text overlap

Unread post by adoxa » 2025-05-19, 14:29

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)
  }
}

User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2895
Joined: 2012-08-19, 20:32

Re: endoflife.date: Left scrollbar presence, text overlap

Unread post by back2themoon » 2025-05-19, 15:18

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:

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);
 }
}})();
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.

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2408
Joined: 2018-05-05, 13:29

Re: endoflife.date: Left scrollbar presence, text overlap

Unread post by vannilla » 2025-05-19, 22:56

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);
})();

User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2895
Joined: 2012-08-19, 20:32

Re: endoflife.date: Left scrollbar presence, text overlap

Unread post by back2themoon » 2025-05-19, 23:18

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!

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37685
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: endoflife.date: Left scrollbar presence, text overlap

Unread post by Moonchild » 2025-05-20, 13:15

back2themoon wrote:
2025-05-19, 23:18
I've decided to switch to Stylem/userstyles for these hopefully temporary fixes. It even seems to perform faster than GM.
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.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite