Discourse forums no longer allowing me to log in Topic is solved
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: 3141
- Joined: 2012-08-19, 20:32
Re: Discourse forums no longer allowing me to log in
Yes, thank you adoxa for your efforts and to everyone else who contributes.
-
Lucio Chiappetti
- Keeps coming back

- Posts: 908
- Joined: 2014-09-01, 15:11
- Location: Milan Italy
Re: Discourse forums no longer allowing me to log in
@adoxa: could you please give details about the way to add the filter(s) you give in "code brackets" to Modify HTTP Response ?
I have only one previous filter, listed in the add-on page. If I disable (untick enable) it, the https://forum.italia.it/ site gives the browser unsupported message and I do not get the login button. If I enable it theb login button appears ... as it used to be until a few days ago, but seems inactive.
So I suppose I'd have either to add or replace (which?) my current filter with one or both (which?) of those in your posts 22 Jul 2023 10:08 and 18 Jul 2023 08:55.
If I have to replace with one of the two I can do it (delete then paste), but if I have to add multiple filters I do not know operationally how to proceed.
I have only one previous filter, listed in the add-on page. If I disable (untick enable) it, the https://forum.italia.it/ site gives the browser unsupported message and I do not get the login button. If I enable it theb login button appears ... as it used to be until a few days ago, but seems inactive.
So I suppose I'd have either to add or replace (which?) my current filter with one or both (which?) of those in your posts 22 Jul 2023 10:08 and 18 Jul 2023 08:55.
If I have to replace with one of the two I can do it (delete then paste), but if I have to add multiple filters I do not know operationally how to proceed.
The reasonable man adapts himself to the world: the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. (G.B. Shaw)
-
Tharthan
- Board Warrior

- Posts: 1445
- Joined: 2019-05-20, 20:07
- Location: New England
Re: Discourse forums no longer allowing me to log in
You need only replace it with this filter, which will: 1. disable the website lockout, 2. fix the login button, and 3. fix the buttons in the edit window.Lucio Chiappetti wrote: ↑2023-07-24, 16:41I suppose I'd have either to add or replace (which?) my current filter with one or both (which?) of those in your posts 22 Jul 2023 10:08 and 18 Jul 2023 08:55.
If I have to replace with one of the two I can do it (delete then paste), but if I have to add multiple filters I do not know operationally how to proceed.
-
adoxa
- Astronaut

- Posts: 615
- Joined: 2019-03-16, 13:26
- Location: Qld, Aus.
Re: Discourse forums no longer allowing me to log in
As Tharthan indicates, as far as Discourse goes the newest filter supersedes all the earlier filters. If, however, you want to combine this filter with another one, the trick is to remove brackets:Lucio Chiappetti wrote: ↑2023-07-24, 16:41[I]f I have to add multiple filters I do not know operationally how to proceed.
Code: Select all
[[filter1]]]]
[[filter2]]]]
Code: Select all
[[filter1]]],[filter2]]]]
-
Lucio Chiappetti
- Keeps coming back

- Posts: 908
- Joined: 2014-09-01, 15:11
- Location: Milan Italy
Re: Discourse forums no longer allowing me to log in
Thanks to both. Works like a charm.
The reasonable man adapts himself to the world: the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. (G.B. Shaw)
-
damjang
- Fanatic

- Posts: 114
- Joined: 2012-01-14, 11:22
Re: Discourse forums no longer allowing me to log in
For me the last script don't work for https://community.openstreetmap.org/ but work eg. on https://discourse.psychopy.org/ . Any help? Thank you!
-
adoxa
- Astronaut

- Posts: 615
- Joined: 2019-03-16, 13:26
- Location: Qld, Aus.
Re: Discourse forums no longer allowing me to log in
Remove the \\. after community (it uses community-cdn).
-
damjang
- Fanatic

- Posts: 114
- Joined: 2012-01-14, 11:22
Re: Discourse forums no longer allowing me to log in
Thank you, works ok! 
-
adoxa
- Astronaut

- Posts: 615
- Joined: 2019-03-16, 13:26
- Location: Qld, Aus.
Re: Discourse forums no longer allowing me to log in
Update to work with tarnkappe.info.
Code: Select all
[["/discourse|^discuss|^community|^forum\\.|cloudfront|resource\\.dopus\\.com|cdn\\.tarnkappe\\.info/",["/browser-detect-/",["/.*/g",""]],["/discourse-[0-9a-f]{4}/",["(.d-modal-legacy\"","(.d-modal-legacy)\"","document.execCommand(\"insertText\",!1,","this._textarea.setRangeText("]]]]
-
adoxa
- Astronaut

- Posts: 615
- Joined: 2019-03-16, 13:26
- Location: Qld, Aus.
Re: Discourse forums no longer allowing me to log in
Update to work with devtalk.blender.org. Might be better to work with all hosts...
Code: Select all
[["/discourse|^discuss|^community|^forum\\.|cloudfront|resource\\.dopus\\.com|cdn\\.tarnkappe\\.info|devtalk\\.blender\\.org/",["/browser-detect-/",["/.*/g",""]],["/discourse-[0-9a-f]{4}/",["(.d-modal-legacy\"","(.d-modal-legacy)\"","document.execCommand(\"insertText\",!1,","this._textarea.setRangeText("]]]]
-
frostknight
- Keeps coming back

