Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web discord seems to be broken. only blank page #145

Open
rlesch opened this issue Jul 30, 2022 · 21 comments
Open

web discord seems to be broken. only blank page #145

rlesch opened this issue Jul 30, 2022 · 21 comments

Comments

@rlesch
Copy link

rlesch commented Jul 30, 2022

when opening discord, all what it does is showing a blank page after login.
tested with latest waterfox classic and all addons disabled.

@robbely
Copy link

robbely commented Jul 31, 2022

Same issue here - latest waterfox classic 2022.06, blank page after login or when visiting a discord channel.

@buttercookie42
Copy link
Contributor

Any particular errors that stand out in the developer tools' console?

@zomabies
Copy link

zomabies commented Aug 1, 2022

The error that happens on waterfox classic 2022.06. It seems that discord used BigInt literal in their script in the screenshot.
SyntaxError: identifier starts immediately after numeric literal[Learn More] 7741e9f24248b43c1ed0.js:1770:51

bigint
To workaround this I have remove all the BigInt literal, then copy the edited script to load in TamperMonkey. It loads but the UI color is weird. waterfox_2022-08-01_23-37-50

@reallyuniquename
Copy link

Polly has a BigInt polyfill. Try that.

@robbely
Copy link

robbely commented Aug 1, 2022

Polly has a BigInt polyfill. Try that.

I tried this - but no change - still a blank page.

I have remove all the BigInt literal, then copy the edited script to load in TamperMonkey. It loads but the UI color is weird.

Do you have the user.js handy? Weird UI is better than no UI until this is resolved

@zomabies
Copy link

zomabies commented Aug 2, 2022

Do you have the user.js handy? Weird UI is better than no UI until this is resolved

Edit: Discord seems to be working now without the workaround. Disable the workaround if is in use to prevent error.
Since Discord changed their script quite often, it is not viable to post the whole script and steps are provided below.

(Future update of discord might break it, do this at your own peril)

Click to expand!
  1. Prepare a Tampermonkey script with the content below
// ==UserScript==
// @name         Discord edited (BigInt)
// @namespace    a
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://discord.com/*/*
// @match        https://discord.com/*
// @grant        none
// ==/UserScript==

(function () {
/* paste the copied script below */


})();
  1. Search for failing script and obtain its URL:
    On the developer console, you can click on the <random words>.js and it will open a "view source" tab with the URL.

console picture

  1. With the URL, you can execute the script in console to help automate the replacement process or manually perform it.
var discordAssetLink = "The URL of the script obtained in previous step";
var result;

fetch(discordAssetLink, {mode: "no-cors"})
    .then((response) => {
        console.log("Read success");
        return response.text();
    })
    .then((data) => data.replace(/([ <])(\d+)n/g, "$1BigInt($2)")) // regex
    .then((edited) => {
        result = edited;
        console.log("Script edit success");
    });

When the script perform successfully, execute copy(result) on developer console to copy it to clipboard.

For manual replacement, save the page and edit it. Text editor with regex search and replace function is recommended.

Search: ([ <])(\d+)n
Substitution: $1BigInt($2)

  1. After copied, paste and save in the prepared userscript in step 1 (it will take some time for both operation) and refresh the page.

@robbely
Copy link

robbely commented Aug 3, 2022

If I try the automated method I get the error in console "TypeError: The URL of the script obtained in previous step is not a valid URL."
If I try the manual method (I used notepad++ regex replace), I still get a blank page when I refresh :(

EDIT: seems like this only works with Tampermonkey, I was trying it with Greasemonkey - got it working now - many thanks :)

@robbely
Copy link

robbely commented Aug 8, 2022

Seems broken again after the last Waterfox update (2022.08), I haven't tried the above workaround again yet.

Is someone working on a proper fix for this? I'm not a developer but BigInt seems well documented (eg in the BigInt section of the Polly github page).

@hockeymikey
Copy link

Polly didn't help in my case either.

@hockeymikey
Copy link

https://bugzilla.mozilla.org/show_bug.cgi?id=1366287
https://repo.palemoon.org/MoonchildProductions/UXP/issues/1240?lang=en-US
Contains info about bigint implementation.

@decembre
Copy link

decembre commented Oct 6, 2023

Waterfox Classic:
Suddenly Discord became blank....

Trying "Polly" and User Agent tweak:
no results.

Have you a new solution?

@walmar
Copy link

walmar commented Oct 7, 2023

@decembre
There is a user script that might work: #p244333 - Discord.com becomes blank - Pale Moon forum

@decembre
Copy link

decembre commented Oct 7, 2023

@decembre There is a user script that might work: #p244333 - Discord.com becomes blank - Pale Moon forum

Tested and approved!

and thank to wicknix » 2023-10-07
for this userscript:
Fix Discord on TenFourFox, Firefox 52 ESR, and other old browser versions

many thanks walmar :-)

@decembre
Copy link

decembre commented Oct 7, 2023

An identical solution for Mozilla addon site ?

Many function don't work now with Waterfox Classic.
By example click on screenshots don't open its lightbox.
Or "Same extensions by this dev" stay in infinite landing state

@robbely
Copy link

robbely commented Oct 8, 2023

@decembre There is a user script that might work: #p244333 - Discord.com becomes blank - Pale Moon forum

Unfortunately with this fix I seem to have to log in again every time I open discord.com

EDIT: I lose my login when I refresh the page too - not sure if this is a discord thing or related to the fix, is anyone else experiencing this?

@decembre
Copy link

decembre commented Oct 9, 2023

EDIT: I lose my login when I refresh the page too - not sure if this is a discord thing or related to the fix, is anyone else experiencing this?

Yes, that's the same thing for me.
But i don't matter:
I have an addon - "Secure Login" - which present a menu to chose which name use (i have only one here) and fill my password in the form...
That's fast, so it's just a small inconvenient, for me.....
:-)

@robbely
Copy link

robbely commented Oct 10, 2023

Yes, that's the same thing for me. But i don't matter: I have an addon - "Secure Login" - which present a menu to chose which name use (i have only one here) and fill my password in the form... That's fast, so it's just a small inconvenient, for me..... :-)

Many thanks for the confirmation and the add-on recommendation :)

Since this started with using the script, I think one of the linked .js scripts might be forcing the relogin or altering the cookies. I tried disabling the .js scripts one at a time, but as expected all 3 (and the .css) are needed for this to work.

@decembre
Copy link

Hmmm seems Dicord rework normally without the Userscript's fix....??
:-)

@decembre
Copy link

But Github not perfectly:
I can't re edit my last comment....
When i click on 2 dots menu;
error message ' Sorry Something went wrong"

@robbely
Copy link

robbely commented Oct 13, 2023

Hmmm seems Dicord rework normally without the Userscript's fix....?? :-)

I guess whatever Discord changed, they changed back :) - I'd rather the white background than have to login each time (not sure if Discord would get suspicious of many logins)

But Github not perfectly: I can't re edit my last comment.... When i click on 2 dots menu; error message ' Sorry Something went wrong"

Yes Waterfox and Github seem to have been at war for some time. I have to use a different browser to edit comments.

@decembre
Copy link

I can't re edit my last comment.... When i click on 2 dots menu; error message ' Sorry Something went wrong"
I use for that (it helped a lot before):
GitHub/GitLab Web Components Polyfill
"GitHub/GitLab Web Components Polyfill ensures that all GitHub and GitLab scripts required for UXP and SeaMonkey are loaded correctly."

I send it a request :
Waterfox Classic: some problem (edit comment / Issues loading...) #73

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants