Palemoon does not allow the dark mode on this site (sapo.pt)

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.
JMFC_1962
Hobby Astronomer
Hobby Astronomer
Posts: 19
Joined: 2016-12-16, 00:52

Palemoon does not allow the dark mode on this site (sapo.pt)

Unread post by JMFC_1962 » 2021-08-26, 15:36

This site https://www.sapo.pt/ is where i read the news daily and a few months ago they put the function of showing the site in dark or light mode or this function is automatic according to the way it is being used in the operating system (in my case windows 10).
To connect this function there is a button with the three options on the home page, but in the Pale Moon this button disappears almost immediately after entering the home page and does not allow to control this functionality. The problem that I mentioned does not happen in other browsers (Firefox, Edge, Opera). I send you some screen prints made at Pale Moon and Firefox to see the problem. In the Firefox image the button to select the dark mode I made a red mark around it to see how this button is.
I have already tried disable all the Add-ons of Pale Moon, but the problem remains.
Is there any changes that I can do in the configuration of Pale Moon and solve these problems?


Operating system: Windows 10 Home Version 21H1 64-bit
Browser version: 29.4.0.2
32-bit or 64-bit?: 64-bit
Problem URL: https://www.sapo.pt/
Theme: Blue Sharepoint
Installed add-ons: Active Toolbars More Visible 3.0.0
Bookmarks Toolbar More Visible 1.1.0
Downloads Statusbar 15.2.0
Forecast & Weather on the Button 1.4.0
HTTPS Always 5.2.26
Image Toolbox 1.0.2
microGesture 2.4.1
Pale Moon Locale Switcher 3.1
Tab Counter 1.04
Tab Mix Plus 0.5.8.1
ThemeTool 6.2.0
uBlock Origin
Installed plugins: (about:plugins) VLC Web Plugin , Silverlight Plug-In
Attachments
Firefox - Sapo Home page in dark Mode
Firefox - Sapo Home page in dark Mode
Firefox - Sapo Home page in light Mode with button surrounded with red
Firefox - Sapo Home page in light Mode with button surrounded with red
Pale Moon  - Sapo Home page with no button
Pale Moon - Sapo Home page with no button
Last edited by Moonchild on 2021-08-26, 15:43, edited 1 time in total.
Reason: Mention the site.

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

Re: Palemoon does not allow the dark mode on this site (sapo.pt)

Unread post by Moonchild » 2021-08-26, 15:43

Please always mention the name/domain of the website in question in your topic title.

Please try and 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.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

JMFC_1962
Hobby Astronomer
Hobby Astronomer
Posts: 19
Joined: 2016-12-16, 00:52

Re: Palemoon does not allow the dark mode on this site (sapo.pt)

Unread post by JMFC_1962 » 2021-08-27, 17:10

I hope I am doing this correctly, because I do not know anything about programming and never used the programming tools.

This is the Message from Toolkit Error Console:

Data/Hora: 27-08-2021 17:56:47
Erro: Content Security Policy: As definições da página bloquearam o carregamento de um recurso em data:application/javascript;base64,KGZ1b... ("script-src https: blob: 'unsafe-inline' 'unsafe-eval'").

This is the Message from Developer Tools Web Console:

Content Security Policy: As definições da página bloquearam o carregamento de um recurso em data:application/javascript;base64,KGZ1b... ("script-src https: blob: 'unsafe-inline' 'unsafe-eval'").
(desconhecido)
Ink.Net.Ajax: an error was raised while executing onSuccess. TypeError: SAPO.ColorScheme.setPicturesColorScheme is not a function
Stack trace:
i@https://homepagept.web.sapo.io/assets/j ... js:12:5179
g/</<@https://homepagept.web.sapo.io/assets/j ... js:12:1865
forEach@https://homepagept.web.sapo.io/assets/j ... js:6:11835
g/<@https://homepagept.web.sapo.io/assets/j ... js:12:1793
forEach@https://homepagept.web.sapo.io/assets/j ... js:6:11835
g@https://homepagept.web.sapo.io/assets/j ... js:12:1769
onSuccess@https://homepagept.web.sapo.io/assets/j ... js:12:1682
safeCall@https://homepagept.web.sapo.io/assets/j ... .js:4:7447
runStateChange@https://homepagept.web.sapo.io/assets/j ... .js:4:6974
bind/<@https://homepagept.web.sapo.io/assets/j ... js:3:31553

New Tobin Paradigm

Re: Palemoon does not allow the dark mode on this site (sapo.pt)

Unread post by New Tobin Paradigm » 2021-08-27, 17:16

Moonchild wrote:
2021-08-26, 15:43
Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.

JMFC_1962
Hobby Astronomer
Hobby Astronomer
Posts: 19
Joined: 2016-12-16, 00:52

Re: Palemoon does not allow the dark mode on this site (sapo.pt)

Unread post by JMFC_1962 » 2021-08-27, 17:21

Sorry i don't know what that means, I´m not an IT expert.

New Tobin Paradigm

Re: Palemoon does not allow the dark mode on this site (sapo.pt)

Unread post by New Tobin Paradigm » 2021-08-27, 19:00

JMFC_1962 wrote:
2021-08-27, 17:21
Sorry i don't know what that means, I´m not an IT expert.
You can't use websites either like this forum?

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

Re: Palemoon does not allow the dark mode on this site (sapo.pt)

Unread post by vannilla » 2021-08-27, 19:17

It appears to be a user agent string issue.
When the compatibility setting is "Firefox Compatibility" (the default value), the buttons disappear and the reported error message is printed in the console.
"Native" and "Gecko Compatibility" display the buttons and it is also possible to change color theme. The buttons are there even when disabling the site's scripts when using the working user agent settings.

New Tobin Paradigm

Re: Palemoon does not allow the dark mode on this site (sapo.pt)

Unread post by New Tobin Paradigm » 2021-08-27, 20:47

They may be assuming based on UA that the preferred color scheme is in control.. Which we do have now. Try setting it to dark in Preferences and see if it responds accordingly.

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

Re: Palemoon does not allow the dark mode on this site (sapo.pt)

Unread post by vannilla » 2021-08-27, 22:18

Regardless of the user agent compatibility mode being selected, telling websites that dark colors are preferred, from the browser's preference window, will result in the site changing its theme to a dark one.
In case of "Native" and "Gecko" modes, the in-site theme (i.e. the "disappearing" buttons) must be set to "Auto" to provide the same effect (obviously.)
Basically, the preferred color scheme is always checked, but buttons are displayed only when the site thinks the browser doesn't support this feature.

New Tobin Paradigm

Re: Palemoon does not allow the dark mode on this site (sapo.pt)

Unread post by New Tobin Paradigm » 2021-08-27, 22:38

Unless the website isn't SERVING that bit based on UA.

Locked