- Posts: 950
- Joined: 2022-08-10, 02:25
Re: Discourse forums no longer allowing me to log in
Another website is giving me a problem with this:
https://support.nitrokey.com/
I am curious if anyone can tell me how to get this site working properly again.
https://support.nitrokey.com/
I am curious if anyone can tell me how to get this site working properly again.
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!
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!
-
adoxa
- Astronaut

- Posts: 615
- Joined: 2019-03-16, 13:26
- Location: Qld, Aus.
Re: Discourse forums no longer allowing me to log in
Update to work with any host, but using a more specific path.
Alternatively, I think you could just block /assets/browser-detect-* (but you might still need the other fix for editing).
Code: Select all
[["/^/",["/^\\/assets\\/browser-detect-/",["/.*/g",""]],["/^\\/assets\\/discourse-[0-9a-f]{4}/",["(.d-modal-legacy\"","(.d-modal-legacy)\"","document.execCommand(\"insertText\",!1,","this._textarea.setRangeText("]]]]
-
frostknight
- Keeps coming back

- Posts: 950
- Joined: 2022-08-10, 02:25
Re: Discourse forums no longer allowing me to log in
I actually haven't done this before, the basics of this, what are they? I am a bit confused.adoxa wrote: ↑2023-09-30, 00:23Update to work with any host, but using a more specific path.
Alternatively, I think you could just block /assets/browser-detect-* (but you might still need the other fix for editing).Code: Select all
[["/^/",["/^\\/assets\\/browser-detect-/",["/.*/g",""]],["/^\\/assets\\/discourse-[0-9a-f]{4}/",["(.d-modal-legacy\"","(.d-modal-legacy)\"","document.execCommand(\"insertText\",!1,","this._textarea.setRangeText("]]]]
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!
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!
-
adoxa
- Astronaut

- Posts: 615
- Joined: 2019-03-16, 13:26
- Location: Qld, Aus.
-
frostknight
- Keeps coming back

- Posts: 950
- Joined: 2022-08-10, 02:25
Re: Discourse forums no longer allowing me to log in
Amazing, and this hasn't been updated since 2021. Yet it still worked, thanks!
I recommend someone keep watch on this addon in case it breaks tho.
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!
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!
-
Tharthan
- Board Warrior

- Posts: 1445
- Joined: 2019-05-20, 20:07
- Location: New England
Re: Discourse forums no longer allowing me to log in
Just a heads up. adoxa.
The second to last filter that you gave
works just fine for me.
However, the most recent one that you gave
does not work for at least one of the major Discourse forums that I use. All of the previous filters have worked just fine with it. But this most recent one doesn't.
So just a heads up that that most recent one doesn't work for all Discourse forums.
The second to last filter that you gave
Code: Select all
[["/discourse|^discuss|^community|^forum\\.|cloudfront|resource\\.dopus\\.com|cdn\\.tarnkappe\\.info|devtalk\\.blender\\.org/",["/browser-detect-/",["/.*/g",""]],["/discourse-[0-9a-f]{4}/",["(.d-modal-legacy\"","(.d-modal-legacy)\"","document.execCommand(\"insertText\",!1,","this._textarea.setRangeText("]]]]
However, the most recent one that you gave
Code: Select all
[["/^/",["/^\\/assets\\/browser-detect-/",["/.*/g",""]],["/^\\/assets\\/discourse-[0-9a-f]{4}/",["(.d-modal-legacy\"","(.d-modal-legacy)\"","document.execCommand(\"insertText\",!1,","this._textarea.setRangeText("]]]]
So just a heads up that that most recent one doesn't work for all Discourse forums.
Last edited by Tharthan on 2023-10-13, 01:55, edited 2 times in total.
-
adoxa
- Astronaut

- Posts: 615
- Joined: 2019-03-16, 13:26
- Location: Qld, Aus.
Re: Discourse forums no longer allowing me to log in
Try removing ^\\/assets\\/.
-
Tharthan
- Board Warrior

- Posts: 1445
- Joined: 2019-05-20, 20:07
- Location: New England
Re: Discourse forums no longer allowing me to log in
Thank you. Doing that makes it work.
Code: Select all
[["/^/",["/browser-detect-/",["/.*/g",""]],["/^\\/assets\\/discourse-[0-9a-f]{4}/",["(.d-modal-legacy\"","(.d-modal-legacy)\"","document.execCommand(\"insertText\",!1,","this._textarea.setRangeText("]]]]-
Tharthan
- Board Warrior

- Posts: 1445
- Joined: 2019-05-20, 20:07
- Location: New England
Re: Discourse forums no longer allowing me to log in
I do not know if others are having this issue that I encountered today, but now when trying to log in, while the login window pops up after clicking the "Log in" button, attempting to actually log in after inputting one's username and password fails because the second "log in" button (this is the one that has the image of the padlock next to it——within the username and password window) is unresponsive to both pressing the enter button, and also to attempting to click on it.
This issue wasn't present yesterday.
This issue wasn't present yesterday.
-
adoxa
- Astronaut

- Posts: 615
- Joined: 2019-03-16, 13:26
- Location: Qld, Aus.
Re: Discourse forums no longer allowing me to log in
PublicKeyCredential is not defined. Not sure of the best way to address that (it's not a specific file name), so atm enter PublicKeyCredential={} in the console, before clicking the first "Log in" button.