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
back2themoon
Knows the dark side
Knows the dark side
Posts: 3141
Joined: 2012-08-19, 20:32

Re: Discourse forums no longer allowing me to log in

Post by back2themoon » 2023-07-24, 14:47

Yes, thank you adoxa for your efforts and to everyone else who contributes.

Lucio Chiappetti
Keeps coming back
Keeps coming back
Posts: 908
Joined: 2014-09-01, 15:11
Location: Milan Italy

Re: Discourse forums no longer allowing me to log in

Post by Lucio Chiappetti » 2023-07-24, 16:41

@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.
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)

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

Re: Discourse forums no longer allowing me to log in

Post by Tharthan » 2023-07-24, 20:59

Lucio Chiappetti wrote:
2023-07-24, 16:41
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.
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.
"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

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

Re: Discourse forums no longer allowing me to log in

Post by adoxa » 2023-07-25, 01:51

Lucio Chiappetti wrote:
2023-07-24, 16:41
[I­]f I have to add multiple filters I do not know operationally how to proceed.
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:

Code: Select all

[[filter1]]]]
[[filter2]]]]
becomes

Code: Select all

[[filter1]]],[filter2]]]]
i.e. Remove the closing bracket of the existing filter, add a comma, and remove the opening bracket of the new filter.

Lucio Chiappetti
Keeps coming back
Keeps coming back
Posts: 908
Joined: 2014-09-01, 15:11
Location: Milan Italy

Re: Discourse forums no longer allowing me to log in

Post by Lucio Chiappetti » 2023-07-25, 08:45

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
Fanatic
Posts: 114
Joined: 2012-01-14, 11:22

Re: Discourse forums no longer allowing me to log in

Post by damjang » 2023-09-03, 20:35

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!

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

Re: Discourse forums no longer allowing me to log in

Post by adoxa » 2023-09-04, 00:11

Remove the \\. after community (it uses community-cdn).

damjang
Fanatic
Fanatic
Posts: 114
Joined: 2012-01-14, 11:22

Re: Discourse forums no longer allowing me to log in

Post by damjang » 2023-09-04, 18:14

Thank you, works ok! :thumbup:

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

Re: Discourse forums no longer allowing me to log in

Post by adoxa » 2023-09-20, 23:39

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("]]]]

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

Re: Discourse forums no longer allowing me to log in

Post by adoxa » 2023-09-29, 14:26

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("]]]]

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

Re: Discourse forums no longer allowing me to log in

Post by frostknight » 2023-09-29, 22:38

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.
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
adoxa
Astronaut
Astronaut
Posts: 615
Joined: 2019-03-16, 13:26
Location: Qld, Aus.

Re: Discourse forums no longer allowing me to log in

Post by adoxa » 2023-09-30, 00:23

Update to work with any host, but using a more specific path.

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("]]]]
Alternatively, I think you could just block /assets/browser-detect-* (but you might still need the other fix for editing).

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

Re: Discourse forums no longer allowing me to log in

Post by frostknight » 2023-09-30, 03:04

adoxa wrote:
2023-09-30, 00:23
Update to work with any host, but using a more specific path.

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("]]]]
Alternatively, I think you could just block /assets/browser-detect-* (but you might still need the other fix for editing).
I actually haven't done this before, the basics of this, what are they? I am a bit confused.
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
adoxa
Astronaut
Astronaut
Posts: 615
Joined: 2019-03-16, 13:26
Location: Qld, Aus.

Re: Discourse forums no longer allowing me to log in

Post by adoxa » 2023-09-30, 07:06

This might help.

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

Re: Discourse forums no longer allowing me to log in

Post by frostknight » 2023-10-01, 03:02

adoxa wrote:
2023-09-30, 07:06
This might help.
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. :D
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
Tharthan
Board Warrior
Board Warrior
Posts: 1445
Joined: 2019-05-20, 20:07
Location: New England

Re: Discourse forums no longer allowing me to log in

Post by Tharthan » 2023-10-12, 22:01

Just a heads up. adoxa.

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("]]]]
works just fine for me.

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("]]]]
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.
Last edited by Tharthan on 2023-10-13, 01:55, edited 2 times in total.
"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

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

Re: Discourse forums no longer allowing me to log in

Post by adoxa » 2023-10-13, 00:21

Try removing ^\\/assets\\/.

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

Re: Discourse forums no longer allowing me to log in

Post by Tharthan » 2023-10-13, 01:52

adoxa wrote:
2023-10-13, 00:21
Try removing ^\\/assets\\/.
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("]]]]
"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

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

Re: Discourse forums no longer allowing me to log in

Post by Tharthan » 2023-10-24, 17:38

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

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

Re: Discourse forums no longer allowing me to log in

Post by adoxa » 2023-10-25, 02:54

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.