Reddit.com - infinte scroll and other issues on 28.9.3 64bit as of today Topic is solved

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
brknsoul

Re: Reddit.com - infinte scroll and other issues on 28.9.3 64bit as of today

Unread post by brknsoul » 2020-06-03, 13:40

New Tobin Paradigm wrote:
2020-06-03, 06:26
If you are gonna use this you should really do it in polyfill style and check if it already exists and if not then assign it else it will bust scripting in the next version. Tho I can't believe you guys couldn't have waited for the next release to fix a poorly coded shithole like reddit.
If the proper fix is slated for the next version, couldn't you just use the hack and remove it when PM updates?

kelendral

Re: Reddit.com - infinte scroll and other issues on 28.9.3 64bit as of today

Unread post by kelendral » 2020-06-03, 23:11

New Tobin Paradigm wrote:
2020-06-03, 06:26
If you are gonna use this you should really do it in polyfill style and check if it already exists and if not then assign it else it will bust scripting in the next version. Tho I can't believe you guys couldn't have waited for the next release to fix a poorly coded shithole like reddit.
I'm not exactly a coder so this may not be the best method for checking but it worked.

Code: Select all

// ==UserScript==  
// @name         reddit globalThis fix  
// @match        https://www.reddit.com/*
// @run-at document-start
// @grant    none
// ==/UserScript==  
if (typeof globalThis == 'undefined') {
  unsafeWindow.globalThis = window;
}
After looking at some of the linked information I think we can pretty much agree anything done via a script is going to be dirty. I had to add a run-at document-start or it would not work with the check in place.
brknsoul wrote:
2020-06-03, 13:40
If the proper fix is slated for the next version, couldn't you just use the hack and remove it when PM updates?
That's what I intend to do, but his point is a good one about at making at least an attempt to check before trying to set it.

brknsoul

Re: Reddit.com - infinte scroll and other issues on 28.9.3 64bit as of today

Unread post by brknsoul » 2020-06-04, 01:11

Greasemonkey's scratchpad keeps reporting;
/*
Exception: ReferenceError: unsafeWindow is not defined
@Scratchpad/5:7:3
*/

kelendral

Re: Reddit.com - infinte scroll and other issues on 28.9.3 64bit as of today

Unread post by kelendral » 2020-06-04, 13:03

brknsoul wrote:
2020-06-04, 01:11
Greasemonkey's scratchpad keeps reporting;
/*
Exception: ReferenceError: unsafeWindow is not defined
@Scratchpad/5:7:3
*/
I am not sure on the error it worked for me on Pale Moon 28.9.3 64bit Windows with Greasemonkey for Pale Moon3.31.4

If the original one worked for now you could just use it but have to remember to turn it off when Pale Moon updates. The change was just to try and be a bit better at things and check to make sure globalThis did not exists as I think was being suggested to prevent stepping on it after the fix.

brknsoul

Re: Reddit.com - infinte scroll and other issues on 28.9.3 64bit as of today

Unread post by brknsoul » 2020-06-04, 21:06

Moderator note: superfluous quoting removed.

Got it working again o.O
I was using an older version of Greasemonkey from CAA (3.17). Grabbed 3.31.4, installed it, encountered problems trying to add new scripts, realised I still had the old version installed, uninstalled that, then it worked. :-P
Not sure why the script worked for a bit using 3.17 then stopped working.

kelendral

Re: Reddit.com - infinte scroll and other issues on 28.9.3 64bit as of today

Unread post by kelendral » 2020-06-05, 13:09

28.10.0 is out and this is fixed.
Thanks everyone working on Pale Moon.

brknsoul

Re: Reddit.com - infinte scroll and other issues on 28.9.3 64bit as of today

Unread post by brknsoul » 2020-06-06, 00:55

Yay. Thanks everyone for the script and the update. I guess this thread can be closed/locked.

User avatar
UCyborg
Fanatic
Fanatic
Posts: 180
Joined: 2019-01-10, 09:37

Re: Reddit.com - infinte scroll and other issues on 28.9.3 64bit as of today

Unread post by UCyborg » 2020-06-07, 15:44

This script still comes in handy for Basilisk users until the new version is released (and I guess other older browsers).

LL25255252
Moon lover
Moon lover
Posts: 89
Joined: 2015-08-29, 03:44

Re: Reddit.com - infinte scroll and other issues on 28.9.3 64bit as of today

Unread post by LL25255252 » 2020-06-07, 20:43

Fail to Sign-in to reddit after upgrading to Pale Moon to 28.10.0 :
After upgrading Pale Moon I disabled the globalThis script, logout from reddit, removed cookies and cache... but then I failed to sign in (incorrect password).
Then i thought maybe I had changed my password so I reset my password and successfully changed it.
Then tried to sign-in with the new password but ...again incorrect password !

Tried to sign-in to reddit on a clean/fresh Pale Moon profile and succeeded.

I've never had problems signing to reddit before. Can it be a caused by one of my addons ? I have more than 100 addons so it would be hard for me to find which one causes this.

Win 7 x64
Last edited by LL25255252 on 2020-06-08, 00:50, edited 1 time in total.

LL25255252
Moon lover
Moon lover
Posts: 89
Joined: 2015-08-29, 03:44

Re: Reddit.com - infinte scroll and other issues on 28.9.3 64bit as of today

Unread post by LL25255252 » 2020-06-07, 21:35

Very strange...I succeeded with a sign-in through the old reddit - https://old.reddit.com - and then switching to the new design.