Discourse forums no longer allowing me to log in Topic is solved

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
Tharthan
Board Warrior
Board Warrior
Posts: 1409
Joined: 2019-05-20, 20:07
Location: New England

Discourse forums no longer allowing me to log in

Unread post by Tharthan » 2023-01-18, 13:17

Just an example of one, for reference: https://discourse.psychopy.org/

This only started happening today.

There was a thread about some people having some problems with Discourse last year, but that user had their user agent mode set to "Firefox compatibility". As soon as they set it to "Native," it fixed the issue.

My user agent mode was already set to Native, and the forum that I was using worked just fine yesterday.

For reference, the notice at the top of the page says: "Unfortunately, your browser is unsupported. Please switch to a supported browser to view rich content, log in and reply."

I find it interesting that the notice merely says that it doesn't support my browser, rather than mistakenly saying that my browser is somehow outdated when it isn't. That makes me wonder if this is conscious, browser-specific targetting to lock out users of non-Chrome and non-Chromelike browsers.
"This is a war against individuality and intelligence. Only thing we can do is stand strong."adesh, 9 January 2020

"I used to think I was a grumpy old man, but I don't hold a candle compared to Tharthan."Cassette, 9 September 2020

Image

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 933
Joined: 2021-01-26, 11:18

Re: Discourse forums no longer allowing me to log in

Unread post by Kris_88 » 2023-01-18, 19:08

Code: Select all

/* eslint-disable no-var */ // `let` is not supported in very old browsers

(function () {
  if (!window.WeakMap || !window.Promise || typeof globalThis === "undefined" || !String.prototype.replaceAll || !CSS.supports || !CSS.supports("aspect-ratio: 1")) {
    window.unsupportedBrowser = true;
  } else {
    // Some implementations of `WeakMap.prototype.has` do not accept false
    // values and Ember's `isClassicDecorator` sometimes does that (it only
    // checks for `null` and `undefined`).
    try {
      new WeakMap().has(0);
    } catch (err) {
      window.unsupportedBrowser = true;
    }
    var match = window.navigator.userAgent.match(/Firefox\/([0-9]+)\./);
    var firefoxVersion = match ? parseInt(match[1], 10) : null;
    if (firefoxVersion && firefoxVersion < 89) {
      // prior to v89, Firefox has bugs with document.execCommand("insertText")
      // https://bugzil.la/1220696
      window.unsupportedBrowser = true;
    }
  }
})();
//# sourceMappingURL=browser-detect-74870a7e619fb88ff0a37d205a6c03d6d42e92ed111f3d2a6ea783fa926918d3.map
//!

;
The problem: !CSS.supports("aspect-ratio: 1")

Try to block this script:

Code: Select all

https://global.discourse-cdn.com/business7/assets/browser-detect-18068a2d9ee3b1943a0bea70aa916d391f1dc6c03eeb7917ead5d6e0a637321a.br.js
or

Code: Select all

https://global.discourse-cdn.com/*browser-detect-*.js

User avatar
Tharthan
Board Warrior
Board Warrior
Posts: 1409
Joined: 2019-05-20, 20:07
Location: New England

Re: Discourse forums no longer allowing me to log in

Unread post by Tharthan » 2023-01-18, 23:14

If I try to block one or the other, or if I attempt to block both of them, then it results in either a. a completely blank page loading instead of the homepage of the forum, or in the case of the link above it results in b. a page that is blank except for one single line which has what would appear to be links, except that they are unclickable, saying "psychopy.org | Reference | Downloads | Github".
"This is a war against individuality and intelligence. Only thing we can do is stand strong."adesh, 9 January 2020

"I used to think I was a grumpy old man, but I don't hold a candle compared to Tharthan."Cassette, 9 September 2020

Image

User avatar
adoxa
Fanatic
Fanatic
Posts: 153
Joined: 2019-03-16, 13:26

Re: Discourse forums no longer allowing me to log in

Unread post by adoxa » 2023-01-19, 07:36

I got it to work (in Basilisk) by using GreaseMonkey to fake CSS.supports and Modify HTTP Response to replace ??= & ||=.

Code: Select all

// ==UserScript==
// @name        CSS aspect-ratio
// @namespace   adoxa
// @include     https://discourse.psychopy.org/
// @version     1
// @grant       none
// @run-at      document-start
// ==/UserScript==
!function() {
  let CSS_supports = CSS.supports;
  CSS.supports = function(a) {
    return a === "aspect-ratio: 1" || CSS_supports(a);
  }
}()

Code: Select all

[["global.discourse-cdn.com",["/business7/assets/vendor-5a19f0a026c78c47c5c658bbf590b6b4cb0e32bb984396a5295192781a65e7fb.gz.js",["t.discourse.hoisted??={}","t.discourse.hoisted??(t.discourse.hoisted={})","n??=[]","n||(n=[])","t[e]??=[]","t[e]??(t[e]=[])","r||={}","r||(r={})"]],["/business7/assets/discourse-f7231bd5d10aa613b323a0cac71d8003baa74ef74f674fe4f91e4857994e661b.gz.js",["e.draft||=t.draft","e.draft||(e.draft=t.draft)","n||={}","n||(n={})","f[e]??=[]","f[e]??(f[e]=[])","t.__registry__._typeInjections.service??=[]","t.__registry__._typeInjections.service??(t.__registry__._typeInjections.service=[])"]]]]
That's specific to the current version, updates are left as an exercise for the reader...

User avatar
Tharthan
Board Warrior
Board Warrior
Posts: 1409
Joined: 2019-05-20, 20:07
Location: New England

Re: Discourse forums no longer allowing me to log in

Unread post by Tharthan » 2023-01-19, 17:08

If you got it to work, then I imagine that it will work for me, too.

However, I am not familiar with manually creating Greasemonkey scripts (or code scripts in general). With that said, I was able to use the Greasemonkey extension in Basilisk to make something out of the top code block that you gave me, but I don't know what I am supposed to do with the bottom code block. Am I supposed to create a blank line below what I already have, and then on the line after that insert the contents of the second code block?
"This is a war against individuality and intelligence. Only thing we can do is stand strong."adesh, 9 January 2020

"I used to think I was a grumpy old man, but I don't hold a candle compared to Tharthan."Cassette, 9 September 2020

Image

User avatar
adoxa
Fanatic
Fanatic
Posts: 153
Joined: 2019-03-16, 13:26

Re: Discourse forums no longer allowing me to log in

Unread post by adoxa » 2023-01-20, 00:28

