discourse breakage 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
frostknight
Keeps coming back
Keeps coming back
Posts: 959
Joined: 2022-08-10, 02:25

discourse breakage

Post by frostknight » 2026-03-29, 02:09

https://support.nitrokey.com/
https://community.mnt.re/

Both of these give me a white screen when I load them if javascript is enabled.

If its disabled, I cannot login.

the viewport is this for the SSL.

width=device-width, initial-scale=1.0, minimum-scale=1.0, viewport-fit=cover

used sasuga to find this.

and changing the user agent to that makes the screen resemble javascrpt disabled option.

IE, nothing...

Hate discourse btw a lot.
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Say NO to Fascism and Corporatism as much as possible!
Also, Peace Be With us All!

User avatar
Ander
Moongazer
Moongazer
Posts: 7
Joined: 2018-07-14, 00:11

Re: discourse breakage

Post by Ander » 2026-03-29, 02:38

Temporary workaround:

Code: Select all

// ==UserScript==
// @name        Discourse browser detect bypass
// @namespace   -
// @include     *
// @version     1
// @run-at      document-start
// @grant       none
// ==/UserScript==

Object.defineProperty(window, "unsupportedBrowser", {
	set(value) {},
	get() {return 0;},
	configurable: true
});
window.FinalizationRegistry = class {
	constructor(a) {}
	register(a,b) {}
}
it allows me to view the page, i haven't tested login

User avatar
frostknight
Keeps coming back
Keeps coming back
Posts: 959
Joined: 2022-08-10, 02:25

Re: discourse breakage

Post by frostknight » 2026-03-29, 03:10

Ander wrote:
2026-03-29, 02:38
Temporary workaround:

Code: Select all

// ==UserScript==
// @name        Discourse browser detect bypass
// @namespace   -
// @include     *
// @version     1
// @run-at      document-start
// @grant       none
// ==/UserScript==

Object.defineProperty(window, "unsupportedBrowser", {
	set(value) {},
	get() {return 0;},
	configurable: true
});
window.FinalizationRegistry = class {
	constructor(a) {}
	register(a,b) {}
}
it allows me to view the page, i haven't tested login
Do I just add make a new userscript from scratch and add this to it?
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Say NO to Fascism and Corporatism as much as possible!
Also, Peace Be With us All!

User avatar
Ander
Moongazer
Moongazer
Posts: 7
Joined: 2018-07-14, 00:11

Re: discourse breakage

Post by Ander » 2026-03-29, 03:32

yeah, if you don't want it running everywhere (i doubt any other site uses window.unsupportedBrowser) replace the * in

Code: Select all

// @include     *
with whatever url uses discourse

User avatar
frostknight
Keeps coming back
Keeps coming back
Posts: 959
Joined: 2022-08-10, 02:25

Re: discourse breakage

Post by frostknight » 2026-03-30, 05:17

Ander wrote:
2026-03-29, 03:32
yeah, if you don't want it running everywhere (i doubt any other site uses window.unsupportedBrowser) replace the * in

Code: Select all

// @include     *
with whatever url uses discourse

In any case, that userscript works.
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Say NO to Fascism and Corporatism as much as possible!
Also, Peace Be With us All!