The second line is the filter for Modify HTTP Response. There's been an update, so here's a new one, testing the paths as regex (the relevant content itself didn't change).

Code: Select all

[["global.discourse-cdn.com",["/\\/business7\\/assets\\/vendor-.*\\.gz\\.js/",["t.discourse.hoisted??={}","t.discourse.hoisted??(t.discourse.hoisted={})","n??=[]","n||(n=[])","t[e]??=[]","t[e]??(t[e]=[])","r||={}","r||(r={})"]],["/\\/business7\\/assets\\/discourse-.*\\.gz\\.js/",["e.draft||=t.draft","e.draft||(e.draft=t.draft)","n||={}","n||(n={})","f[e]??=[]","f[e]??(f[e]=[])","t.__registry__._typeInjections.service??=[]","t.__registry__._typeInjections.service??(t.__registry__._typeInjections.service=[])"]]]]

User avatar
Tharthan
Board Warrior
Board Warrior
Posts: 1409
Joined: 2019-05-20, 20:07
Location: New England

Re: Discourse forums no longer allowing me to log in

Unread post by Tharthan » 2023-01-20, 02:02

Thank you for the explanation. I have downloaded that extension and added the (updated) filter.

Unfortunately, running the script "CSS aspect-ratio 1" (created from the first code block in the post before your last post) and the Modify HTTP Response filter (created from the code block in your last post) yielded no results here on my end other than the page (https://discourse.psychopy.org/) displaying in Basilisk the way that I described it displaying in Pale Moon to Kris_88 when they had me try something earlier in the thread.

Interestingly, if I go to an individual thread on that forum, it doesn't display that way and instead just looks the same as if I had Greasemonkey and Modify HTTP Response disabled. I don't know why that would be, but it seemed worth mentioning since it seems odd that the homepage would be basically a blank white page other than that single line that I mentioned in the response to Kris_88, but attempting to open a link to a particular thread on the forum displays as if I had Greasemonkey and Modify HTTP Response disabled.

(An example thread: https://discourse.psychopy.org/t/please ... verybody/8)

For reference, I am normally a Pale Moon user, not a Basilisk user. However, Basilisk is installed as my back-up browser, and I did use Basilisk for the purpose of testing to see whether the workaround would work for me.

The version of Basilisk that I am using is the current version, 2022.09.28. I am using a Windows 7 computer, if that matters for this workaround (I am intending to migrate to a GNU/Linux environment at some point this year, but that transition hasn't occurred yet).

The only extensions present with my Basilisk installation are:

• Greasemonkey for Pale Moon Version 3.31.4

• Modify HTTP Response 1.3.8

• Palefill Web Technologies Polyfill 1.25

(I have no adblockers installed for Basilisk, since it is not my everyday browser, and I only semi-regularly use it to access one or two sites that strangely seem to work in Basilisk for whatever reason, but not in Pale Moon.)

I have "Tell sites not to share or sell my data" enabled. I don't know if that would have any impact on the workaround not working for me, but I thought that I would mention that just in case it did.

I have also tried—with the Greasemonkey script and the Modify HTTP Response filter enabled—to access the example Discord forum linked in the original post in both normal and private browsing, to see if it made a difference in whether the workaround worked for me or not. It made no difference.
"This is a war against individuality and intelligence. Only thing we can do is stand strong."adesh, 9 January 2020

"I used to think I was a grumpy old man, but I don't hold a candle compared to Tharthan."Cassette, 9 September 2020

Image

User avatar
Nigaikaze
Board Warrior
Board Warrior
Posts: 1322
Joined: 2014-02-02, 22:15
Location: Chicagoland

Re: Discourse forums no longer allowing me to log in

Unread post by Nigaikaze » 2023-01-20, 02:10

Tharthan wrote:
2023-01-20, 02:02
The version of Basilisk that I am using is the current version, 2022.09.28.
I don't know how much difference it would make for what you're attempting here, but the current Basilisk version is 2023.01.07.
Nichi nichi kore ko jitsu = Every day is a good day.

User avatar
adoxa
Fanatic
Fanatic
Posts: 153
Joined: 2019-03-16, 13:26

Re: Discourse forums no longer allowing me to log in

Unread post by adoxa » 2023-01-20, 07:25

Tharthan wrote:
2023-01-20, 02:02
[A]ttempting to open a link to a particular thread on the forum displays as if I had Greasemonkey and Modify HTTP Response disabled.
Sorry, you need to add a * to the end of the include line.
The version of Basilisk that I am using is the current version, 2022.09.28. I am using a Windows 7 computer[...]
As has been mentioned, I'm using 2023.01.08 and Windows 10, but that shouldn't make a difference.
• Greasemonkey for Pale Moon Version 3.31.4
I'm still using 3.11 (never updated when I switched from Firefox).
• Modify HTTP Response 1.3.8

• Palefill Web Technologies Polyfill 1.25
Same.
(I have no adblockers installed for Basilisk, since it is not my everyday browser, and I only semi-regularly use it to access one or two sites that strangely seem to work in Basilisk for whatever reason, but not in Pale Moon.)
I use Proxydomo for adblocking, which could potentially have inadvertently fixed something else.

After adding the * myself, I've attached a small image showing how I see the example thread (the login button seems to work, but I didn't try anything within it).
Attachments
Example Discourse page.
Example Discourse page.

User avatar
Tharthan
Board Warrior
Board Warrior
Posts: 1409
Joined: 2019-05-20, 20:07
Location: New England

Re: Discourse forums no longer allowing me to log in

Unread post by Tharthan » 2023-01-20, 14:50

Nigaikaze wrote:
2023-01-20, 02:10
I don't know how much difference it would make for what you're attempting here, but the current Basilisk version is 2023.01.07.
Ah, I was unaware. For some reason, version 2022.09.28 didn't perceive any new updates, and so it appeared to be the current version in "About Basilisk." Thank you for informing me of that.

I have now manually upgraded my Basilisk installation to version 2023.01.07.
adoxa wrote:
2023-01-20, 07:25
Sorry, you need to add a * to the end of the include line.
Ah, alright.

I have now done that.
adoxa wrote:
2023-01-20, 07:25
I'm still using [Greasemonkey version} 3.11 (never updated when I switched from Firefox).
Do you suspect that the version difference here would impact whether the workaround would work for a user or not, or do you think that the relevant functionality would probably be the same, and so it therefore ought not to make a difference?
adoxa wrote:
2023-01-20, 07:25
I've attached a small image showing how I see the example thread (the login button seems to work, but I didn't try anything within it).
Yeah, so for me, as mentioned earlier only that top line (psychopy.org | Reference | Downloads | Github) is displaying at all. The rest is just a blank page. No login buttons, nor even the "Your browser is not supported" banner that sits at the top of the page if I were to disable Greasemonkey and Modify HTTP Response.
adoxa wrote:
2023-01-20, 07:25
I use Proxydomo for adblocking, which could potentially have inadvertently fixed something else.
I looked at the releases for that, and downloaded the zipped folder for the latest version. Looking inside of the extracted folder, I am confused and am not exactly sure what it is.

Is this a program that operates independently of a browser, impacting any and all Internet activity irrespective of the browser, rather than something that works with an individual browser?
"This is a war against individuality and intelligence. Only thing we can do is stand strong."adesh, 9 January 2020

"I used to think I was a grumpy old man, but I don't hold a candle compared to Tharthan."Cassette, 9 September 2020

Image

User avatar
adoxa
Fanatic
Fanatic
Posts: 153
Joined: 2019-03-16, 13:26

Re: Discourse forums no longer allowing me to log in

Unread post by adoxa » 2023-01-21, 00:26

Tharthan wrote:
2023-01-20, 14:50
Do you suspect that the [GreaseMonkey] version difference here would impact whether the workaround would work for a user or not, or do you think that the relevant functionality would probably be the same, and so it therefore ought not to make a difference?
If you don't see the unsupported message then GreaseMonkey is working.
Tharthan wrote:
2023-01-20, 14:50
Is [Proxydomo] a program that operates independently of a browser, impacting any and all Internet activity irrespective of the browser, rather than something that works with an individual browser?
Yes, it's a proxy that acts as a filter, and what I normally use for doing things such as this. After disabling it I discovered the problem - the scripts switch from .gz to .br, which explains why it's not working for you. Edit the filter and remove \.gz from the two paths and you should (finally!) be good to go.

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 933
Joined: 2021-01-26, 11:18

Re: Discourse forums no longer allowing me to log in

Unread post by Kris_88 » 2023-01-21, 14:48

Then, probably, it's possible to make it without Greasemonkey.

Code: Select all

[["global.discourse-cdn.com",["/browser-detect-/",["/.*/g",""]],["/vendor-5a19/",["t.discourse.hoisted??={}","t.discourse.hoisted??(t.discourse.hoisted={})","n??=[]","n||(n=[])","t[e]??=[]","t[e]??(t[e]=[])","r||={}","r||(r={})"]],["/discourse-c344/",["e.draft||=t.draft","e.draft||(e.draft=t.draft)","n||={}","n||(n={})","f[e]??=[]","f[e]??(f[e]=[])","t.__registry__._typeInjections.service??=[]","t.__registry__._typeInjections.service??(t.__registry__._typeInjections.service=[])"]]]]
adoxa, thank you. "Modify HTTP Response" is a really good tool.

User avatar
Tharthan
Board Warrior
Board Warrior
Posts: 1409
Joined: 2019-05-20, 20:07
Location: New England

Re: Discourse forums no longer allowing me to log in

Unread post by Tharthan » 2023-01-21, 14:49

Thank you very much, adoxa!

It did finally work after I removed \.gz from the filter.

And, by merely changing the address under "Included Pages" in the Greasemonkey script (including an asterisk in order that it apply to any possible page on the website), I am able to get it to work for whatever the Discourse forum might be.

So, for reference for readers who might wish to use this workaround as well—


The Greasemonkey script is:

Code: Select all

// ==UserScript==
// @name        CSS aspect-ratio
// @namespace   adoxa
// @include     https://insertwebsitehere.com/*
// @version     1
// @grant       none
// @run-at      document-start
// ==/UserScript==
!function() {
  let CSS_supports = CSS.supports;
  CSS.supports = function(a) {
    return a === "aspect-ratio: 1" || CSS_supports(a);
  }
}()

And the filter for the Modify HTTP Response extension is:

Code: Select all

[["global.discourse-cdn.com",["/\\/business7\\/assets\\/vendor-.*\\.js/",["t.discourse.hoisted??={}","t.discourse.hoisted??(t.discourse.hoisted={})","n??=[]","n||(n=[])","t[e]??=[]","t[e]??(t[e]=[])","r||={}","r||(r={})"]],["/\\/business7\\/assets\\/discourse-.*\\.js/",["e.draft||=t.draft","e.draft||(e.draft=t.draft)","n||={}","n||(n={})","f[e]??=[]","f[e]??(f[e]=[])","t.__registry__._typeInjections.service??=[]","t.__registry__._typeInjections.service??(t.__registry__._typeInjections.service=[])"]]]]
"This is a war against individuality and intelligence. Only thing we can do is stand strong."adesh, 9 January 2020

"I used to think I was a grumpy old man, but I don't hold a candle compared to Tharthan."Cassette, 9 September 2020

Image

freedom4all
Moonbather
Moonbather
Posts: 51
Joined: 2022-11-08, 03:11

Re: Discourse forums no longer allowing me to log in

Unread post by freedom4all » 2023-01-22, 00:15

Here is their official statement: https://www.discourse.org/about#browser

Code: Select all

Discourse is designed for the next 10 years of the Internet, so the minimum browser requirements are high.

Discourse supports the latest, stable releases of all major browsers and platforms:

    Microsoft Edge
    Google Chrome
    Mozilla Firefox
    Apple Safari

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

Re: Discourse forums no longer allowing me to log in

Unread post by vannilla » 2023-01-22, 16:58

freedom4all wrote:
2023-01-22, 00:15
for the next 10 years of the Internet
Wouldn't that then mean not following a living standard changing every month but rather use tried and tested features?
What shiny new feature do you even need to display some text, an image as avatar and a submission form, that is not already available now?

User avatar
sidology
Moon lover
Moon lover
Posts: 79
Joined: 2021-12-04, 22:07

Re: Discourse forums no longer allowing me to log in

Unread post by sidology » 2023-01-25, 15:46

Off-topic:
Kris_88 wrote:
2023-01-21, 14:48
"Modify HTTP Response" is a really good tool.
Is it possible to use Modify HTTP Response (or GreaseMonkey) to fix this issue?

Code: Select all

Cannot play media. No decoders for requested formats: video/webm; codecs="vp8 vorbis"
Pale Moon doesn't recognize codecs="vp8 vorbis", but it would recognize codecs="vp8,vorbis"

Thank you.

EDIT: Forgot to give example site: store.epicgames.com.

dinosaur
Fanatic
Fanatic
Posts: 165
Joined: 2014-06-03, 09:26
Location: France

Re: Discourse forums no longer allowing me to log in

Unread post by dinosaur » 2023-01-25, 20:39

I today have the same kind of problem with https://forums.developer.nvidia.com/ and Pale Moon v32.0.0...

I could not manage to get the above scripts to work (but maybe I did something wrong with Modify HTTP response).

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 933
Joined: 2021-01-26, 11:18

Re: Discourse forums no longer allowing me to log in

Unread post by Kris_88 » 2023-01-26, 02:13

dinosaur wrote:
2023-01-25, 20:39
I today have the same kind of problem with https://forums.developer.nvidia.com/ and Pale Moon v32.0.0...

Code: Select all

[["global.discourse-cdn.com",["/browser-detect-/",["/.*/g",""]],["/vendor-5a19/",["t.discourse.hoisted??={}","t.discourse.hoisted??(t.discourse.hoisted={})","n??=[]","n||(n=[])","t[e]??=[]","t[e]??(t[e]=[])","r||={}","r||(r={})"]],["/discourse-8dc4f/",["e.draft||=t.draft","e.draft||(e.draft=t.draft)","n||={}","n||(n={})","f[e]??=[]","f[e]??(f[e]=[])","t.__registry__._typeInjections.service??=[]","t.__registry__._typeInjections.service??(t.__registry__._typeInjections.service=[])"]]]]
The Greasemonkey script is not needed.

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 933
Joined: 2021-01-26, 11:18

Re: Discourse forums no longer allowing me to log in

Unread post by Kris_88 » 2023-01-26, 02:19

Off-topic:
sidology wrote:
2023-01-25, 15:46

Code: Select all

Cannot play media. No decoders for requested formats: video/webm; codecs="vp8 vorbis"
Yes, this can be fixed. But in the coming days I have no free time.

dinosaur
Fanatic
Fanatic
Posts: 165
Joined: 2014-06-03, 09:26
Location: France

Re: Discourse forums no longer allowing me to log in

Unread post by dinosaur » 2023-01-26, 09:55

Kris_88 wrote:
2023-01-26, 02:13

Code: Select all

[["global.discourse-cdn.com",["/browser-detect-/",["/.*/g",""]],["/vendor-5a19/",["t.discourse.hoisted??={}","t.discourse.hoisted??(t.discourse.hoisted={})","n??=[]","n||(n=[])","t[e]??=[]","t[e]??(t[e]=[])","r||={}","r||(r={})"]],["/discourse-8dc4f/",["e.draft||=t.draft","e.draft||(e.draft=t.draft)","n||={}","n||(n={})","f[e]??=[]","f[e]??(f[e]=[])","t.__registry__._typeInjections.service??=[]","t.__registry__._typeInjections.service??(t.__registry__._typeInjections.service=[])"]]]]
The Greasemonkey script is not needed.
Working beautifully, many thanks ! :thumbup:

Post Reply